Call WriteUninstaller with full paths
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7028 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7f9d3253a6
commit
db9fc2cfc0
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
;--------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue