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
FOLLOW US
Get the latest news in Application Packaging