Community Forums
Results 1 to 3 of 3

Thread: Custom actions on uninstall but not upgrade?

  1. #1
    Join Date
    Jan 2018
    Posts
    3

    Custom actions on uninstall but not upgrade?

    Does anyone know how to run a custom action on an uninstall but not on an upgrade? I need to delete data files. It seems like a very basic requirement. I believe it can be done in MSI, but doesn't appear to be in Express.

  2. #2
    Join Date
    Jun 2017
    Posts
    62
    Quote Originally Posted by JMetcoff View Post
    Does anyone know how to run a custom action on an uninstall but not on an upgrade? I need to delete data files. It seems like a very basic requirement. I believe it can be done in MSI, but doesn't appear to be in Express.
    Hi,

    If your intention is to delete files,you can achieve it via AddFieRemoval option in Files and Folders view or directly adding file entries to RemoveFile table.While adding files you will can select when to delete files.Options are

    1.Installation

    2. Uninstallation

    3.Both installation & uninstallation.

    As per your need,you can opt for installation which includes upgrade.Refer this link for more details:
    http://helpnet.installshield.com/ins...872897_1096438


    Hope this helps,
    Thanks,
    Jenifer

  3. #3
    Join Date
    Jan 2018
    Posts
    3

    File removal doesn't work

    Hi Jennifer,

    Thanks for responding. Unfortunately, the file-remove action is deleting files on an upgrade. I only want to delete files if the user really wants to uninstall the product.

    Basically, I think I need to use this MSI condition, but Installshield won't let me enter my own conditions:

    REMOVE="ALL" AND NOT UPGRADINGPRODUCTCODE

    Regards,

    Jerry Metcoff
    Gypsy BI LLC

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •