\
Source Code
VBSCRIPT
VBSCRIPT Functions - For Imbedded VB
GuidGet()
The purpose of this VB function is to retrieve an MSI GUID by name.
The current value is held in a ".GUID" file which will be created if
required.
If you wish to create a single use "random" GUID you should use the
GuidMake function instead.
The function takes these parameters:
- The name of the GUID.
This name should not include spaces or the equal sign.
Note that using the "Guid" command has an added
advantage over this function as it will first look in the
version file for the GUID and only
use the GUID file if required.
In general it should also be used in preference to this VB function.
#define? GUID_FILENAME <?InputFile $$FilePart:w>.GUIDS ;;Put in same dir as .MM file by default (EMPTY = disable use of GUID file)
#define? GUID_FILENAME_READONLY N ;;Can read file but not create new GUIDS (a safety feature).
#define? GUID_FILENAME_TEXT_DO_NOT_EDIT AUTOMATICALLY GENERATED FILE - DO NOT EDIT
#define? GUID_FILENAME_TEXT_CONTAINS Holds generated GUIDs, the values of which we MUST maintain.
dim MsiUpgradeCode
MsiUpgradeCode = GuidGet("UpgradeCode")