From db9fc2cfc0a816c3f88de6d40c3a3dab75abf03e Mon Sep 17 00:00:00 2001 From: anders_k Date: Fri, 26 Oct 2018 20:59:47 +0000 Subject: [PATCH] Call WriteUninstaller with full paths git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7028 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/bigtest.nsi | 2 +- Examples/example2.nsi | 2 +- Examples/gfx.nsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples/bigtest.nsi b/Examples/bigtest.nsi index 8a56a54f..c4bcb041 100644 --- a/Examples/bigtest.nsi +++ b/Examples/bigtest.nsi @@ -78,7 +78,7 @@ Section "" ; empty string makes it hidden, so would starting with - SetOutPath $INSTDIR File /a "silent.nsi" CreateDirectory "$INSTDIR\MyProjectFamily\MyProject" ; 2 recursively create a directory for fun. - WriteUninstaller "bt-uninst.exe" + WriteUninstaller "$INSTDIR\bt-uninst.exe" Nop ; for fun diff --git a/Examples/example2.nsi b/Examples/example2.nsi index ebb31d79..1e8cfded 100644 --- a/Examples/example2.nsi +++ b/Examples/example2.nsi @@ -55,7 +55,7 @@ Section "Example2 (required)" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "NoModify" 1 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Example2" "NoRepair" 1 - WriteUninstaller "uninstall.exe" + WriteUninstaller "$INSTDIR\uninstall.exe" SectionEnd diff --git a/Examples/gfx.nsi b/Examples/gfx.nsi index 7150eafc..9514ed21 100644 --- a/Examples/gfx.nsi +++ b/Examples/gfx.nsi @@ -62,7 +62,7 @@ Section "" MessageBox MB_YESNO "We can change the branding image from within a section too!$\nDo you want me to change it?" IDNO done !insertmacro BIMAGE "${NSISDIR}\Contrib\Graphics\Wizard\nsis.bmp" "" done: - WriteUninstaller uninst.exe + WriteUninstaller $INSTDIR\uninst.exe SectionEnd ;--------------------------------