Nov 05, 2013
04:16 AM
Thanks for your replies. rguggisberg - The project type is Basic MSI and we use this extensively so would prefer to avoid the Advanced Suite project. Christopher - Which EXE is obsolete? We only Servermanagercmd.exe when the installer is run on Windows Server 2008. For later OS versions we use powershell.exe. I couldn’t find anything specific on InstallSite. Did you mean the “Sample Custom Action DLL Written in C++”? Longer term, over the next year, I can look into the C# route, but is there any other methods to achieve what I’m looking for in the short term?
... View more
Nov 04, 2013
05:34 PM
Some background - our installer needs to install Windows Roles & Features as part of the installation process. We've implemented this using custom actions for different versions of Windows Server. All the custom actions use LauchAppAndWait, and we call Servermanagercmd.exe for Windows Server 2008 and call powershell.exe for Windows Server 2008 R2, Server 2012 and Server 2012 R2. This is working well. However, we now want to improve the custom action so that it checks if the Windows Roles & Features we require are already installed, and then only installs them if they are required. For Windows Server 2008 and 2008 R2 I think I can use "Win32_ServerFeature" within the custom action, but has anyone else done this and if so would you be willing to share your InstallScript code? I'm at a loss for how we can achieve this in Server 2012 now that "Win32_ServerFeature" has been deprecated... I know PowerShell commands will give the answer, but how can we pipe the result back into InstallScript? Or is there another method I've missed...
... View more
Labels
- Labels:
-
InstallShield 2013
Latest posts by ad3246
Subject | Views | Posted |
---|---|---|
1722 | Nov 05, 2013 04:16 AM | |
5547 | Nov 04, 2013 05:34 PM |
Activity Feed
- Posted Re: Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 05, 2013 04:16 AM
- Posted Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 04, 2013 05:34 PM
- Tagged Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 04, 2013 05:34 PM
- Tagged Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 04, 2013 05:34 PM
- Tagged Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 04, 2013 05:34 PM
- Tagged Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 04, 2013 05:34 PM
- Tagged Detecting and Installing Windows Role & Features on InstallShield Forum. Nov 04, 2013 05:34 PM