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
- :
- Re: Windows Installer 4.5 & 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
‎Oct 28, 2011
07:03 PM
Windows Installer 4.5 & Powershell
Hello, this may be an easy question, but I'm trying to install the prerequisites for SQL Server 2008 R2 Express - one of which is Windows Installer 4.5 and 1 is Powershell.
2 questions:
1) I checked the checkboxes for the prerequisites for the Windows Installer 4.5 for each of the operating system version and processor architectures (32-64 bit) How can I tell the installer which one to install at runtime?
2) For Powershell, it's not a prerequisite that can be downloaded, so how would I go about including the Powershell exe associated with the correct operating system version and processor architecture?
I'm using Installshield 2011 Professional.
Thanks.
2 questions:
1) I checked the checkboxes for the prerequisites for the Windows Installer 4.5 for each of the operating system version and processor architectures (32-64 bit) How can I tell the installer which one to install at runtime?
2) For Powershell, it's not a prerequisite that can be downloaded, so how would I go about including the Powershell exe associated with the correct operating system version and processor architecture?
I'm using Installshield 2011 Professional.
Thanks.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 02, 2011
08:58 PM
Regarding your 1st question, if you are including both 32/64bit pre-reqs for MSI 4.5, then you don't need to do anything special, the conditions are already programmed in so that if you're installing on 32bit, only the 32bit ones will be processed, and if you're on 64-bit, only the 64bit will be processed.
I ended up authoring my own pre-requisites for Powershell.
You should also probably add some script code to your setup for Windows Server 2008, as Powershell has to be added from the Server Manager.
I ended up authoring my own pre-requisites for Powershell.
You should also probably add some script code to your setup for Windows Server 2008, as Powershell has to be added from the Server Manager.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 09, 2011
09:47 PM
Thanks, so how did you do the prereq. for powershell? Did you do it through a installscript?
Thanks.
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 28, 2011
10:10 AM
I used the Pre-Requisite editor to create a new item, and supplied the necessary conditions (i.e. what file to look for, what exe or msu to execute, what platform, etc).
For Windows Server 2008, Powershell has to be installed via the Add Features applet of Server Manager, so for my project I scripted a test for the file and prompted the user to install PowerShell before proceeding with the rest of the installation.
For Windows Server 2008, Powershell has to be installed via the Add Features applet of Server Manager, so for my project I scripted a test for the file and prompted the user to install PowerShell before proceeding with the rest of the installation.
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)