Howto: how to create an uninstall shortcut for an application in InstallShield

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.