Registration doesn't happen
I am still struggling a little to learn NSIS. Can anyone help me with this What am I doing wrong. It goes to the 32 bit section on my 32bit machine, but it never registers the dll. I have tried both with and without double quotes but it doesn't seem to make a difference. It works fine if I type the Regasm into a dos box.
${If} ${RunningX64}
DetailPrint "Running on x64"
IfFileExists "$WINDIR\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe" SixtyFourBit
MessageBox MB_OK "Unable to Register"
Abort
SixtyFourBit:
messagebox mb_ok "SixtyFourBit"
ExecWait "$WINDIR\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe /codebase $INSTDIR\${ADDIN_DLL}"
${Else}
DetailPrint "Just Win32"
IfFileExists "$WINDIR\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe" ThirtyTwoBit
MessageBox MB_OK "Unable to Register"
Abort
ThirtyTwoBit:
messagebox mb_ok "ThirtyTwoBit"
ExecWait '"$WINDIR\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase $INSTDIR\${ADDIN_DLL}"' $0
messagebox mb_ok "$0"
${EndIf}