MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: GetSeqNumber()[Next]: GuidMake()
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->VBSCRIPT->VBSCRIPT Functions - For Imbedded VB->GuidGet()

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:

  1. 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.

OPTIONS

#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.

EXAMPLE

dim MsiUpgradeCode
MsiUpgradeCode = GuidGet("UpgradeCode")


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: GetSeqNumber()[Next]: GuidMake()


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Friday October 13 2017 at 2:08pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.