The uninstaller of 8.04.1 fails when Ubuntu is not installed on C:

Bug #246201 reported by Agostino Russo on 2008-07-07
24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wubi
High
Agostino Russo

Bug Description

The uninstaller in 8.04.1 was patched to only act on the directory within the same drive as the uninstaller (LP: #236741). But the uninstaller is self-extracted by NSIS to a temp folder under C:. So only installations within C: pass the uninstaller test. Something like the following (using the registry uninstaller path as opposed to $exedir) should do the trick:

=== modified file 'src/wubi/uninstall_page.nsh' (properties changed)
--- src/wubi/uninstall_page.nsh 2008-06-13 00:19:06 +0000
+++ src/wubi/uninstall_page.nsh 2008-07-07 13:52:31 +0000
@@ -51,7 +51,8 @@
 FunctionEnd

 Function un.DetectInstallationDrive
- StrCpy $OldInstallationDrive $ExeDir 2
+ ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${AppName}" "UninstallString"
+ StrCpy $OldInstallationDrive $0 2
     ${If} ${FileExists} "$OldInstallationDrive\${DefaultInstallationDir}"
         strcpy $BackupFolder "$OldInstallationDrive\${BackupFolderName}"
         ${if} ${FileExists} "$OldInstallationDrive\${DefaultInstallationDir}\install\*.iso"

Agostino Russo (ago) on 2008-07-07
Changed in wubi:
importance: Undecided → High
status: New → Confirmed
Agostino Russo (ago) on 2008-07-07
Changed in wubi:
assignee: nobody → ago
Agostino Russo (ago) on 2008-07-07
description: updated
Agostino Russo (ago) on 2008-07-08
Changed in wubi:
status: Confirmed → Fix Committed
Agostino Russo (ago) on 2008-09-24
Changed in wubi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers