Creating an Uninstallation Shortcut for an InstallScript project is relatively easy. Here is how you do it.
First, you need to add an OnMoving event handler to your script. Next, add the following code to the event handler.
if( !REMOVEALLMODE ) then
AddFolderIcon(FOLDER_PROGRAMS ^ "Wavepoint Studios" ^ "Mega View",
"Uninstall Mega View",
UNINSTALL_STRING + ADDREMOVE_STRING_REMOVEONLY,
"", "", 0, "", REPLACE );
The first parameter is the folder to put the uninstallation shortcut into. In this example, the shortcut will be placed under the Programs Menu, Wavepoint Studios company folder, Mega View application folder. The second parameter is the text that will appear under the shortcut. The third parameter is the command line, which in this example is the uninstall string with the removeonly parameter.
Now, since you put this call to AddFolderIcon in your script, this shortcut will be uninstalled along with the rest of your application.