Installing an Internet (URL) Shortcut

An Internet (URL) shortcut is simply a text file in INI format with a .url extension. Here is a sample URL shortcut file:

[InternetShortcut]
URL=http://www.microsoft.com/globaldev/default.asp

Tarma Installer accepts .url files for installation the same way it does other files. Therefore, if you already have the .url shortcut file on your computer, you can use normal file installation procedures to include it in your project and install it with the rest of your application. See Installing Files for more information for these procedures.

Note - Tarma Installer does not accept regular shortcuts (with a .lnk extension) for file installation, because they cannot be transferred by normal file copy. See Installing Shortcuts for information about installing regular shortcuts.

Some further hints and tips:

Using an INI file to create an Internet shortcut

An alternative way to create an Internet shortcut is to use the INI Files facility to create an INI file with INI file settings as follows:

The INI file approach has the advantage that you can use project variables in the specification of the Data value and INI file name; for example, you could set Data to <WebSite> or to some custom variable that you defined.

Tip - To create a URL shortcut along with the regular shortcuts in the program group of your application (on the Windows Start > Programs menu), set the INI file path to <ProgGroupDir>\My URL Shortcut.url, replacing My URL Shortcut with something appropriate to your application.

To insert <ProgGroupDir>, either type it directly or use the button to the right of the INI file field and choose Application ProgGroup Folder from the popup menu to have Tarma Installer insert it for you.