From 59fcee4ca1680427937b81ab347dd16ee85d2f06 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 25 Jun 2005 16:22:27 +0000 Subject: [PATCH] fix for patch #1214319 - Uninstaller fails due to DLLs in temp folder git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4139 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/exehead/Main.c b/Source/exehead/Main.c index dcaebe1d..4b7b8e30 100644 --- a/Source/exehead/Main.c +++ b/Source/exehead/Main.c @@ -195,12 +195,14 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, for (x = 0; x < 26; x ++) { - static char s[]="A~NSISu_.exe"; + static char s[]="Au_.exe"; static char buf2[NSIS_MAX_STRLEN*2]; static char ibuf[NSIS_MAX_STRLEN]; buf2[0]='\"'; mystrcpy(buf2+1,state_temp_dir); + lstrcat(buf2,"~nsu.tmp\\"); + CreateDirectory(buf2+1,NULL); lstrcat(buf2,s); DeleteFile(buf2+1); // clean up after all the other ones if they are there @@ -227,7 +229,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInst,LPSTR lpszCmdParam, lstrcat(buf2,ibuf); // add a trailing backslash to make sure is_valid_instpath will not fail when it shouldn't addtrailingslash(buf2); - hProc=myCreateProcess(buf2,state_temp_dir); + hProc=myCreateProcess(buf2,state_install_directory); if (hProc) { CloseHandle(hProc);