[wix-users] Passing PRODUCTCODE AND VERSION from command line

Joel Budreau joel.budreau at gmail.com
Wed Nov 15 12:22:49 PST 2017


I haven’t seen any other replies on this, and it’s likely because passing ProductCode and Version on the command-line at runtime is a bad idea. These should be build-time variables. Any reason why you can’t change these at build time?

- Joel

> On Oct 27, 2017, at 4:44 AM, Ven H via wix-users <wix-users at lists.wixtoolset.org> wrote:
> 
> I have created 2 MSI projects (OldInstaller and NewInstaller) in Visual
> Studio 2017 with same xml (including Product ID and Version) for upgrade
> scenario. In both the scenarios, I have the same text file which have
> different contents (to differentiate the Upgrade scenario). Of course, the
> second xml has MajorUpgrade tag. I install the first MSI through UI. For
> 2nd MSI, I do it from command line using msiexec.exe and pass the
> PRODUCTCODE and VERSION with different values. This works fine and the
> upgraded MSI gets installed fine.
> 
> Now, in both the MSI, I add UI tags. In this, when I call the 2nd MSI using
> the above approach, it doesn't work and throws error in a message saying
> something like this application is already installed or something. If I
> have UI tag, how can I upgrade an MSI using msiexec (from command line) by
> sending ProductCode and Version attributes. Any help will be really great.
> 
> Regards,
> Venkatesh
> 
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list