Uninstallation in Installscript 11

Posted on 2008-11-14
Last Modified: 2013-11-14
I am using installshield 11 to create an installation for my software. I have noticed that when i try to uninstall this program , all the files copied during the installtion are not deleted. Even the shortcut i created does not get deleted.
  I am using a Basic MSI project and i have written an Installscript for the modification of the files. Is there a function that i can add in this installscript that runs only when i invoke an uninstallation that deletes all the files? If yes, then what is it that i have to do?
Question by:manajitrath
    LVL 40

    Expert Comment

    by:Vadim Rapp
    Without knowing the details, installer will work best if you limit to the minimum any custom actions and any special efforts to modify the default behavior, including of course Installscript. Most likely that modification of the files is exactly the reason.

    Author Comment

    ok agreed...but in case there is a requirement to modify files , then can i include some function or custom action that deletes the installed files on uninstallation?
    LVL 40

    Accepted Solution

    see articles "File Versioning Rules" and "RemoveFile Table" in Installer SDK.

    LVL 2

    Expert Comment

    In your Custom Action add the condition:

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
    Among others, I monitor the Windows Installer zone and Installer zone. I find that many of the questions could be answered much more quickly if a Windows Installer verbose log were submitted with the question.   However, I do not always have t…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now