Hello,
In order to achieve that you need to do the following:
1) "The
'Preload' feature of a Website requires the IIS8 Application Initialization feature. To enable it you can add a
Windows Feature bundle in the
prerequisites page add enable the IIS → World Wide Web Services → Application Development Feature →
Application Initialization feature.
Also you can select the
Target OS as:
Windows 8, Windows 8.1, Windows Server 2012 and Windows Server 2012 R2
2) In order to set the
App Pool to "AlwaysRunning=true" you can select your Application Pool and add a
Custom property like this:
Attribute ID Section
Section: <ApplicationPool>
Name: startMode
Attribute Value: Section
Value:AlwaysRunning
3)Unfortulately, we don't have predefined support for the '
Preload' feature of a Web Site. However, this can be done through a custom action.
So, you can go in the
Custom Actions page and add the predefined
Launch File custom action
with sequence. You have to add this custom action between
InstallExecute and
InstallFinalize standard actions.
You can edit the
launch file custom action properties like that:
File to Launch: [SystemFolder]inetsrv\appcmd.exe
Command Line: set app "MyWebSite/" /preloadEnabled:true
Also you have to set the
Execution time as
When the system is being modified(deffered) and set in the
Execution Stage Condition only on
Install with the
VersionNT >= 602 statement in the
Condition field.
Please let us know if that helped.
Best regards,
Dan
FOLLOW US
Get the latest news in Application Packaging