msiexec

Silent installation of a MSI package

核能气质少年 提交于 2019-11-26 06:18:16
问题 I have a MSI package that I need to install if the package is not already installed. Also I need to install it silently. The package prompts user for: Installation location (C:\\Program Files\\Foobar) Install type: minimal and full (minimal) I need to override these two parameters using command line parameters or some other method. So how do I go about these two issues. I\'ll use VBScript for scripting. 回答1: You should be able to use the /quiet or /qn options with msiexec to perform a silent

Enable installation logs for MSI installer without any command line arguments

£可爱£侵袭症+ 提交于 2019-11-26 04:56:40
问题 How can I enable logging in my MSI project and set MsiLogFileLocation ? Now I am running my setup.msi with command line arguments: msiexec /i install.msi /l*v InstallLog.log I want to log my work always just running setup.msi without any arguments. Are there any ways to do that? 回答1: From the MSI SDK : " You can enable verbose logging on the user's computer by using Command Line Options, the MsiLogging property, Logging policy, MsiEnableLog, and EnableLog method ". Short Answer : So add the

Wix Installer : Setting component condition property when doing a MSIEXEC admin install at command line

拥有回忆 提交于 2019-11-26 04:02:10
问题 We have three types/flavours of our product, but only one MSI written in WiX. When we build the installer we pass in the flavour via a defined constant: Call MSBUILD.bat ..\\MSIs\\CoreProduct\\OurProduct.sln /p:DefineConstants=\"FLAVOUR=%_Flavour%\" and the constant is setup in Visual Studio, under Build -> Define preprocessor variables as FLAVOUR=50. The build process, passes in values 50, 200 or LITE as the flavour. In the WiX code we have loads of conditions on our components that tell it

What is the purpose of administrative installation initiated using msiexec /a?

吃可爱长大的小学妹 提交于 2019-11-25 23:15:56
问题 Windows Installer technology supports administrative installation. The command line for initiating administrative installation is: \' msiexec /a setup.msi \'. I want to understand the purpose of this type of installation and in what scenarios are they helpful? 回答1: In the real world, it doesn't have all that much value at all. MSI was designed back in a day when a computer typically had a 2-20gb hard drive. They came up with all these "run from source" advertisement scenarios which seemed