size optimization - SetOutPath already sets the working directory so there's no need to pass $OUTDIR to myCreateProcess
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5104 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9bcbddcd83
commit
3ab94d5029
4 changed files with 6 additions and 9 deletions
|
@ -201,6 +201,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
|
|||
|
||||
mystrcat(state_temp_dir,"~nsu.tmp");
|
||||
CreateDirectory(state_temp_dir,NULL);
|
||||
SetCurrentDirectory(state_temp_dir);
|
||||
|
||||
if (!state_install_directory[0])
|
||||
mystrcpy(state_install_directory,state_exe_directory);
|
||||
|
@ -233,7 +234,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam,
|
|||
MoveFileOnReboot(state_temp_dir,NULL);
|
||||
#endif
|
||||
GetNSISString(buf2,g_header->str_uninstcmd); // '"$TEMP\$1" $0 _?=$INSTDIR\'
|
||||
hProc=myCreateProcess(buf2,state_temp_dir);
|
||||
hProc=myCreateProcess(buf2);
|
||||
if (hProc)
|
||||
{
|
||||
CloseHandle(hProc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue