View Full Version : Call Powershell script for uninstall

08-05-2014, 10:03 AM
First, I am new to this software.

I would like to call a PowerShell script for uninstall only.
I have 2 scripts PowerShell.

First Script (call for install. Work perfectly):

Second Script (call for uninstall. No Work)

So, I think I do not put the correct settings in Installshield. I think my second script is not call for unistall setup. My "Run During Path Uninstall" is set to YES.
How call script in uninstall setup only ?

Thank you for your help.

08-05-2014, 01:05 PM
Expand the tree for the Install Exec Sequence
Add a condition REMOVE ~= "ALL"
This will only execute during uninstall.

Run during Patch uninstall only applies if you create a patch against this in the future, it does not apply for when a user uninstalls using add/remove programs.

08-05-2014, 02:45 PM
Thanks for your reply.

I add condition REMOVE ~= "ALL" but not work.

In your message, how i can execute script when a user uninstalls using add/remove programs ?

I enclose my project with my two little PowerShell script:


Script "0_Initialisation.ps1" create folders. Call for install
Script "0_Initialisation_uninstall.ps1" delete folders". i would like call for uninstall with use add/remove programs.
Test_Installshield2.ism --> Project InstallShield 2014