summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts')
-rw-r--r--xmake/scripts/xpack/nsis/makensis.nsi6
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/scripts/xpack/nsis/makensis.nsi b/xmake/scripts/xpack/nsis/makensis.nsi
index 90f7495d5..22ffaea0f 100644
--- a/xmake/scripts/xpack/nsis/makensis.nsi
+++ b/xmake/scripts/xpack/nsis/makensis.nsi
@@ -153,8 +153,8 @@ Done:
FunctionEnd
; setup installer
-Var NoAdmin
Var BinDir
+Var NoAdmin
Function .onInit
${GetOptions} $CMDLINE "/NOADMIN" $NoAdmin
${If} ${Errors}
@@ -265,6 +265,10 @@ Function un.onInit
${IfNot} $NoAdmin == "true"
!insertmacro Init "uninstaller"
${EndIf}
+
+ ; get binary directory
+ StrCpy $BinDir "$InstDir\${PACKAGE_BINDIR}"
+
FunctionEnd
Section "Uninstall"