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]: /FileMake[Next]: HookInto
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->Guid

The "Guid" Command

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:

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.

EXAMPLES

;--- 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("")'>


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]: /FileMake[Next]: HookInto


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Sunday November 17 2013 at 1:19pm
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.