Skip to content

Commit 4e9c732

Browse files
authored
Merge pull request #3887 from bclothier/BuildRegistryWithWix
Installer no longer removes user settings. If this comes up as an issue, let it be by-design.
2 parents 53fc9dd + f652a2f commit 4e9c732

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Rubberduck.Deployment/InnoSetup/Installer Build Script.iss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,11 @@ Source: "{#IncludesDir}Rubberduck.RegisterAddIn.reg"; DestDir: "{app}"; Flags: i
103103
; Use [Code] section (RegisterAddIn procedure) to register the entries instead.
104104
#include <Rubberduck.reg.iss>
105105

106-
[UninstallDelete]
107-
Type: filesandordirs; Name: "{userappdata}\{#AppName}"
106+
; Commneted out because we don't want to delete users setting when they are just
107+
; uninstalling to install another version of Rubberduck. Considered prompting to
108+
; delete but not for right now.
109+
; [UninstallDelete]
110+
; Type: filesandordirs; Name: "{userappdata}\{#AppName}"
108111

109112
[CustomMessages]
110113
; TODO add additional languages here by adding include files in \Includes folder
@@ -1063,5 +1066,8 @@ end;
10631066
///</remarks>
10641067
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
10651068
begin
1066-
if CurUninstallStep = usUninstall then UnregisterAddin();
1069+
if CurUninstallStep = usUninstall then
1070+
begin
1071+
UnregisterAddin();
1072+
end;
10671073
end;

0 commit comments

Comments
 (0)