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
- :
- Re: Is it possible to let a powershell action script abort an installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Oct 02, 2019
01:01 PM
Is it possible to let a powershell script abort an installation ?
(1) Solution
Oct 03, 2019
10:37 AM
I am not sure about clear requirement here. These are my recommendations at this point.
- Return error code (non zero) using exit method from your powershell custom action as below. You can refer msi error codes https://docs.microsoft.com/en-in/windows/win32/msi/error-codes
exit(1603) - You can also set property from powershell and use it to exit based on condition checks like sequencing built-in Error type custom action
set-property -name NEWPROPERTY -value $Value
(1) Reply
Oct 03, 2019
10:37 AM
I am not sure about clear requirement here. These are my recommendations at this point.
- Return error code (non zero) using exit method from your powershell custom action as below. You can refer msi error codes https://docs.microsoft.com/en-in/windows/win32/msi/error-codes
exit(1603) - You can also set property from powershell and use it to exit based on condition checks like sequencing built-in Error type custom action
set-property -name NEWPROPERTY -value $Value