PDA

View Full Version : Call Powershell script for uninstall



Azef123
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):
10558

Second Script (call for uninstall. No Work)
10559

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.

DLee65
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.

Azef123
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:

10560


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