Using the commandline I can execute an ‘msi’ file like this:
myProgramm.msi myProperty="abc"
In my wxs file I want to set myProperty (for example to ‘xyz’) only if it is not defined.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, You should use this:
I changed Sequence to ‘First’ – it will execute only once: either during InstallUISEquence (if it executes) or during InstallExecuteSequence (otherwise – silent mode). But maybe you really need setting property in both sequences – you should decide. If you want to specify properties from command-line, you can consider using silent mode run:
or basic UI mode:
Also I would recommend reading Rob Menching’s article on Remember property pattern – it relates to registry search setting of a property when it is passed from command-line: http://robmensching.com/blog/posts/2010/5/2/The-WiX-toolsets-Remember-Property-pattern.