gacutil /nologo /i .Microsoft.IdentityModel.dll exit /b 0Remember that the startup task runs from the /BIN folder. This file must be saved as Unicode without "byte code order", choose advanced save options: UTF-8 without signature There is also the possibility to set the taskType:
- Simple - needs to complete before the role continues
- Background - runs parallel with the role (startup)
- Foreground - runs parallel with the role, but needs to finish before the role can shutdown
Using Windows Update packages (MSU)Another way to install the Windows Identity Framework (WIF) is to include the windows update package for WIF. Download the correct WIF msu file for the Azure Role: v1 = server 2008 = Windows6.0-KB974405-x64.msu v2 = server 2008 R2 = Windows6.1-KB974405-x64.msu And add it to your project and set "Copy to Output Directory Always" to "Copy Always". To run a MSU update package use the following startup task:
@echo off sc config wuauserv start=demand wusa.exe "%~dp0Windows6.1-KB974405-x64.msu" /quiet /norestart sc config wuauserv start=disabled exit /b 0
The ~dp0 resolves to the directory where the scripts are being extracted (the correct bin folder)
Use the exit /b 0 to signal the end of the batch file back to Azure.