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   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


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.
Answered 12/03/2010 by: VBScab
Red Belt

Please log in to comment