cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Azef123
Level 3

Call Powershell script for uninstall

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.
Labels (1)
0 Kudos

(2) Replies
DLee65
Level 13

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.
0 Kudos
Azef123
Level 3

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

Thanks
0 Kudos