I'm sorry if i'm annoying you guys with the problem, but it didn't work, just in case you need it here is the whole compiler log
MakeNSIS v2.06 -
Processing config:
Processing plugin dlls: "C:\Program Files\NSIS\Plugins\*.dll"
- advsplash::show
- Banner::destroy
- Banner::getWindow
- Banner::show
- BgImage::AddImage
- BgImage::AddText
- BgImage::Clear
- BgImage::Destroy
- BgImage::Redraw
- BgImage::SetBg
- BgImage::SetReturn
- BgImage::Sound
- Dialer::AttemptConnect
- Dialer::AutodialHangup
- Dialer::AutodialOnline
- Dialer::AutodialUnattended
- Dialer::GetConnectedState
- InstallOptions::dialog
- InstallOptions::initDialog
- InstallOptions::show
- LangDLL::LangDialog
- Math::Script
- nsExec::Exec
- nsExec::ExecToLog
- nsExec::ExecToStack
- nsisdl::download
- nsisdl::download_quiet
- splash::show
- StartMenu::Init
- StartMenu::Select
- StartMenu::Show
- System::Alloc
- System::Call
- System::Copy
- System::Free
- System::Get
- System::Int64Op
- System::Store
- TypeLib::GetLibVersion
- TypeLib::Register
- TypeLib::UnRegister
- UserInfo::GetAccountType
- UserInfo::GetName
- VPatch::vpatchfile
!define: "MUI_INSERT_NSISCONF"=""
Changing directory to: "C:\Documents and Settings\Chris\Desktop"
Processing script file: "C:\Documents and Settings\Chris\Desktop\Impossible Escape.nsi"
!include: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.72 - 2002-2005 Joost Verburg (C:\Program Files\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Include\UpgradeDLL.nsh"
!define: "UPGRADEDLL_INCLUDED"=""
!include: closed: "C:\Program Files\NSIS\Include\UpgradeDLL.nsh"
Name: "Impossible Escape"
OutFile: "Impossible EscapeInst.exe"
InstallDir: "$PROGRAMFILES\Impossible Escape"
InstallRegKey: "HKLM\SOFTWARE\Impossible Escape\Install_Dir"
!define: "MUI_FINISHPAGE_NOAUTOCLOSE"=""
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!insertmacro: MUI_PAGE_DIRECTORY
!insertmacro: end of MUI_PAGE_DIRECTORY
!insertmacro: MUI_PAGE_INSTFILES
!insertmacro: end of MUI_PAGE_INSTFILES
!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_UNPAGE_CONFIRM
!insertmacro: end of MUI_UNPAGE_CONFIRM
!insertmacro: MUI_UNPAGE_INSTFILES
!insertmacro: end of MUI_UNPAGE_INSTFILES
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
Section: "Required Components"
!define: "VBFILESDIR"="C:\Program Files\GameDev\Tutorial"
!insertmacro: UpgradeDLL
!insertmacro: macro "UpgradeDLL" requires 3 parameter(s), passed 4!
Error in script "C:\Documents and Settings\Chris\Desktop\Impossible Escape.nsi" on line 42 -- aborting creation process
here is the Nsi File
; Impossible Escape.nsi
;
; This script will install the GameDev game Impossible Escape.
; Requires NSIS version 2.0 or later to compile
;
http://nsis.sf.net/;
; See
http://gamedev.sf.net/ for GameDev details
!include "MUI.nsh"
!include "UpgradeDLL.nsh"
; The name of the installer
Name "Impossible Escape"
; Output installer EXE name
OutFile "Impossible EscapeInst.exe"
; Default installation directory
InstallDir "$PROGRAMFILES\Impossible Escape"
; Remember install location if we installed previously
InstallDirRegKey HKLM "SOFTWARE\Impossible Escape" "Install_Dir"
!define MUI_FINISHPAGE_NOAUTOCLOSE
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section "Required Components"
!define VBFILESDIR "C:\Program Files\GameDev\Tutorial"
; VB Runtime Files
CopyVBSysFiles:
!insertmacro UpgradeDLL ${VBFILESDIR}\Comcat.dll $SYSDIR\Comcat.dll $SYSDIR
!insertmacro UpgradeDLL ${VBFILESDIR}\Msvbvm60.dll $SYSDIR\Msvbvm60.dll $SYSDIR
!insertmacro UpgradeDLL ${VBFILESDIR}\Oleaut32.dll $SYSDIR\Oleaut32.dll $SYSDIR
!insertmacro UpgradeDLL ${VBFILESDIR}\Olepro32.dll $SYSDIR\Olepro32.dll $SYSDIR
!define UPGRADEDLL_NOREGISTER
!insertmacro UpgradeDLL ${VBFILESDIR}\Asycfilt.dll $SYSDIR\Asycfilt.dll $SYSDIR
!insertmacro UpgradeDLL ${VBFILESDIR}\Stdole2.tlb $SYSDIR\Stdole2.tlb $SYSDIR
!undef UPGRADEDLL_NOREGISTER
; Referenced Microsoft Files and ActiveX Controls
!insertmacro UpgradeDLL ${VBFILESDIR}\Comdlg32.ocx $SYSDIR\Comdlg32.ocx $SYSDIR
!insertmacro UpgradeDLL ${VBFILESDIR}\MSComCtl.ocx $SYSDIR\MSComCtl.ocx $SYSDIR
; Only increase DLL count on new installation
IfFileExists $INSTDIR\GDPlay.exe skipAddSharedDLL
Push $SYSDIR\Asycfilt.dll
Call AddSharedDLL
Push $SYSDIR\Comcat.dll
Call AddSharedDLL
Push $SYSDIR\Msvbvm60.dll
Call AddSharedDLL
Push $SYSDIR\Oleaut32.dll
Call AddSharedDLL
Push $SYSDIR\Olepro32.dll
Call AddSharedDLL
Push $SYSDIR\Stdole2.tlb
Call AddSharedDLL
; Referenced Microsoft Files and ActiveX Controls
Push $SYSDIR\Comdlg32.ocx
Call AddSharedDLL
Push $SYSDIR\MSComCtl.ocx
Call AddSharedDLL
skipAddSharedDLL:
IfErrors 0 CopyAppExeFiles
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "An error occurred copying VB runtime files" IDRETRY CopyVBSysFiles
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to continue installing anyway?" IDNO EndInstall
; Set output path to the installation directory.
CopyAppExeFiles:
SetOutPath $INSTDIR
SetOverwrite ifnewer
; Copy Game System files to destination
File "C:\Program Files\GameDev\Tutorial\GDPlay.exe"
; Normally GDPlay.EXE is a registered EXE, but this is not a necessary step
File "C:\Program Files\GameDev\Tutorial\BMDXCtls.dll"
RegDLL "$INSTDIR\BMDXCtls.dll"
File "C:\Program Files\GameDev\Tutorial\ScrHost.dll"
RegDLL "$INSTDIR\ScrHost.dll"
IfErrors 0 CopyGameDatFiles
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "An error occurred application files" IDRETRY CopyAppExeFiles
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to continue installing anyway?" IDNO EndInstall
; Copy Game Data files to destination
CopyGameDatFiles:
File "C:\Program Files\GameDev\Tutorial\*.*"
IfErrors 0 CreateGameShortcut
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "An error occurred copying game data files" IDRETRY CopyGameDatFiles
MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to continue installing anyway?" IDNO EndInstall
CreateGameShortcut:
CreateDirectory "$SMPROGRAMS\Impossible Escape"
CreateShortCut "$SMPROGRAMS\Impossible Escape\Play Impossible Escape.lnk" "$INSTDIR\GDPlay.exe" '"$INSTDIR\Impossible Escape.gdp" /p'
CreateShortCut "$SMPROGRAMS\Impossible Escape\Uninstall Impossible Escape.lnk" "$INSTDIR\Uninst.exe"
; Store install location in case install runs again
WriteRegStr HKLM "SOFTWARE\Impossible Escape" "Install_Dir" "$INSTDIR"
; Add un-install entry for Add/Remove Programs
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Impossible Escape" "DisplayName" "Impossible Escape (remove only)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Impossible Escape" "UninstallString" '"$INSTDIR\Uninst.exe"'
WriteUninstaller "Uninst.exe"
EndInstall:
SectionEnd
Section "Uninstall"
MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "BMDXCtls.dll and ScrHost.dll will be unregistered and removed.$\r$\nIf you use The Scrolling Game Development Kit on this system you will have to re-register those files using regsvr32 or re-install GameDev, unless you have GameDev version 1.4 or later." IDCANCEL EndUninstall
DeleteRegKey HKLM "SOFTWARE\Impossible Escape"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Impossible Escape"
UnRegDLL "$INSTDIR\BMDXCtls.dll"
UnRegDLL "$INSTDIR\ScrHost.dll"
Delete "$INSTDIR\*.*"
RMDir "$INSTDIR"
Delete "$SMPROGRAMS\Impossible Escape\*.*"
RMDir "$SMPROGRAMS\Impossible Escape"
Push $SYSDIR\Asycfilt.dll
Call un.DecrementSharedDLL
Push $SYSDIR\Comcat.dll
Call un.DecrementSharedDLL
Push $SYSDIR\Msvbvm60.dll
Call un.DecrementSharedDLL
Push $SYSDIR\Oleaut32.dll
Call un.DecrementSharedDLL
Push $SYSDIR\Olepro32.dll
Call un.DecrementSharedDLL
Push $SYSDIR\Stdole2.tlb
Call un.DecrementSharedDLL
Push $SYSDIR\Comdlg32.ocx
Call un.DecrementSharedDLL
Push $SYSDIR\MSComCtl.ocx
Call un.DecrementSharedDLL
IfFileExists "$INSTDIR" 0 InstDirOK
MessageBox MB_OK "Could not delete $INSTDIR" IDOK 0
InstDirOK:
IfFileExists "$SMPROGRAMS\Impossible Escape" 0 EndUninstall
MessageBox MB_OK "Could not remove shortcut." IDOK 0
EndUninstall:
SectionEnd
Function AddSharedDLL
Exch $R1
Push $R0
ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
IntOp $R0 $R0 + 1
WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
Pop $R0
Pop $R1
FunctionEnd
Function un.DecrementSharedDLL
Exch $R1
Push $R0
ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
StrCmp $R0 "" done
IntOp $R0 $R0 - 1
IntCmp $R0 0 rk rk uk
rk:
DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
Goto done
uk:
WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
done:
Pop $R0
Pop $R1
FunctionEnd