directory probs solved
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2207 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
c0d795a736
commit
04d6d38b02
1 changed files with 16 additions and 16 deletions
|
@ -26,7 +26,7 @@
|
||||||
# Defines
|
# Defines
|
||||||
|
|
||||||
!define MISSINGFILES $0
|
!define MISSINGFILES $0
|
||||||
!define NSISPATH $1
|
!define NSISBINPATH $1
|
||||||
|
|
||||||
!define TEMP1 $R0
|
!define TEMP1 $R0
|
||||||
!define TEMP2 $R1
|
!define TEMP2 $R1
|
||||||
|
@ -109,7 +109,7 @@ Function .onInit
|
||||||
# Create a temporary file, so NSIS Update can update itself
|
# Create a temporary file, so NSIS Update can update itself
|
||||||
|
|
||||||
CopyFiles /SILENT "$EXEDIR\NSISUpdate.exe" "$TEMP\NSISUpdate.bin"
|
CopyFiles /SILENT "$EXEDIR\NSISUpdate.exe" "$TEMP\NSISUpdate.bin"
|
||||||
Exec '"$TEMP\NSISUpdate.bin" $EXEDIR\..'
|
Exec '"$TEMP\NSISUpdate.bin" $EXEDIR'
|
||||||
Quit
|
Quit
|
||||||
|
|
||||||
temp:
|
temp:
|
||||||
|
@ -125,7 +125,7 @@ Function .onInit
|
||||||
# Get NSIS directory
|
# Get NSIS directory
|
||||||
|
|
||||||
Call GetParameters
|
Call GetParameters
|
||||||
Pop ${NSISPATH}
|
Pop ${NSISBINPATH}
|
||||||
|
|
||||||
# InstallOptions INI File for the "Update Method" dialog
|
# InstallOptions INI File for the "Update Method" dialog
|
||||||
|
|
||||||
|
@ -137,13 +137,13 @@ FunctionEnd
|
||||||
|
|
||||||
Function CheckCVSAccess
|
Function CheckCVSAccess
|
||||||
|
|
||||||
IfFileExists "${NSISPATH}\Cvs\Root" +2
|
IfFileExists "${NSISBINPATH}\..\Cvs\Root" +2
|
||||||
Return
|
Return
|
||||||
|
|
||||||
Push ${TEMP1}
|
Push ${TEMP1}
|
||||||
Push ${TEMP2}
|
Push ${TEMP2}
|
||||||
|
|
||||||
FileOpen ${TEMP1} "${NSISPATH}\CVS\Root" r
|
FileOpen ${TEMP1} "${NSISBINPATH}\..\CVS\Root" r
|
||||||
FileRead ${TEMP1} ${TEMP2} 9
|
FileRead ${TEMP1} ${TEMP2} 9
|
||||||
FileClose ${TEMP1}
|
FileClose ${TEMP1}
|
||||||
|
|
||||||
|
@ -161,10 +161,10 @@ FunctionEnd
|
||||||
|
|
||||||
Function CheckCVSFiles
|
Function CheckCVSFiles
|
||||||
|
|
||||||
!insertmacro checkFile "$EXEDIR" "cvs95.exe"
|
!insertmacro checkFile "${NSISBINPATH}" "cvs95.exe"
|
||||||
!insertmacro checkFile "$SYSDIR" "msvcr70.dll"
|
!insertmacro checkFile "$SYSDIR" "msvcr70.dll"
|
||||||
!insertmacro checkFile "$SYSDIR" "msvcp70.dll"
|
!insertmacro checkFile "$SYSDIR" "msvcp70.dll"
|
||||||
!insertmacro checkFile "$EXEDIR" "pserver_protocol.dll"
|
!insertmacro checkFile "${NSISBINPATH}" "pserver_protocol.dll"
|
||||||
|
|
||||||
StrCmp ${MISSINGFILES} "" done
|
StrCmp ${MISSINGFILES} "" done
|
||||||
MessageBox MB_YESNO|MB_ICONQUESTION "NSIS update has to download a few small CVS client files in order to be able to update your NSIS files.$\r$\nThese files only have to be download once. Do you want to download them now?$\r$\n$\r$\nRequired Files: ${MISSINGFILES}" IDYES Done
|
MessageBox MB_YESNO|MB_ICONQUESTION "NSIS update has to download a few small CVS client files in order to be able to update your NSIS files.$\r$\nThese files only have to be download once. Do you want to download them now?$\r$\n$\r$\nRequired Files: ${MISSINGFILES}" IDYES Done
|
||||||
|
@ -180,10 +180,10 @@ Function CheckCVSDownload
|
||||||
|
|
||||||
SendMessage ${TEMP3} ${WM_SETTEXT} 0 "STR:Downloading CVS client files..."
|
SendMessage ${TEMP3} ${WM_SETTEXT} 0 "STR:Downloading CVS client files..."
|
||||||
|
|
||||||
!insertmacro checkFileDownload "$EXEDIR" "cvs95.exe"
|
!insertmacro checkFileDownload "${NSISBINPATH}" "cvs95.exe"
|
||||||
!insertmacro checkFileDownload "$SYSDIR" "msvcr70.dll"
|
!insertmacro checkFileDownload "$SYSDIR" "msvcr70.dll"
|
||||||
!insertmacro checkFileDownload "$SYSDIR" "msvcp70.dll"
|
!insertmacro checkFileDownload "$SYSDIR" "msvcp70.dll"
|
||||||
!insertmacro checkFileDownload "$EXEDIR" "pserver_protocol.dll"
|
!insertmacro checkFileDownload "${NSISBINPATH}" "pserver_protocol.dll"
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
|
@ -191,16 +191,16 @@ FunctionEnd
|
||||||
|
|
||||||
Function CheckCVSData
|
Function CheckCVSData
|
||||||
|
|
||||||
IfFileExists "${NSISPATH}\CVS\Root" datainstalled
|
IfFileExists "${NSISBINPATH}\..\CVS\Root" datainstalled
|
||||||
|
|
||||||
IfFileExists "$EXEDIR\InstallCVSData.exe" +3
|
IfFileExists "${NSISBINPATH}\InstallCVSData.exe" +3
|
||||||
MessageBox MB_OK|MB_ICONSTOP "CVS Data Setup not found."
|
MessageBox MB_OK|MB_ICONSTOP "CVS Data Setup not found."
|
||||||
Quit
|
Quit
|
||||||
|
|
||||||
SetDetailsPrint listonly
|
SetDetailsPrint listonly
|
||||||
DetailPrint "Installing CVS data..."
|
DetailPrint "Installing CVS data..."
|
||||||
SetDetailsPrint none
|
SetDetailsPrint none
|
||||||
Exec "$EXEDIR\Bin\InstallCVSData.exe"
|
Exec "${NSISBINPATH}\InstallCVSData.exe"
|
||||||
|
|
||||||
datainstalled:
|
datainstalled:
|
||||||
|
|
||||||
|
@ -322,7 +322,7 @@ Section ""
|
||||||
|
|
||||||
SendMessage ${TEMP3} ${WM_SETTEXT} 0 "STR:Checking for a new NSIS release..."
|
SendMessage ${TEMP3} ${WM_SETTEXT} 0 "STR:Checking for a new NSIS release..."
|
||||||
|
|
||||||
nsExec::ExecToStack '"${NSISPATH}\makensis.exe" "/version"'
|
nsExec::ExecToStack '"${NSISBINPATH}\..\makensis.exe" "/version"'
|
||||||
Pop ${TEMP1}
|
Pop ${TEMP1}
|
||||||
|
|
||||||
StrCmp ${TEMP1} "error" "" +3
|
StrCmp ${TEMP1} "error" "" +3
|
||||||
|
@ -402,7 +402,7 @@ Section ""
|
||||||
|
|
||||||
# CVS Update
|
# CVS Update
|
||||||
|
|
||||||
SetOutPath ${NSISPATH}
|
SetOutPath ${NSISBINPATH}\..
|
||||||
|
|
||||||
Call CheckCVSAccess
|
Call CheckCVSAccess
|
||||||
Call CheckCVSFiles
|
Call CheckCVSFiles
|
||||||
|
@ -420,7 +420,7 @@ Section ""
|
||||||
|
|
||||||
# Normal update
|
# Normal update
|
||||||
|
|
||||||
nsExec::ExecToLog '"$EXEDIR\cvs95.exe" -q -z3 update -d -P'
|
nsExec::ExecToLog '"${NSISBINPATH}\cvs95.exe" -q -z3 update -d -P'
|
||||||
Pop ${TEMP1}
|
Pop ${TEMP1}
|
||||||
Goto CheckCVSReturn
|
Goto CheckCVSReturn
|
||||||
|
|
||||||
|
@ -428,7 +428,7 @@ Section ""
|
||||||
|
|
||||||
# Clean copy
|
# Clean copy
|
||||||
|
|
||||||
nsExec::ExecToLog '"$EXEDIR\cvs95.exe" -q -z3 update -C -d -P'
|
nsExec::ExecToLog '"${NSISBINPATH}\cvs95.exe" -q -z3 update -C -d -P'
|
||||||
Pop ${TEMP1}
|
Pop ${TEMP1}
|
||||||
|
|
||||||
CheckCVSReturn:
|
CheckCVSReturn:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue