Archive: Install IIS on 64-bit error


Install IIS on 64-bit error
I am trying to get IIS to install on Windows 7 64-bit and I am missing something as I get the following error:
You cannot service a running 64-bit operating system with a 32-bit version of DISM.


How do I get NSIS to call out to the right version of DSIM? I have tried calling DSIM directly with ExecWait, and also calling a batch file that calls DSIM.

I would appreciate any ideas.


Ok, so I found the solution. It is amazing how much better things work when you spell DISM correctly instead of searching for DSIM.

In case anyone else stumbles on this thread:

Add an include:
!include x64.nsh

Then before you call DISM add:
${DisableX64FSRedirection}

The next problem I had was .NET 4.0 not being enabled in IIS, so if you run into that, use:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -i -enable