WebError Element (Iis Extension)

WiX

WebError Element (Iis Extension)

Description
Custom Web Errors used by WebSites and Virtual Directories.
Windows Installer references
None
Parents
WebSite, WebVirtualDir
Inner Text
None
Children
None
Attributes
Name Type Description Required
ErrorCode Integer HTTP 1.1 error code. Yes
File String File to be sent to the client for this error code and sub code. This can be formatted. For example: [#FileId].  
SubCode Integer Error sub code. Set to 0 to get the wild card "*". Yes
URL String URL to be sent to the client for this error code and sub code. This can be formatted.  
Remarks
You can only use error code and sub code combinations which are supported by IIS. Attempting to set a custom error for an error code and sub code combination that is not supported by IIS (in the default list of error codes) will result in an installation failure.
See Also
Iis Schema