Standard shortcut locations | Guidelines for shortcut locations | How to create a program group for your product | How to define a shortcut for your product | Shortcuts to the (un)installer | How to define shortcuts to files you don't install
Shortcuts are a feature of Windows. In essence, they are small files, represented by an icon with a overlay, that act as symbolic links to other files or folders stored elsewhere. Their main purpose is to give the customer convenient access to programs and documents that may be stored in not-so-convenient places, such as C:\Program Files\Whizbang Inc\Widget.exe.
Typically, shortcuts are installed in one or more of the following locations:
Occasionally, shortcuts are installed in other folders such as the Startup folder.
Tip: See Installing an Internet (URL) Shortcut for information about URL shortcuts.
The following table shows the most common shortcut folders. During a Current User installation, the All Users folders are automatically mapped to their Current User equivalents. See Standard folders for more information.
Windows Installer only supports one set of shortcut locations. We recommend
that you place all shortcuts in the All Users tree if you are building
an MSI installer; Tarma ExpertInstall will ensure that they end up in the
most appropriate folder for Windows Installer. See Standard
folders for more information.
| Shortcut location | Installation folder |
|---|---|
| Accessible to all users | |
| Desktop | Documents and Settings\All Users\Desktop |
| Start menu | Documents and Settings\All Users\Start Menu |
| Programs menu | Documents and Settings\All Users\Start Menu\Programs |
| Program group | Documents and Settings\All Users\Start Menu\Programs\<ProductName> |
| Accessible to the installing user only | |
| Desktop | Documents and Settings\Current User\Desktop |
| Start menu | Documents and Settings\Current User\Start Menu |
| Programs menu | Documents and Settings\Current User\Start Menu\Programs |
| Program group | Documents and Settings\Current User\Start Menu\Programs\<ProductName> |
| Quick Launch | Documents and Settings\Current User\Application Data\Microsoft\Internet Explorer\Quick Launch |
Tarma Installer supports creation of shortcuts in any of the locations mentioned above. However, to avoid cluttering the customer's work environment, you should follow some guidelines when deciding where to install shortcuts.
Note - Shortcuts can be created for all users on a computer (All Users installation), or only for the installing user (Current User installation). See Standard Folders for a discussion of All Users versus Current User folders, and Standard shortcut locations for a list of standard shortcut locations in Tarma ExpertInstall.
The preferred location for shortcuts is an application-specific program group. To define a program group for your application, act as follows.
To define a shortcut for your application, act as follows.
From the context menu that appears, choose one of the following options:
If you want to create a shortcut to the installer, for example to provide an "Uninstall product" shortcut, use the settings shown below. This is no longer considered a good practice; Microsoft guidelines recommend that the installer and uninstaller are only accessed through the Add/Remove Programs control panel.
Because Tarma Installer and Windows Installer use different installers, the settings differ between the two installer types.
The Tarma Installer installer and uninstaller is called Setup.exe and is located in the <TinProductFolder> installation folder. Use the following settings to create a shortcut to this installer.
Note: You may see a BLD:Q0061 diagnostic message pointing out that <TinProductFolder>\Setup.exe is not an installation item and cannot be checked. You can safely ignore this message.
| Attribute | Value |
|---|---|
| Shortcut title | Uninstall <ProductName> |
| Shortcut target | <TinProductFolder>\Setup.exe |
| Arguments | /remove |
| Start in | <TinProductFolder> |
| Description | Removes <ProductName> from your computer |
| Show | Normal |
| Attribute | Value |
|---|---|
| Shortcut title | Change or Repair <ProductName> |
| Shortcut target | <TinProductFolder>\Setup.exe |
| Arguments | (empty) |
| Start in | <TinProductFolder> |
| Description | Add or remove <ProductName> features |
| Show | Normal |
The Windows Installer installer and uninstaller is called Msiexec.exe and is located in the <SystemFolder> installation folder. Use the following settings to create a shortcut to this installer.
Note: You may see a BLD:Q0061 diagnostic message pointing out that <SystemFolder>\Msiexec.exe is not an installation item and cannot be checked. You can safely ignore this message.
| Attribute | Value |
|---|---|
| Shortcut title | Uninstall <ProductName> |
| Shortcut target | <SystemFolder>\msiexec.exe |
| Arguments | /x<ProductCode> |
| Start in | <SystemFolder> |
| Description | Removes <ProductName> from your computer |
| Show | Normal |
| Attribute | Value |
|---|---|
| Shortcut title | Change or Repair <ProductName> |
| Shortcut target | <SystemFolder>\msiexec.exe |
| Arguments | /i<ProductCode> |
| Start in | <SystemFolder> |
| Description | Add or remove <ProductName> features |
| Show | Normal |
To define a shortcut to a file or folder that isn't installed with your product, but that you know to be present on the target system, just follow the steps under How to define a shortcut for your application above. In step 3, select New Shortcut and enter the path to the shortcut's target file or folder in the Shortcut target field of the Shortcut attributes pane.
You can (and should) use symbolic folder names to specify the target path. See System folders variables for a list of available symbolic folder names. Remember to place the folder variable in angle brackets, for example <WindowsFolder>.