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
- :
- Custom Action - Powershell
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 12, 2014
10:26 AM
Custom Action - Powershell
I am trying to execute a powershell script from InstallSheild2013. My settings are:
Actions:
Return Processing: Synchronous (Check exit code)
In-Script Execution: Deferred Execution
Sequence:
Install Exec Sequence: After RegisterComPlus
It doesn't matter where I put the sequence (must be within InstallInitialize and InstallFinalize) it does not execute. Any help would be GREATLY appreciated.
Thanks,
Doug
Actions:
Return Processing: Synchronous (Check exit code)
In-Script Execution: Deferred Execution
Sequence:
Install Exec Sequence: After RegisterComPlus
It doesn't matter where I put the sequence (must be within InstallInitialize and InstallFinalize) it does not execute. Any help would be GREATLY appreciated.
Thanks,
Doug
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 17, 2014
09:53 AM
I am wondering if the property you have set is causing the problem with DEFERRED types of custom actions.
For a deferred type only a select set of properties are available to the custom action.
Look at the following web page for more info regarding CAD. http://msdn.microsoft.com/en-us/library/aa370543(v=vs.85).aspx
However, I do not recall when the condition for a deferred custom action is evaluated. Look at your MSI log file for the installer and see what happens for this. Also double check to see if the property for POWERSHELLVERSION is set to a value.
For a deferred type only a select set of properties are available to the custom action.
- CustomActionData
- ProductCode
- UserSID
Look at the following web page for more info regarding CAD. http://msdn.microsoft.com/en-us/library/aa370543(v=vs.85).aspx
However, I do not recall when the condition for a deferred custom action is evaluated. Look at your MSI log file for the installer and see what happens for this. Also double check to see if the property for POWERSHELLVERSION is set to a value.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Sep 24, 2015
10:21 AM
Hello all, I ran across this thread and thought I would ask for some help here.
I changed jobs, before I was able to just right click custom actions and then add a powershell script. I could do it by "Stroing to Binay Table" or "Installed with Product". But I was using InstallSheild version 2014. But when I changed jobs, they are using it on version 2013 and I don't have the same options available.
Can someone point me in the correct direction to use a powershell script in version 2013?
I changed jobs, before I was able to just right click custom actions and then add a powershell script. I could do it by "Stroing to Binay Table" or "Installed with Product". But I was using InstallSheild version 2014. But when I changed jobs, they are using it on version 2013 and I don't have the same options available.
Can someone point me in the correct direction to use a powershell script in version 2013?
