\
Source Code
Commands
Guid
This command generates a VB expression which evaluates to a GUID.
This macro allows you to optionally specify GUIDs in the product
information section of the version file.
Any product information that begins with "GUID."
should be the name of a GUID.
If the version file did not contain the GUID then the
GuidGet function is used instead.
The macro takes these parameters:
- GUID Name (positional)
This is the name (alias) of the GUID.
- VB (optional)
This is the name of the VB variable into which the GUID will
be placed (you must have defined this variable).
By default it will place it into a variable with the same name
as the GUID.
Please don't try to use this command within another, it is best to
assign the result to a VBSCRIPT variable and then use that variable.
;--- Set MSI guids ----------------------------------------------------------
dim UpgradeCode
<$Guid 'UpgradeCode' VB="UpgradeCode"> ;;Want same GUID every time!
<$Property "UpgradeCode" *Value="UpgradeCode">
<$Summary "PackageCode" *Value='GuidMake("")'> ;;Different GUID OK
<$Property "ProductCode" *Value='GuidMake("")'>