!insertmacro logme $INSTLOG "OS Detected: Windows $R0 $R1" l
!insertmacro logme $INSTLOG "Install Error: OS Not Supported" l
MessageBox MB_OK|MB_ICONINFORMATION "Please provide the following information to support.$\r$\n$\r$\nInstallation of ${APP_DESC} failed with error: OS Not Supported$\r$\n$\r$\nTerminating Installation" /SD IDOK
SetErrorLevel 999
SetRebootFlag false
goto _ierrored _ierrored:
!insertmacro logme $INSTLOG "Cleaning Up Temporary Files ... Please be Patient" b
SetOutPath $INSTDIR
!insertmacro RemoveFilesAndSubDirs "$INSTDIR\${APP_NAME}"
RMDir /r "$INSTDIR\${APP_NAME}"
!insertmacro logme $INSTLOG "*** ${APP_DESC} Installation Ended in Error ***" b
StrCpy $FINISHPAGE_TEXT "The installation of ${APP_DESC} has resulted in an error and was not completed.$\r$\n$\r$\nClick Finish to close this wizard."
_end: There are just the two sections of any relavence so you can see whats taking place.. The log is generating correctly, but there errorlevel does not appear to be getting set.13.06.2010 12:28:47 *-----------------------------------------------------*
13.06.2010 12:28:47 ### Microsoft Windows Installer 4.5 Installation Starting
13.06.2010 12:28:47 ### Build Verison: 1.0.0.1
13.06.2010 12:28:47 ### Runtime: 6/13/2010 12:28:47
13.06.2010 12:28:47 ### Switches: /S
13.06.2010 12:28:47 *-----------------------------------------------------*
13.06.2010 12:28:47
13.06.2010 12:28:47 Silent Installation has been Requested
13.06.2010 12:28:47 Running Pre-installation Processes
13.06.2010 12:28:47 Detecting the Running Operating System
13.06.2010 12:28:47 OS Detected: Windows 7 64
13.06.2010 12:28:47 Install Error: OS Not Supported
13.06.2010 12:28:47 Cleaning Up Temporary Files ... Please be Patient
13.06.2010 12:28:47 *** Microsoft Windows Installer 4.5 Installation Ended in Error ***
Any Ideas are greatly appreciated..
Thanks...