Hopefully fix duplicate uninstallers (#672).
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Aug 2015 15:35:17 +0000 (16:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Aug 2015 15:35:17 +0000 (16:35 +0100)
platform/windows/wscript

index 5f11977b436a7604a6a21a6ccbc0edb585c7d7e9..4a0de2f47f10fe26f747451d40549edf77a235bc 100644 (file)
@@ -59,7 +59,7 @@ ${EndIf}
 
     print("""
 SetOutPath "$INSTDIR\\bin"
-WriteUninstaller "$INSTDIR\Uninstall.exe"
+WriteUninstaller "$INSTDIR\\Uninstall.exe"
 
 File "%static_deps%/bin/libintl-8.dll"
 File "%static_deps%/bin/libboost_chrono-mt.dll"
@@ -211,17 +211,6 @@ File "%static_deps%/share/locale/da/LC_MESSAGES/wxstd.mo"
 SetOutPath "$INSTDIR"
 File "%resources%/../../LiberationSans-Regular.ttf"
 File "%graphics%/splash.png"
-    """, file=f)
-
-    if debug:
-        print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 Debug" "DisplayName" "DCP-o-matic 2 Debug (remove only)"', file=f)
-        print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 Debug" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
-    else:
-        print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2" "DisplayName" "DCP-o-matic 2 (remove only)"', file=f)
-        print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
-
-    print("""
-WriteUninstaller "$INSTDIR\\Uninstall.exe"
 
 CreateDirectory "$INSTDIR\etc\pango"
 ReadEnvStr $0 COMSPEC
@@ -266,7 +255,6 @@ File "%binaries%/src/tools/dcpomatic2_create.exe"
         print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic2" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
 
     print("""
-WriteUninstaller "$INSTDIR\\Uninstall.exe"
 SectionEnd
     """, file=f)