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
- :
- How to write a condition for required software to be installed on the machine
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
Sep 28, 2011
01:02 AM
How to write a condition for required software to be installed on the machine
Hi all,
Anybody know how to create the condition if my application required Microsft SQL server 2008 R2 Express and IIS 7.0 to be installed on the machine before user can install it.
On the installation requirements there are specify the software required by the installation but the SQL Server 2008 R2 Express and IIS is not listed.
Does anybody can help me?
Thanks.
Anybody know how to create the condition if my application required Microsft SQL server 2008 R2 Express and IIS 7.0 to be installed on the machine before user can install it.
On the installation requirements there are specify the software required by the installation but the SQL Server 2008 R2 Express and IIS is not listed.
Does anybody can help me?
Thanks.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 06, 2011
02:42 PM
IIS 7.0 is a 'feature' which is part of the operating system. Features are enabled (installed) or disabled using DISM.exe on Vista or later. (IIS 7.5 is on Win 7/2008 R2). So there is not a separate setup package that could be added to your setup. Look up information on Component Based Servicing. You may see some examples using pkgmgr.exe which will also work on Vista, but pkgmgr has been deprecated in favior of dism.exe on Win7 or later. dism.exe can take the names of 'features' to enable on the command line or you can use an unattended XML file to list the 'features' to be enabled.
A problem that I continue to struggle with when using the unattended file is how to get the correct value for the package version required in the unattended file. Most of the information that I have found suggesting using the CBS registry key or the version of a system file is just wrong, in that it might work for one version of the OS but when Microsoft pushes out a SP that method of getting the version breaks. I am currently working on trying to solve this problem by calling dism.exe to get all packages, pipe that to a file, and then grep the file to find the correct version for the installed package. This version string is applied to a XML file change prior to calling dism.exe again to install IIS. If anyone knows of a more reliable API to get the package version I would love to hear it!
I don't have any advice on SQL Server.
Phill
A problem that I continue to struggle with when using the unattended file is how to get the correct value for the package version required in the unattended file. Most of the information that I have found suggesting using the CBS registry key or the version of a system file is just wrong, in that it might work for one version of the OS but when Microsoft pushes out a SP that method of getting the version breaks. I am currently working on trying to solve this problem by calling dism.exe to get all packages, pipe that to a file, and then grep the file to find the correct version for the installed package. This version string is applied to a XML file change prior to calling dism.exe again to install IIS. If anyone knows of a more reliable API to get the package version I would love to hear it!
I don't have any advice on SQL Server.
Phill
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)