From: daid Date: Thu, 8 Jan 2015 07:10:12 +0000 (+0100) Subject: Remove uninstall other option, as it is broken. X-Git-Tag: 15.01-RC8~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=cura.git;a=commitdiff_plain;h=36ddd123d01a0b8e04628f33f8264e332c570df5 Remove uninstall other option, as it is broken. --- 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