Loading
How do you get a custom action (CMD Script) to run during Uninstallation.

I am running InstallShield 2016.

 

I am attempting to run a custom action during uninstallation that performs a CMD script to modify a Service but during the uninstallation the script never runs.

 

I have a similar custom action script that runs fine during installation but I cannot get the uninstall script to run.

 

The uninstall script is set to run after InstallInitialize and has the REMOVE="ALL" Exec condition defined.

 

What have I missed or doing wrong?


  • VArul (Flexera Software)

    @DanC-uk1​ : Could you please confirm, are you adding the customaction in install exec sequence and add the condition and its not working?

     

    If YES, could you please change the install exec sequence to Install finalize or any other sequence and then try once., to make sure it executes successfully on uninstall or not.

    Expand Post
    • Hi Thanks for your response

       

      Yes, the custom action is in the install Exec Sequence after installInitialise and the conditions are set.

       

      What I hadn't realised was that 'Run During Patch Uninstall' was set and as soon as I set this to 'No' it started working as required.

       

      Expand Post
  • Revenera_Ian (Flexera)

    Hi @DanC-uk1​,

     

    Got it. Sounds good. Thank you for clarifying and confirming that this works now!

     

    Please let us know if you have any questions or concerns. Thank you for choosing InstallShield and Revenera!

    Expand Post

Loading
How do you get a custom action (CMD Script) to run during Uninstallation.