Ok, I've stumped myself yet again.
I have the correct Powershell runtime for installing my project. How do I tell the MSI to also install the Powershell Runtime during execution?
I tried using Custom Actions, but I'm afraid that didn't do the trick. What am I doing wrong here?
Install Powershell Runtime during MSI install
Forum rules
Do not post any licensing information in this forum.
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 any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Install Powershell Runtime during MSI install
Is the PowerShell runtime not being installed?
What errors are you receiving?
If you have packaged a script into an executable, make sure the engine PowerShell version and the runtime PowerShell version match. In this case, a PowerShell 7.2.2 engine would need to be selected to match the PowerShell 7.2.2 runtime.
What errors are you receiving?
If you have packaged a script into an executable, make sure the engine PowerShell version and the runtime PowerShell version match. In this case, a PowerShell 7.2.2 engine would need to be selected to match the PowerShell 7.2.2 runtime.
Brittney
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Install Powershell Runtime during MSI install
I get the following error:
The MSI is not installing the runtime, but if I manually install the runtime it works just fine.- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Install Powershell Runtime during MSI install
According to your screenshot you try to or are installing the 7.2.2 runtime. The error message indicates that you packaged your application for 7.2.4
These two do not go together. Either package for 7.2.4 and install that particular runtime or, use 7.2.2 for packaging and runtime.
Because of .NET dependencies you cannot mix and match these.
These two do not go together. Either package for 7.2.4 and install that particular runtime or, use 7.2.2 for packaging and runtime.
Because of .NET dependencies you cannot mix and match these.
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Install Powershell Runtime during MSI install
I have the 7.2.2 runtime selected for the package. When I manually install the 7.2.2 runtime, the program runs without issues. When I do not manually install the 7.2.2 runtime before running the program, I get the above error message.Alexander Riedel wrote: ↑Wed Jun 15, 2022 12:34 am According to your screenshot you try to or are installing the 7.2.2 runtime. The error message indicates that you packaged your application for 7.2.4
These two do not go together. Either package for 7.2.4 and install that particular runtime or, use 7.2.2 for packaging and runtime.
Because of .NET dependencies you cannot mix and match these.
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Install Powershell Runtime during MSI install
Oh I see. You have 7.2.4 installed, hence the need for a runtime.
Can you run the MSI with a log to see why the runtime/custom action is not completing?
Can you run the MSI with a log to see why the runtime/custom action is not completing?
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Install Powershell Runtime during MSI install
My apologies for the delayed response!
I am running it against a different machine now, that doesn't have Powershell 7 installed. The MSI is not installing the Powershell 7.2.2 runtime, and I get the following error: I'm not sure how to enable MSI logging (or know where they are stored), do you have any advice for me there?
I am running it against a different machine now, that doesn't have Powershell 7 installed. The MSI is not installing the Powershell 7.2.2 runtime, and I get the following error: I'm not sure how to enable MSI logging (or know where they are stored), do you have any advice for me there?
- Alexander Riedel
- Posts: 8488
- Last visit: Tue Apr 16, 2024 8:42 am
- Been upvoted: 37 times
Re: Install Powershell Runtime during MSI install
Please see
https://docs.microsoft.com/en-us/window ... ds/msiexec
It lists all command line options for msiexec, including logging
https://docs.microsoft.com/en-us/window ... ds/msiexec
It lists all command line options for msiexec, including logging
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.