very new to this...
I need a little help...
I'm trying to create my first installer and I get an error message saying the file is not in the directory - BUT IT IS.
I really don't know what I'm doing yet, but I've checked everything I can and can't find any errors to cause this.
I took the example2.nsi file and tried to modify it to my needs. I simply need to drop a few files into a couple of directories - nothing fancy.
Here is the portion of the script that is generating the error. It is saying the "efs" file does not exist in the directory - but it DOES.
Can anyone see anything I'm doing wrong?
; example2.nsi
;
; This script is based on example1.nsi, but it remember the directory,
; has uninstall support and (optionally) installs start menu shortcuts.
;
; It will install example2.nsi into a directory that the user selects,
;--------------------------------
; The name of the installer
Name "ClickTrader Installer"
; The file to write
OutFile "CTInstaller.exe"
; The default installation directory
InstallDir $PROGRAMFILES\eSignal
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
; InstallDirRegKey HKLM "Software\NSIS_Example2" "Install_Dir"
; Request application privileges for Windows Vista
RequestExecutionLevel admin
;--------------------------------
; Pages
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;--------------------------------
; The stuff to install
Section "Example2 (required)"
CreateDirectory $INSTDIR\Formulas\MENT\ClickTrader
; CreateDirectory $INSTDIR\FormulaOutput\MENT_CT
; CreateDirectory $INSTDIR\FormulaOutput\MENT_CT\CT_Trendlines
; CreateDirectory $INSTDIR\FormulaOutput\MENT_CT\CT_Status
SectionIn RO
; Set output path to the installation directory.
SetOutPath $INSTDIR\Formulas\MENT\ClickTrader
; Put file there
File "ClickTrader.MTS.v2.1D.efs"
SectionEnd
; Optional section (can be disabled by the user)
;Section "Start Menu Shortcuts"
; CreateDirectory "$SMPROGRAMS\Example2"
; CreateShortCut "$SMPROGRAMS\Example2\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
; CreateShortCut "$SMPROGRAMS\Example2\Example2 (MakeNSISW).lnk" "$INSTDIR\example2.nsi" "" "$INSTDIR\example2.nsi" 0
SectionEnd
;--------------------------------
; Uninstaller
Section "Uninstall"
; Remove files and uninstaller
Delete $INSTDIR\example2.nsi
Delete $INSTDIR\uninstall.exe
; Remove shortcuts, if any
Delete "$SMPROGRAMS\Example2\*.*"
; Remove directories used
RMDir "$SMPROGRAMS\Example2"
RMDir "$INSTDIR"
SectionEnd