MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: ShortcutUrl[Next]: IE (URL Shortcut)
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->ShortcutUrl->BASIC (URL Shortcut)

BASIC (URL Shortcut)

This section describes the "BASIC" mode of the "ShortcutUrl" command.

This is the simplest and most compatible mechanism which will work with all browsers as it creates a simple URL based shortcut (just as "IE" or "FireFox" might create).

This mode of the "ShortcutUrl" command takes these parameters:

CONFIGURATION - OPTIONS

The following are the generic options available:

#define? DEFAULT_SHORTCUTURL_HOW                  BASIC   ;;Default mechanism used to create URL Shortcuts
#define? DEFAULT_ADD_GENERATED_RESOURCES_TO_DOCO  N

The following are the options available for the "BASIC mode":

#define? SHORTCUTURL_BASIC_KEYPATH_TYPE_FOR_COMPONENTS  CU=Y    ;;Current User Keypath by default
#define? SHORTCUTURL_BASIC_EXTRA_INI_COMMANDS                   ;;Any MAKEMSI commands for other valid URL keywords

An Easy Way to Determine a HotKey's Value

Windows allows you to set a hotkey for any shortcut by right clicking on one and opening its properties. Now a IE shortcut (URL) is a text file in the form of an INI file which means that this information is stored in a text format which can be viewed with any text editor!

So to work out the hotkey create an IE shortcut, right click and select properties, now enter the shortcut, press "apply". Open a command prompt and either type the shortcut file or load in a text editor (the file will have a ".URL" file extension), the following shows the shortcut, its properties windows as well as the shortcut opened in notepad:

EXAMPLE

#(
    <$ShortcutUrl
             Title="Google (default icon)"
               HOW="BASIC"
               Url="http://www.google.com/"
               Dir="DesktopFolder"
    >
#)

;--- Basic mode is the default so no need to specify (unless default changed) ---
<$Component "Google.ico" Directory_="INSTALLDIR">
    ;--- Install an icon we will use for the following shortcut -------------
    <$File Source=".\Google.ico" RowKey="Google.ico" KeyPath="Y">
<$/Component>
#(
    <$ShortcutUrl
             Title="Google AU (better icon)"
               Url="http://www.google.com.au/"
               Dir="DesktopFolder"
        IconFileAt="[INSTALLDIR]Google.ico"
    >
#)


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: ShortcutUrl[Next]: IE (URL Shortcut)


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday May 28 2022 at 3:11pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.