4.5

Table Of Contents
VMware, Inc. 31
Chapter 3 Deploying Applications
Run the thinreg.exe Utility
Thisexampleofrunningthethinreg.exeutilityprovidessomesamplecommands.
Thepackagenameinthethinreg.execommandscanappearinthefollowingways:
C:\<absolute_path_to_.exe>
Relativepathto.exefile
\\<server>\<share>\<path_to_.exe>
Asavariation,youcanuseawildcardspecification,suchas*.exe.
Ifthepathorfilenamecontainsspaces,enclosethepathindoublequotationmarks.Thefollowing
commandshowstheuseofdoublequotationmarks.
thinreg.exe "\\DEPLOYSERVER\ThinApps\Microsoft Office Word 2007.exe"
Forinformationaboutthinreg.exeparameters,see“Optionalthinreg.exeParameters”onpage 31.
To run the thinreg.exe utility
1 DeterminetheexecutablefilesthatThinAppmustregisterwiththelocalenvironment.
2Fromthecommandline,typethethinreg.execommand.
thinreg.exe [<optional_parameters>] [<package1.exe>][<package2.exe>][<packages_by_wildcard>]
IftheservernameisDEPLOYSERVERandtheshareisThinApps,usethefollowingexampletoregister
MicrosoftWordfortheloggedinuser .
ThinReg.exe "\\DEPLOYSERVER\ThinApps\Microsoft Office 2007 Word.exe"
UsethefollowingexampletoregisterallMicrosoftOfficeapplicationsinthespecifieddirectoryforthe
loggedinuser.
ThinReg.exe "\\DEPLOYSERVER\ThinApps\Microsoft Office *.exe"
Optional thinreg.exe Parameters
Thethinreg.exeutilitymonitorsthePermittedGroupssettinginthePackage.inifile,registeringand
unregisteringpackagesasneeded.Whenthethinreg.exeutilityregistersapackageforthecurrentuser,the
utilitycreatesonlytheshortcutsandfiletypeassociationsthatthecurrentuserisauthorizedforinthe
PermittedGroupssetting.Ifthis
settingdoesnotexist,thecurrentuserisauthorizedforallexecutablefiles.
Whenthethinreg.exeutilityregistersapackageforalluserswiththe/allusersparameter,ThinApp
createsallshortcutsandfiletypeassociationsregardlessofthePermittedGroupssetting.Whenyou
doubleclickashortcuticonthatyouarenot
authorizedfor,youcannotruntheapplication.
Ifthepackagenameyouwanttoregisterorunregistercontainsspaces,youmustencloseitindoublequotation
marks.
ForinformationaboutthePermittedGroupssettingandsupportforActiveDirectorygroups,see
“PermittedGroups”onpage 63.
Table 31listsoptionalparametersforthethinreg.exeutility.
Anycommandthatusesthe/aparameter
requiresadministratorrights.