Kinook Software Forum

Kinook Software Forum (
-   [VBP] User Tips, Tricks and Samples (
-   -   Script function that creates a GUID (

Zweitze 09-03-2004 04:23 AM

Script function that creates a GUID
My build creates Windows Installer (MSI) packages. These packages should upgrade each other, therefore I have to change the PackageCode and ProductCode properties at every build. Both properties are GUIDs. An example script is (InstallShield for Windows Installer 1.52):

Dim Iswi
Set Iswi = CreateObject("ISWiAutomation.ISWiProject")
Iswi.OpenProject "%ISMFILE%"
Iswi.ProductCode = CreateGuid
Iswi.PackageCode = CreateGuid
Iswi.ProductVersion = "%NEWMSIVERSION%"

The CreateGuid function should create a new GUID. I got it working in the end, by running UUIDGEN.EXE, but in my opinion this could have much been easier.

kinook 09-03-2004 06:58 AM

Replace CreateGuid with



Found via this search:

Zweitze 09-06-2004 05:42 AM

I didn't know that object... Thanks a lot!

All times are GMT -5. The time now is 03:41 PM.

Copyright 1999-2023 Kinook Software, Inc.