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
This commit is contained in:
parent
804740a76c
commit
bfb2ce5e4e
1 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue