4.6.1

Table Of Contents
VMware, Inc. 99
Chapter 5 Configuring Package Parameters
Examples
YoucanchangethevalueoftheMSIProductVersionparameterwhenyouchangetheMSIpackage.Avalue
of2.0causesThinApptouninstalla1.0versionofthepackageandinstallthe2.0versionofthepackage.
[BuildOptions]
MSIFilename=<my_msi>.msi
MSIProductVersion=2.0
TheformatoftheMSIProductVersionvalueisX.Y.Z.ThevaluesofXandYrangefrom0to255,andthevalue
ofZrangesfrom0to65536.
MSIRequireElevatedPrivileges
TheMSIRequireElevatedPrivilegesparameterappliestoWindowsVistaandspecifieselevatedprivilege
requirementsfortheMSIdatabase.
MostuserswhologintoWindowsVistahaverestrictedprivileges.ToinstallMSIpackagesforalluserswho
musthaveshortcutsandfiletypeassociations,theusersmusthaveelevatedprivileges.
ThinAppsetsaninitialva
lueoftheMSIRequireElevatedPrivilegesparameterthatmarkstheMSI
databaseasrequiringelevatedprivileges.IfyoursystemissetupforUACprompts,aUACpromptappears
whenyouinstallanapplication.
TheparameterworksonlywhentheMSIFilenameparameterrequeststhegenerationofaWindowsInstaller
database.
Examples
YoucanmodifytheMSIRequireElevatedPrivilegesparametertoblocktheUACpromptandthe
installationacrossallcomputers.
[BuildOptions]
MSIFilename=<my_msi>.msi
MSIRequireElevatedPrivileges=0
MSIUpgradeCode
TheMSIUpgradeCodeparameterspecifiesacodefortheMSIdatabasethatfacilitatesupdates.Whentwo
packages,suchastheversion1.0packageandtheversion2.0package,havethesameupgradecode,theMSI
installerdetectsthislink,uninstallstheearlierpackage,andinstallstheupdatedpackage.
Thecaptureprocessgeneratesarandomupgradecod
ebasedontheinventoryname.ToensurethattheMSI
databaseversionshavethesameupgradecode,keepthesameinventorynameacrossversionsoftheMSI
wrapper.Forinformationabouttheinventoryname,see“InventoryName”onpage 100.
TheparameterworksonlywhentheMSIFilenameparameterrequeststhegenerationofaWi
ndowsInstaller
database.
DonotmodifytheUpgradeCodevalueunlessthenewvalueisavalidGUID.
Examples
ThecaptureprocesscancreateanMSIfilewithD89F1994A24B3E110C947FD1E13AB93Fastheupgrade
code.
[BuildOptions]
MSIFilename=mymsi.msi
MSIUpgradeCode={D89F1994-A24B-3E11-0C94-7FD1E13AB93F}