Administrators can register an application package for all users with the thinreg /a parameter if the package is placed in an accessible location such as Program Files.

thinreg.exe Parameters Reference

Any command that uses the/a parameter requires administrator rights. If a package was registered with /a, the same parameter must be used when you unregister the package.

Table 1. thinreg.exe Parameters Reference
Parameter Purpose Sample Usage
/a, /allusers

Registers a package for all users.

If unauthorized users attempt to run the application, a message informs them that they cannot run the application.

thinreg.exe /a "\\<server>\<share>\Microsoft Office 2007 Word.exe"
/q, /quiet Prevents the display of an error message for an unrecognized command-line parameter. thinreg.exe /q <unknown_option>
/u, /unregister, /uninstall

Unregisters a package.

Removes the application from the Add/Remove Programs control panel applet.

Unregister Microsoft Word for the current user.

thinreg.exe /u "\\<server>\<share>\Microsoft Office 2007 Word.exe"

Unregister all Microsoft Office applications for the current user and remove the Add/Remove Programs entry.

thinreg.exe /u "\\server\share\Microsoft Office *.exe"

If you register the package with the /a parameter, you must use the /a parameter when you unregister the package.

thinreg.exe /u /a *.exe

/r, /reregister

Reregisters a package.

Under typical circumstances, the thinreg.exe utility can detect whether a package is already registered and skips it. The /r option forces the thinreg.exe utility to reregister the package.

thinreg.exe /r "\\<server>\<share>\Microsoft Office 2007 Word.exe"

If you register the package with the /a parameter, you must use the /a when you reregister the package.

thinreg.exe /r /a *.exe

/k, /keepunauthorized, /keep

Prevents the removal of registration information even if you are no longer authorized to access an application package.

Without this option, the thinreg.exe utility removes the registration information for that package if it detects that you are no longer authorized to access the package.

ThinApp stores authorization information in the PermittedGroups parameter of the Package.ini file.

thinreg.exe /k "\\<server>\<share>\Microsoft Office 2007 Word.exe"

/noarp

Prevents the creation of an entry in the Add/Remove Programs control panel applet.

thinreg.exe /q /noarp "\\<server>\<share>\Microsoft Office 2007 Word.exe"
/norelaunch

Starts the thinreg.exe utility on Microsoft Vista without elevated privileges. Standard users can start the utility without a user account control (UAC) pop-up window.

When the thinreg.exe utility detects a need for more privileges, such as the privileges required for the /allusers parameter, the utility restarts itself as a privileged process and generates a UAC pop-up window. The /norelaunch option blocks this restart process and causes the registration to fail.

thinreg.exe /q /norelaunch "\\<server>\<share>\Microsoft Office 2007 Word.exe"