From ffa69660acbef9120cc562013fd67d86a7801e7a Mon Sep 17 00:00:00 2001 From: Bosmanfrx Date: Sat, 26 Jan 2013 20:30:43 +0100 Subject: [PATCH] change of NSIS directory --- buildPy2exe.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/buildPy2exe.py b/buildPy2exe.py index 2ba16b2..5541c40 100644 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -9,7 +9,7 @@ import sys import os import subprocess -p = "C:\\Program Files (x86)\\NSIS\\makensis.exe" #TODO: how to move that into proper place, huh +p = "C:\\Program Files\\NSIS\\makensis.exe" #TODO: how to move that into proper place, huh NSIS_COMPILE = p if os.path.isfile(p) else "makensis.exe" OUT_DIR = "syncplay v{}".format(syncplay.version) SETUP_SCRIPT_PATH = "syncplay_setup.nsi" @@ -108,10 +108,6 @@ NSIS_SCRIPT_TEMPLATE = r""" !insertmacro APP_UNASSOCIATE "wmv" "Syncplay.wmv" FunctionEnd - Function un.DeleteFiles - $uninstallFiles - FunctionEnd - ;Prevents from running more than one instance of installer Function .onInit System::Call 'kernel32::CreateMutexA(i 0, i 0, t "myMutex") i .r1 ?e' @@ -148,7 +144,7 @@ NSIS_SCRIPT_TEMPLATE = r""" Section "Uninstall" Call un.AssociateDel - Call un.DeleteFiles + $uninstallFiles DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Syncplay" DeleteRegKey HKLM SOFTWARE\Syncplay Delete $$INSTDIR\uninstall.exe