PDA

View Full Version : Shortcut in %SCFolderPath%


noveltech
01-02-2003, 11:42 AM
Would like my "Uninstall %ProductName%" located at:
"%SCFolderPath%\Admin\Uninstall %ProductName%"

instead of "%SCFolderPath%\Uninstall %ProductName%"

Reasoning: Keep end-user from accidental mouse click on wrong shortcut.

Thanks for all feedback, nt

Darryl
01-03-2003, 03:42 PM
In that case you will need to use a "Create Shortcut" action to create the shortcut instead of using the automated method.

The uninstall is composed of an uninstall executable(installed to Windows directory) and an INI file("Configuration file" in Uninstall properties dialog) that is passed to it. Your action therefore may look like the following:

Folder:
%SCFolderPath%\Admin

Shortcut Description:
Uninstall %ProductName%

Target File:
%WinDir%\iun6002.exe

Command Line Arguments:
"%AppDir%\irunin.ini"

Also remember that any shortcuts created with an action(versus automatic) also must be removed with an action(Remove Shortcut).

Hope that helps.