msiexec

How to suppress quotes in Powershell commands to executables

Is there any way to supress the enclosing quotation marks around each command-line argument that powershell likes to generate and then pass to external executables for command line arguments that have spaces in them? Here's the situation: One way to unpack many installers is a command of the form: msiexec /a <packagename> /qn TARGETDI...

How to set a check box to "unchecked" from the msiexec command line?

I have an msi (authored with WIX) that has a check box bound to a custom property (call it MY_PROPERTY). I would like to run this msi from the command line, specifying 0 (unchecked) or 1 (checked) for this property. My script will determine the appropriate value (based on the environment) and inject that value into the msiexec command ...

Multiple Python Installations of the same python version on a single computer

I want to install the new Python 2.7 on my Windows XP 32bit PC. having CDO (thats OCD with initials sorted in alphabetical order) I want to install it multiple times on the same computer (to different TARGETDIRs). how do i do that ? double clicking on the installer, or running msiexec multiple times did not work for me Coincidentally,...

Msiexec fails to run (command generated with NANT)

The following is used to generate an msiexec command with nant: > "<exec program="msiexec" > timeout="1800000" verbose="true"> > <arg line="/i &quot;${server.msi}&quot;" /> > <arg line="TARGETDIR=&quot;${server.target.path}&quot;" > /> > <arg line="INSTALLDIR=&quot;${server.target.path}&quot;" > /> > ...

How to choose processor architecture to install an MSI with Delphi

Good news: A major release is in the bag! Bad news: I just found out (2 weeks too late) that some people don't have MSXML 6 on their machines and the new installer we're rolling out requires it. Good news: We can distribute an MSI file to install MSXML Bad news: There are three MSI files to choose from, one 'normal' one, one endin...

Unattended (Command Line) Installation enforcing EULA Acceptance

I have a setup project that I'm working with and have added a EULA to the User Interface. I need to support both unattended (command line) installation as well as GUI install via running setup. The EULA is enforced in the GUI install but not in the unattended one. Currently I'm running the command line installation in the following form...

How to find program location in registry, if I know MSI GUID?

I have installed some MSI with GUID (0733556C-37E8-4123-A801-D3E6C5151617). The program registered in the registry: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ () Value UninstallString = MsiExec.exe / I (0733556C-37E8-4123-A801-D3E6C5151617) My question is: how utility MsiExec.exe knows the name ...

invoking MSIEXEC within a Process fails

I have the following piece of service code to install a group of MSI files copied to a given directory: private void InvokeInstallersIn(string path) { var di = new DirectoryInfo(path); foreach (FileInfo fileInfo in di.GetFiles("*.msi")) { try { ProcessStartInfo star...

Need advice on installing an application silently with patches

What I want to do is install program X with patches silently. Program X has an installer that is an MSI package. Program X has quite a few MSP file patches (8+)that have been released that I also want to install silently. There are two ways that I've seen to approach this: Method 1: Slip Streaming into "Network" installation msiexec.ex...

Help with ensuring a bootstrapper is used but having upgrades work

We have an MSI we have authored in WiX 3.5.2030.0 and targeting Windows Installer 4.0 (for MSIUSEREALADMINDETECTION support). We have a property that we have defined in the MSI to enforce use of a bootstrapper (I say "enforce" but it's really "very strongly encourage" of course): <Property Id="SETUPEXE" Secure="yes" /> <Condi...

After remotely running an msi using psexec and msiexec it doesn't show in Add/Remove programs

At the company where I work, we're setting up continuous integration and as part of this we want the daily build cycle to build installers and run them on a staging server. I've written the installers using WiX 3.6 and they run correctly on the staging server when I try logging on using remote desktop and running them using msiexec. If ...

Why MSIEXEC fails to remove during a /X

We have an installed application (MSI) and we try to remove it using the following command line option: MsiExec.exe /x{code} /qn /liwearucmopvx+ C:\Log\UnInstall.tra However sometimes (no clue why) it generates the following errors: MSI (s) (BC:F8) [02:02:50:031]: Note: 1: 1725 MSI (s) (BC:F8) [02:02:50:031]: Note: 1: 2262 2: Error ...

MSI Install Fails because "Another version of this product is already installed"

We install an application (MSI) using MSIEXEC with the following command line option: MsiExec.exe /x{code} /qn /liwearucmopvx+ C:\Log\UnInstall.tra MsiExec.exe /iC:\Source\App.msi /qn TARGETDIR=C:\Install ALLUSERS=1 /liwearucmopvx+ %C:\Log\Install.tra Most of the time this works, but sometimes the uninstall fails (not sure why yet, lo...

Windows installer calling .Net3.5 to execute a .Net 4 assembly

I have an App I have updated with some .Net4 assemblies, including the custom actions .dll that runs when the app is going to be uninstalled. The App was initially installed with .Net 3.5 and it requires some custom actions when installing and uninstalling. The problem is that now when uninstalling the .dll of the custom actions have ch...