To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build: 1.4.43
Operating system: Windows 10
PowerShell version(s): 7
*** Please add details and screenshots as needed below. ***
I have created an MSI package which works except for three additional commands I have added. Those dont seem to be run at all. They are simple powershell delete file commands which if I run manually work so it appears the MSI is not running them
powershell -noprofile -command if (Test-Path "c:\software\DriveMapping.cmd") {Remove-Item "c:\software\DriveMapping.cmd"}
Additional commands not being run from MSI
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Additional commands not being run from MSI
How did you specify to run them? What are the settings?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Additional commands not being run from MSI
Not sure I understand the question. The command is specified is
powershell -noprofile -command if (Test-Path "c:\software\DriveMapping.cmd") {Remove-Item "c:\software\DriveMapping.cmd"}
powershell -noprofile -command if (Test-Path "c:\software\DriveMapping.cmd") {Remove-Item "c:\software\DriveMapping.cmd"}
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Additional commands not being run from MSI
Assuming that with "Additional Commands" you mean "Custom Actions"
A screenshot for one would suffice or you can attach the psbuild file.
They are added here. What you specify here is what I am asking for.A screenshot for one would suffice or you can attach the psbuild file.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Additional commands not being run from MSI
That is the deployment section, it doesn't affect your MSI. Since you are not deploying through SAPIEN Script Packager, these will never be called. If you want these to run when the MSI runs, you will need to create Custom Actions.
For more information on that, I recommend looking at the following article:
https://www.sapien.com/blog/2019/08/15/ ... xecutable/
Though the UI has changed, the information is still correct.
For more information on that, I recommend looking at the following article:
https://www.sapien.com/blog/2019/08/15/ ... xecutable/
Though the UI has changed, the information is still correct.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Additional commands not being run from MSI
Thanks. It appears custom actions only allow you to copy files but not run commands.
Re: Additional commands not being run from MSI
You can put your commands in a script and run it as a Custom Action.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8478
- Last visit: Tue Mar 26, 2024 8:52 am
- Been upvoted: 37 times
Re: Additional commands not being run from MSI
https://www.sapien.com/blog/2018/02/26/ ... i-builder/
Here is a more verbose custom action description that might help.
Here is a more verbose custom action description that might help.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.