View Full Version : Auto generate product code
rbrowne
07-14-2009, 08:01 PM
Is it possible to automatically generate the product code everytime the msi is built with MSI Factory? We do this with WiX by specifying '*' instead of a GUID for Product/@Id.
plokolp
10-12-2009, 06:25 AM
Good question. Any answers? Can you use a variable in this field that will be substitued with a GUID?
Ulrich
10-12-2009, 09:51 AM
You can do exactly what he said in his message. Generate the WiX files, remove the Product GUID and replace it with an asterisk, then (re)build the project with the batch file that was created.
Ulrich
plokolp
10-12-2009, 09:56 PM
The way I ended up doing it was to use a variable.
We use Final Builder for the build process (www.finalbuilder.com) - Awesome software. It has a "Create GUID" action. I used this and then wrote it out to the MSI Factory variables file that we use. Then use the variable in the Product Code text box within MSI Factory.
Works great.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.