Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] User Tips, Tricks and Samples

Thread Tools Rate Thread Display Modes
Old 09-03-2004, 03:23 AM
Zweitze Zweitze is online now
Registered User
Join Date: 08-27-2004
Posts: 6
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.
Reply With Quote
Old 09-03-2004, 05:58 AM
kinook kinook is online now
Join Date: 03-06-2001
Location: Colorado
Posts: 6,033
Replace CreateGuid with



Found via this search:
Reply With Quote
Old 09-06-2004, 04:42 AM
Zweitze Zweitze is online now
Registered User
Join Date: 08-27-2004
Posts: 6
I didn't know that object... Thanks a lot!
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -5. The time now is 10:36 PM.

Copyright 1999-2023 Kinook Software, Inc.