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
- :
- Enable Roles and Features
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
‎May 14, 2015
12:38 AM
Enable Roles and Features
Hi
I am stuck in a bit of a problem. I made a basic msi installation and now I found out that I need to enable roles and features before running it and the issue is I cant find anyway to do it. IIS needs to be installed as well which can be installed as a part of feature i guess. Now the solution I found was switch to an Advanced UI project. Is there a way to extendmy current basic MSI project to and Advanced Ui project, or any other way to enable roles and features?
Any help is really appreciated. Thanks!:(
I am stuck in a bit of a problem. I made a basic msi installation and now I found out that I need to enable roles and features before running it and the issue is I cant find anyway to do it. IIS needs to be installed as well which can be installed as a part of feature i guess. Now the solution I found was switch to an Advanced UI project. Is there a way to extendmy current basic MSI project to and Advanced Ui project, or any other way to enable roles and features?
Any help is really appreciated. Thanks!:(
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2015
06:12 AM
Please Help!!! It turns out that we are reluctant to use Advanced UI project. Is there a way now to enable roles and features in Basic MSI project????? a custom action or anythin? Any sort of help is greatly appreciated
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2015
07:13 AM
Look up how to use DISM from the command line. This should allow you to enable many roles and features. Note that there is a limitation for using DISM, it will not work on Server 2008 or Vista, only WIndows 7 / Server 2008 R2 and newer.
Here is an article that gives an overview of the command line: http://www.msigeek.com/343/introduction-to-dism-deployment-image-servicing-and-management
I am not certain how to do this myself without sitting down to write the actual code but that is where I would start my search. Then I can create a custom dll or exe that will execute the DISM commands, check that the feature is properly installed, and then add that to the prerequisites to install.
I do not think that for enabling features and roles really requires using the Suite / Advanced UI. The reason for using the Suite / Advanced UI is if you have multiple MSI packages to chain together, for example I am distributing SQL Server Express 2012 along with our application. At its core it is a MSI install in an EXE wrapper and we wanted to make installing the 'main' server tools optional. The Suite / Advanced UI allows this flexibility and the ability to overcome issues with SQL Server Express locking the install.
Here is an article that gives an overview of the command line: http://www.msigeek.com/343/introduction-to-dism-deployment-image-servicing-and-management
I am not certain how to do this myself without sitting down to write the actual code but that is where I would start my search. Then I can create a custom dll or exe that will execute the DISM commands, check that the feature is properly installed, and then add that to the prerequisites to install.
I do not think that for enabling features and roles really requires using the Suite / Advanced UI. The reason for using the Suite / Advanced UI is if you have multiple MSI packages to chain together, for example I am distributing SQL Server Express 2012 along with our application. At its core it is a MSI install in an EXE wrapper and we wanted to make installing the 'main' server tools optional. The Suite / Advanced UI allows this flexibility and the ability to overcome issues with SQL Server Express locking the install.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2015
07:27 AM
I just used Powershell to display a list of DISM commands available to me on Windows Server 2008R2.
Open Powershell. I opened as administrator just in case
DISM /online /Get-Features /Format:Table
This will display a list of features available to you. It will list things like DHCPServer, FailoverCluster-FullServer, NetFx3, etc.
For this to work you will also need to verify that the system has a valid Internet connection. I think that a simple ping to google.com or something like that would work. The reason for this is that the required files may not be local and therefore will require access to the Internet to install.
you can use DISM /online /Enable-Feature /FeatureName:NetFx3 for example to enable .NET Framework 3.5 sp1 on Windows Server 2008 R2.
Open Powershell. I opened as administrator just in case
DISM /online /Get-Features /Format:Table
This will display a list of features available to you. It will list things like DHCPServer, FailoverCluster-FullServer, NetFx3, etc.
For this to work you will also need to verify that the system has a valid Internet connection. I think that a simple ping to google.com or something like that would work. The reason for this is that the required files may not be local and therefore will require access to the Internet to install.
you can use DISM /online /Enable-Feature /FeatureName:NetFx3 for example to enable .NET Framework 3.5 sp1 on Windows Server 2008 R2.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 14, 2015
01:27 PM
Thanks Dan Lee! It was a great help indeed! I am working on your n tips and hopefully will be able to do it now!:)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 15, 2015
05:20 AM
Hey.. I was wondering that if we want to avoid this command line utility can we add a prerequisite which is made of Suite Project ? The issue was what package would i choose for it. Any suggestions?
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)