Bug 343581 - Uninstaller removed required system folder 'C:\Documents and Settings\All Users\Desktop'. r=sspitzer

git-svn-id: svn://10.0.0.236/trunk@201539 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rob_strong%exchangecode.com
2006-07-04 22:03:14 +00:00
parent c8758b856c
commit 3edb2e4538

View File

@@ -993,15 +993,27 @@ Function un.RemoveDirsCallback
Call un.GetParentDir
Pop $R0
GetFullPathName $R1 "$R0"
; We only try to remove empty directories but the Desktop, StartMenu, and
; QuickLaunch directories can be empty so guard against removing them.
SetShellVarContext all
${If} $R1 == "$DESKTOP"
${OrIf} $R1 == "$STARTMENU"
GoTo end
${EndIf}
SetShellVarContext current
${If} $R1 == "$QUICKLAUNCH"
${OrIf} $R1 == "$DESKTOP"
${OrIf} $R1 == "$STARTMENU"
GoTo end
${EndIf}
${If} ${FileExists} "$R1"
RmDir "$R1"
${EndIf}
${If} ${Errors}
${OrIf} $R2 != "INSTDIR"
${OrIf} $R1 != "$INSTDIR"
GoTo end
${Else}
GoTo loop
${EndIf}
GoTo loop
${EndIf}
end: