remove temp uninstaller directory only once
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5121 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
f4c9414545
commit
f2ae1f6598
1 changed files with 5 additions and 1 deletions
|
@ -230,7 +230,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
|
||||||
HANDLE hProc;
|
HANDLE hProc;
|
||||||
#ifdef NSIS_SUPPORT_MOVEONREBOOT
|
#ifdef NSIS_SUPPORT_MOVEONREBOOT
|
||||||
MoveFileOnReboot(buf2,NULL);
|
MoveFileOnReboot(buf2,NULL);
|
||||||
MoveFileOnReboot(state_temp_dir,NULL);
|
|
||||||
#endif
|
#endif
|
||||||
GetNSISString(buf2,g_header->str_uninstcmd); // '"$TEMP\$1u_.exe" $0 _?=$INSTDIR\'
|
GetNSISString(buf2,g_header->str_uninstcmd); // '"$TEMP\$1u_.exe" $0 _?=$INSTDIR\'
|
||||||
hProc=myCreateProcess(buf2);
|
hProc=myCreateProcess(buf2);
|
||||||
|
@ -244,6 +243,11 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
|
||||||
}
|
}
|
||||||
g_usrvars[1][0]++;
|
g_usrvars[1][0]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NSIS_SUPPORT_MOVEONREBOOT
|
||||||
|
MoveFileOnReboot(state_temp_dir,NULL);
|
||||||
|
#endif
|
||||||
|
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue