chiark / gitweb /
Remove uninstall other option, as it is broken.
authordaid <daid303@gmail.com>
Thu, 8 Jan 2015 07:10:12 +0000 (08:10 +0100)
committerdaid <daid303@gmail.com>
Thu, 8 Jan 2015 07:10:12 +0000 (08:10 +0100)
scripts/win32/installer.nsi

index e1008e33c15434fb3a2491bb0a68325bdd0368da..73dc5eaf1ee3ee4e9429faa51f4776c46964e24f 100644 (file)
@@ -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