We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

shreevardhan.damani
Posts: 3
Joined: Wed Nov 23, 2016 8:39 am

Windows Server Roles and Launch Conditions

I'm building an installer that creates multiple websites in IIS. However, when I add IIS server role in prerequisites page and try to run, it simply exits with errors without enabling the role in the target server.

Target: Windows Server 2012 R2
Required Server Roles

Web Server (IIS)
Web Server
Common HTTP Features
Default Document
Directory Browsing
HTTP Errors
Static Content
HTTP Redirection
Health and Diagnostics
HTTP Logging
Logging Tools
Request Monitor
Tracing
Performance
Static Content Compression
Security
Request Filtering
Windows Authentication
Application Development
.NET Extensibility 3.5
.NET Extensibility 4.5
Application Initialization
ASP
ASP.NET 4.5
ISAPI Extensions
ISAPI Filters
Management Tools
IIS Management Console
IIS 6 Management Compatibility
IIS 6 Metabase Compatibility
Management Service

Verbose Log snippet

MSI (s) (44:9C) [23:19:40:551]: MainEngineThread is returning 1603
MSI (s) (44:B4) [23:19:40:554]: RESTART MANAGER: Session closed.
MSI (s) (44:B4) [23:19:40:554]: No System Restore sequence number for this installation.
MSI (s) (44:B4) [23:19:40:558]: User policy value 'DisableRollback' is 0
MSI (s) (44:B4) [23:19:40:558]: Machine policy value 'DisableRollback' is 0
MSI (s) (44:B4) [23:19:40:558]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (44:B4) [23:19:40:558]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (44:B4) [23:19:40:559]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (44:B4) [23:19:40:559]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (44:B4) [23:19:40:560]: Destroying RemoteAPI object.
MSI (s) (44:64) [23:19:40:560]: Custom Action Manager thread ending.
MSI (c) (04:08) [23:19:40:561]: Back from server. Return value: 1603
MSI (c) (04:08) [23:19:40:561]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (04:08) [23:19:40:561]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 23:19:40: ExecuteAction. Return value 3.
------------------------------------

Also, when launch conditions are added with prerequisites, installer exits without even asking for prerequisites (server roles).

Is there a way to enable server roles and features before installation and then continue creating websites, wcf services in iis.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Windows Server Roles and Launch Conditions

Hello and welcome to our forums,

I've tested the scenario but the IIS feature was successfully installed on a WIndows Server 2012 R2 machine. Can you please send us the .AIP (project file) and a complete verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Also, to make sure the launch conditions are evaluated after the prerequisites installation you should go to "Prerequisites" page, select the "packages" tree node and in the right pane tick the "Check predefined launch conditions before searching for prerequisites" option.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”