5.1

Table Of Contents
VMware, Inc. 39
Chapter 3 Deploying Applications
Run the thinreg.exe Utility
This example of running the thinreg.exe utility provides some sample commands.
The package name in the thinreg.exe commands can appear in the following ways:
C:\<absolute_path_to_.exe>
Relative path to .exe file
\\<server>\<share>\<path_to_.exe>
As a variation, you can use a wildcard specification, such as *.exe.
If the path or filename contains spaces, enclose the path in double quotation marks. The following
command shows the use of double quotation marks.
thinreg.exe "\\DEPLOYSERVER\ThinApps\Microsoft Office Word 2007.exe"
For information about thinreg.exe parameters, see “Optional thinreg.exe Parameters” on page 39.
Run the thinreg.exe utility
1 Determine the executable files that ThinApp must register with the local environment.
2 From the command line, type the thinreg.exe command.
thinreg.exe [<optional_parameters>] [<package1.exe>][<package2.exe>][<packages_by_wildcard>]
If the server name is DEPLOYSERVER and the share is ThinApps, use the following example to register
Microsoft Word for the logged-in user.
ThinReg.exe "\\DEPLOYSERVER\ThinApps\Microsoft Office 2007 Word.exe"
Use the following example to register all Microsoft Office applications in the specified directory for the
logged-in user.
ThinReg.exe "\\DEPLOYSERVER\ThinApps\Microsoft Office *.exe"
Optional thinreg.exe Parameters
The thinreg.exe utility monitors the PermittedGroups setting in the Package.ini file, registering and un
registering packages as needed. When the thinreg.exe utility registers a package for the current user, the
utility creates only the shortcuts and file type associations that the current user is authorized for in the
PermittedGroups setting. If this setting does not exist, the current user is authorized for all executable files.
When the thinreg.exe utility registers a package for all users with the /allusers parameter, ThinApp
creates all shortcuts and file type associations regardless of the PermittedGroups setting. When you
double-click a shortcut icon that you are not authorized for, you cannot run the application.
If the package name you want to register or unregister contains spaces, you must enclose it in double quotation
marks.
For information about the PermittedGroups setting and support for Active Directory groups, see
“PermittedGroups” on page 69.
Table 3-1 lists optional parameters for the thinreg.exe utility. Any command that uses the /a parameter
requires administrator rights.