Unknown Problem
Hi, this is my first post, as well as my first day working with NSIS. I am trying to make a simple installer to install a map for Rainbow Six. Everything works fine until I try and change the installdir from
InstallDirRegKey HKLM "SOFTWARE\"SOFTWARE\Red Storm Entertainment\RAVENSHIELD" "InstalledPath"
to the same directory with \maps at the end. I believe I have a bunch of extraneous code, but because I'm a PHP programmer, and nothing is the same, I'm completely lost.
Anyway, the problem is that after I get \maps on the end, the files won't install. I don't know whats wrong, no errors are returned when compilint.
Thank you so much for your help.
; Installer created by Craized
; craized@comcast.net
!define PRODUCT_NAME "FX Pillar"
!define PRODUCT_VERSION "1.0"
!define PRODUCT_PUBLISHER "Craized Inc."
!define PRODUCT_WEB_SITE "http://craized.ath.cx"
!include "MUI.nsh"
!define MUI_ABORTWARNING
!define MUI_ICON "C:\Documents and Settings\Craized\Desktop\Installers\craized.ico"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "FX Pillars.exe"
Var GAMEDIR
function .onInit
ReadRegStr $GAMEDIR HKLM "SOFTWARE\Red Storm Entertainment\RAVENSHIELD" "InstalledPath"
StrCpy $INSTDIR "$GAMEDIRmaps\"
Push $0
ClearErrors
ReadRegStr $0 HKLM "SOFTWARE\Red Storm Entertainment\RAVENSHIELD" "InstalledPath"
StrCmp $0 "" 0 continue
MessageBox MB_ICONINFORMATION|MB_OK "It appears you don't have Rainbow Six installed. Please install the game before installing this map"
Abort
continue:
End:
Pop $0
FunctionEnd
InstallDir $INSTDIR
ShowInstDetails show
Section "MainSection" SEC01
SetOverwrite ifnewer
File "C:\Documents and Settings\Craized\Desktop\Installers\FX_Pillars\FX_Pillars.ini"
File "C:\Documents and Settings\Craized\Desktop\Installers\FX_Pillars\FX_Pillars14.rsm"
File "C:\Documents and Settings\Craized\Desktop\Installers\FX_Pillars\FX_Levels.int"
SectionEnd
Section -Post
SectionEnd