View Full Version : Changing Product GUID on the fly

02-10-2006, 11:06 AM
Hello all. I'm trying to build a universal install script for our software in which we typically make modifications of. I have all values being read out of a single header file that is part of the C++ project. I'm trying to find a way to change the GUID on the fly whether it's through script code in Installshield (prefered) or even passed in via a parameter upon calling the compile or build commands. Is this possible? I also noticed that the product guid is saved in the .ism file, if I made a tool to go through that and change it there, would that do it? Thanks :D

02-10-2006, 11:15 AM
Yes, the ISWiProject object of the InstallShield Automation interface exposes the read-write ProductCode property, so you can change the value before performing a build using VBScript, for example. The interface also provides a GenerateGUID method, so if you want to generate a new random code each time, you can...

02-10-2006, 11:32 AM
Quite the return time! :-D Thanks a lot for the advice