msiexec

How to suppress quotes in PowerShell commands to executables

故事扮演 提交于 2019-12-01 08:21:06
Is there a way to suppress 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 TARGETDIR="<path to folder with spaces>" Trying to execute this from PowerShell has proven quite difficult. PowerShell likes to enclose parameters with spaces in double-quotes. The following lines: msiexec /a somepackage.msi /qn 'TARGETDIR="c:\some path"' msiexec /a

How to suppress quotes in PowerShell commands to executables

北战南征 提交于 2019-12-01 05:09:26
问题 Is there a way to suppress 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 TARGETDIR="<path to folder with spaces>" Trying to execute this from PowerShell has proven quite difficult. PowerShell likes to enclose parameters with spaces in double

msiexec /a deploying .msi file[WIX]

ε祈祈猫儿з 提交于 2019-11-29 18:11:57
I have been asked to only deploy files that are bundled into MSI package. MSI contains 4 files, For that I'm using this command: `msiexec /a [path to MSI] TARGETDIR =[Application folder path]` Problem with above command is that it also deploys .MSI file to specified TARGETDIR which i don't want. Is there any workaround/way that i can only deploy that 4 files? Not to my knowledge, no. This is an administrative installation , and it is essentially just an extraction of the files embedded in the MSI file along with the MSI file itself - now adjusted to use external source files for installation,

How can I install TortoiseSVN with commands using command line msiexec.exe?

徘徊边缘 提交于 2019-11-29 12:52:01
I need to create a command line that will install TortoiseSVN and include the Subversion command line utilities. What options on the msiexec.exe command line would tell the installer to include the command set? TortoiseSVN-1.9.3.27038-x64-svn-1.9.3.msi Reference: https://groups.google.com/forum/#!topic/tortoisesvn/j1e_6v2IfPQ msiexec.exe /i TortoiseSVN-1.9.3.27038-x64-svn-1.9.3.msi /passive /norestart ADDLOCAL=ALL 来源: https://stackoverflow.com/questions/36988346/how-can-i-install-tortoisesvn-with-commands-using-command-line-msiexec-exe

Checking for successful uninstall

牧云@^-^@ 提交于 2019-11-29 12:50:18
I'm trying to automate an install process in which I uninstall a previous version and install a newer version over the top. How should I test (in my bootstrapper, coded in C#) if the uninstall was a success? This is currently how I'm launching the uninstall. Process p = Process.Start("msiexec", /*various switches*/); p.WaitForExit(); I'm also currently tangling with dynamic multiple instances, which really bend my mind, so handling this problem within WiX itself is difficult if not impossible. Rather than invoke Windows Installer through msiexec, you can use the Windows Installer API. You can

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

我只是一个虾纸丫 提交于 2019-11-29 10:24:21
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 line. My command line looks something like this: msiexec /i my_installer.msi MY_PROPERTY=$value Where $value is 1 or 0, depending on the environment. The problem is that no matter what value I supply for MY_PROPERTY at the command line, the check box is always

convert msi to exe with a command line option…

寵の児 提交于 2019-11-28 19:00:48
i want to convert a msi file in to an exe file. When i run msi file with qn option with msiexec then my software install silently. But now i want to convert that msi file into .exe file , and that exe file runs msi file with msiexec /i "path of msi file" /qn option, any idea how to do it. Stein Åsmul If you are making the setup yourself using Installshield , the tool itself should be able to create a setup.exe file by simply setting the release settings in the release wizard - I think it just entails setting the release "Compressed" but it could require further settings. Please follow these

Create MSI and Enforce All Users with Visual Studio

一世执手 提交于 2019-11-28 14:20:32
I have created an installer using Visual Studio 2015 (with the Visual Studio installer addon). The goal is to always run the APP with the same local resources, regardless of who is logged on, therefore we target [CommonAppDataFolder] (C:\ProgramData... on Win10). The installer works just fine placing all shared resources where we want them. But the generated MSI provides the option to install as "everyone" or just the "just me" We want to grey out the option to install as "just me". Is there a way to do this from within Visual Studio as part of the build process for the MSI. I see some

Add write permission to Custom folder files created with windows installer

血红的双手。 提交于 2019-11-28 11:09:31
问题 I am creating a folder inside programdata folder using windows installer. Running the project i am getting an error while trying to write to the file C:\ProgramData\MyAppFolder\settings_file.sqlite This is the error message attempt to write a read-only database. How can i grant the write permission to the db file and some other files while building the msi file using windows installer I can see the folder permissions as like this any way to make this read and write enables while building this

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

人盡茶涼 提交于 2019-11-28 09:54:23
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, looking into the error). Anyways when this happens I get the following error during the re-install: Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use