From 36ddd123d01a0b8e04628f33f8264e332c570df5 Mon Sep 17 00:00:00 2001 From: daid Date: Thu, 8 Jan 2015 08:10:12 +0100 Subject: [PATCH] Remove uninstall other option, as it is broken. --- scripts/win32/installer.nsi | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/scripts/win32/installer.nsi b/scripts/win32/installer.nsi index e1008e33..73dc5eaf 100644 --- a/scripts/win32/installer.nsi +++ b/scripts/win32/installer.nsi @@ -195,21 +195,6 @@ Section /o "Open AMF files with Cura" WriteRegStr HKCR "Cura AMF model file\shell\open\command" "" '"$INSTDIR\python\pythonw.exe" -c "import os; os.chdir(\"$INSTDIR\"); import Cura.cura; Cura.cura.main()" "%1"' SectionEnd -Section /o "Uninstall other Cura versions" - StrCpy $0 0 - loop: - EnumRegKey $1 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" $0 - StrCmp $1 "" done - IntOp $0 $0 + 1 - StrCmp $1 "Cura_${VERSION}" loop - ${StrContains} $2 "Cura_" $1 - StrCmp $2 "" loop - - ReadRegStr $3 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\$1" "UninstallString" - ExecWait '$3 /S _?=$INSTDIR' - done: -SectionEnd - ;-------------------------------- ; Uninstaller -- 2.30.2