By Kevin. Wan, 2962
Visits, favorites, Edit
Copyright statement: You can reprint the document at will. During reprinting, you must mark the original source and author information in the form of a hyperlink.
Today, we will briefly introduce how to uninstall an application.
Installscript and installscript MSI Project:
Add the following code to the Event Response Function onmoved:
function OnMoved()begin if( !REMOVEALLMODE ) then AddFolderIcon( FOLDER_PROGRAMS ^ IFX_COMPANY_NAME ^ IFX_PRODUCT_NAME , "Uninstall Kevin's Sample", UNINSTALL_STRING + ADDREMOVE_STRING_REMOVEONLY, "", "", 0, "", REPLACE ); endif;end;
The shortcut icon is default. You can modify and add the shortcut icon as needed.
Basic MSI Project:
In the shortcuts view, use new shortcuts to preexisting file to create a shortcut. Follow the default operations and modify the shortcuts.
Input/X [productcode] In argument
Set advertised to no
Select [systemfolder.exe in targetand then upload msiexec.exe.
In component, set the component to which the shortcut is bound (if this component is not installed, the shortcut will not be available on the target machine after installation)
Tags: code, shortcuts, howto