MSI and PowerShell

We use Wise Package Studio 7.x to edit and tweak our MSI/MST files. In our MSI/MST we want to run a Powershell script and have these questions.

1. Can you run ps1 files inside of your MSI/MST files?
2. If yes to the above can you have your native MSI/MST check for the existance of PowerShell on the target machine and if not found install it and then run the ps1 file?

We are short on manpower and don't have time to test this for a while but I wanted to see what this forum had to say on this matter so we are a little better prepared when we do have time.

Thank you.

0 Comments   [ + ] Show comments

Answers (1)

Posted by: anonymous_9363 12 years ago
Red Belt
1. Yes. After all, it's just a call to a file, the same as any other.
2. You could detect a 'shell/open/command' registry entry for the '.PS1' file extension, then if you get data back, check for the file pointed exists.

Personally, I'd do step 2 via a deployment system because IIRC PowerShell is installed by MSI.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ