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: Add Windows Server 2008 Role in installation
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
Dec 07, 2008
03:18 PM
Add Windows Server 2008 Role in installation
I want to install a Windows Server 2008 role and a role service with Installshield 2009. I use ServerManagerCmd in a JScript Custom Action. While the script works perfectly "standalone" it doesn't work in the installation and I don't seem to get any sort of error message. The installation is running with elevated privileges. Here's a code snippet:
Is it supposed to work? Is the any other way to automatically install Windows Server 2008 roles and role services during installations?
Thanks!
try {
var Shell = new ActiveXObject("WScript.Shell");
var Command = "%SystemRoot%\\System32\\ServerManagerCmd.exe -i Application-Server";
Shell.Run(Command, 0, true);
}
catch (e) {
...
Is it supposed to work? Is the any other way to automatically install Windows Server 2008 roles and role services during installations?
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 08, 2008
03:42 PM
Before going down that road, could you just launch ServerManagerCmd.exe with the desired arguments with a launch-an-EXE custom action?
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)