This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Call Powershell script for uninstall
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Aug 05, 2014
10:03 AM
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.
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.
(2) Replies
‎Aug 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.
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.
‎Aug 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
Thanks
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