/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


MSI Install - Transform and PROPERTY on the same command line

10/05/2016 3171 views

Can I run msiexec with a command line that specifies a transform AND includes some public property values? 

I'm trying it, but it doesn't seem to be working.  I've not found a single example that does both.  It's making think I'm barking up the wrong tree.

Why?  I'm dictating the values of 5 properties.  That's quite the command line.  1 of these will probably never need to be changed; three of them can be covered by 3 transforms; The remaining one could be one of 12ish values.  That's too many transforms to manage.  I want to use one of three transforms, and specify the 5th on the command line.

0 Comments   [ + ] Show comments

Comments


All Answers

0
You should be able to do this fine. If your unsure, why dont you just log it (log log log!). So if you just install with your 

msiexec /i blah.msi TRANSFORMS=Blah.mst;blahmore.mst MYPROPERTY=1 REBOOT=REALLYSUPPRESS /qb /l*vx .\mylog.log

command, check the log and you will see all the properties set at the end of the log...
Answered 10/06/2016 by: rileyz
Red Belt

0

Remember that property values on the command line override those in a transform, too.

And yes, always log and log verbosely. Troubleshooting is practically impossible without.

Answered 10/06/2016 by: VBScab
Red Belt

  • I DO log verbosely, but I didn't see any evidence in my log that my property had been accepted...or even seen.

    I'll give it another whirl.
0
As you are using a made up example, please check the length of your command string as I seem to recall that a string > 255 chars can fail.
If your property "MYPROPERTY" has a different name, check that it is not a reserved property name - the list of reserved properties in any MSI is long but can be found in the SDK.
REBOOT=R is sufficient as Windows Installer only checks the first letter - again this is stated in the MSI SDK.
Answered 10/13/2016 by: EdT
Red Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ