cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mattias
Level 2

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:


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!
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

Before going down that road, could you just launch ServerManagerCmd.exe with the desired arguments with a launch-an-EXE custom action?
0 Kudos