From bfb2ce5e4ef43cc24dfdcc942310499ebdf6ac56 Mon Sep 17 00:00:00 2001 From: joostverburg Date: Tue, 18 Feb 2003 21:20:19 +0000 Subject: [PATCH] better name for the temp file git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2181 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/NSIS Update/NSISUpdate.nsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Contrib/NSIS Update/NSISUpdate.nsi b/Contrib/NSIS Update/NSISUpdate.nsi index 53b2906a..32941a0e 100644 --- a/Contrib/NSIS Update/NSISUpdate.nsi +++ b/Contrib/NSIS Update/NSISUpdate.nsi @@ -102,23 +102,23 @@ Function .onInit StrCpy ${NSISPATH} "$EXEDIR\.." - StrCpy $R0 $CMDLINE "" -23 + StrCpy $R0 $CMDLINE "" -15 - StrCmp $R0 'NSISUpdate Running.exe"' temp + StrCmp $R0 'NSISUpdate.bin"' temp # Create a temporary file, so NSIS Update can update itself - CopyFiles /SILENT "$EXEDIR\NSISUpdate.exe" "$EXEDIR\NSISUpdate Running.exe" - Exec '"$EXEDIR\NSISUpdate Running.exe"' + CopyFiles /SILENT "$EXEDIR\NSISUpdate.exe" "$EXEDIR\NSISUpdate.bin" + Exec '"$EXEDIR\NSISUpdate.bin"' Quit temp: # Remove temporary file on next reboot - Delete /REBOOTOK "$EXEDIR\NSISUpdate Running.exe" + Delete /REBOOTOK "$EXEDIR\NSISUpdate.bin" - # InstallOptions INI File for "Update Method" idalog + # InstallOptions INI File for the "Update Method" dialog !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "Resources\GUI\io.ini" "io.ini"