=== Install IIS (only once) ===
 - Enable IIS.
 - From the 'install' directory in your build package, install the following dependencies:
   - vc_redist.x64.msi
   - rewrite_amd64.msi
   - iisnode-full-v0.2.18-x64-mv0.msi
 - Check if http://localhost works (should show an IIS test site). If not, reboot your computer.

=== Site setup (for each site) ===
 - Create a directory for your site, you can name this directory however you want, we will call this directory <SITEDIR>.
 - Create directory  '<SITEDIR>/builds'.
 - Get a build and extract it to a subdir in '<SITEDIR>/builds' we will call this directory <EXTRACTDIR>.
 - Run '<EXTRACTDIR>/install/activate-build/activate-build.bat'.
 - Open IIS manager (search for IIS, or run inetmgr.exe).
 - Create a new site in IIS manager, and use '<SITEDIR>\builds' as the physical path.
 - Click the server in the left panel, and double click "Feature Delegation" (bottom row of icons).
   - In the right panel, click "Custom Site Delegation".
   - In the "Sites" drop down, choose the site you created.
   - Click the "Handler Mappings" row.
   - Click "Read/Write" in the right panel.
 - Click 'Application Pools' in the left panel, select the apppool for the created site, and click "Recycling..." in the right panel.
   - The default recycling interval is 29 hours (1740 minutes), which is very inconvenient.
   - Disable the 'regular time interval' checkbox.
   - You can enable the 'Specific time' checkbox and enter for example 2:00 to do a recycle every night.
 - Reboot IIS.
 - Copy '<EXTRACTDIR>\install\processgold.lic' to '<SITEDIR>'.
 - Copy '<EXTRACTDIR>\install\databases\' to '<SITEDIR>\databases\'.
   - On a new install the database directory needs to be created manually.
 - Give group '<HOST>\IIS_IUSRS' full control access to '<SITEDIR>', and read permissions to all parent directories.
   - <HOST> should be replaced by the name of the machine.
 - There is a default superadmin account sa/sa, which is accessible through http://localhost/?page=superadmin

=== IIS Error 500: Internal Server Error ===
When too many users are working in parallel, some windows limits might be hit causing this problem. To increate the limits do:
 - open regedit.exe
 - Edit the "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems\Windows" key
 - Replace the "SharedSection=1024,20480,768" part with "SharedSection=1024,20480,20480" (don't include the quotes)
 - Reboot the server

=== IIS Error 503: Service unavailable ===
Sometimes an IIS site will start reporting "HTTP Error 503. The service is unavailable.". This may fix it:
 - In IIS manager, click "Application Pools" on the left.
 - Select the application pool for the affected site.
 - Click "Advanced Settings..." in the right panel.
 - Set "Process Model"->"Load User Profile" to 'false'.
 - Close settings window ('OK').
 - (Re)start the Application pool by clicking ('Stop' and then) 'Start' in the right panel.
