Created
November 2, 2012 19:20
-
-
Save adunkman/4003724 to your computer and use it in GitHub Desktop.
Wix commands to auto-initialize an IIS website
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Requires Application Initialization module in IIS 7.5 or (built in already to) IIS 8. --> | |
<!-- http://www.iis.net/downloads/microsoft/application-initialization --> | |
<?xml version="1.0" encoding="utf-8"?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | |
<Product> | |
<!-- ... --> | |
<InstallExecuteSequence> | |
<Custom Action="CA.AppPoolSetStartMode" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom> | |
<Custom Action="CA.ApplicationSetPreloadEnabled" Before="InstallFinalize">NOT (REMOVE="ALL")</Custom> | |
</InstallExecuteSequence> | |
<CustomAction Id="CA.AppPoolSetStartMode" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR" | |
ExeCommand="[SystemFolder]inetsrv\appcmd set apppool /apppool.name:"Clinical.Landing AppPool" /startMode:AlwaysRunning" /> | |
<CustomAction Id="CA.ApplicationSetPreloadEnabled" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR" | |
ExeCommand="[SystemFolder]inetsrv\appcmd set app /app.name:"Clinical.Landing/" /preloadEnabled:true" /> | |
<!-- ... --> | |
</Product> | |
</Wix> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@seansong327 can u share the two custom actions that u have used for stating and stoping the apppool