Skip to content

Commit

Permalink
added check function
Browse files Browse the repository at this point in the history
  • Loading branch information
retailcoder committed Apr 23, 2021
1 parent 70bceb8 commit 8903248
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Rubberduck.Deployment/InnoSetup/Rubberduck.Installer.Build.iss
Expand Up @@ -105,7 +105,7 @@ Source: "{#IncludesDir}Rubberduck.RegisterAddIn.bat"; DestDir: "{app}"; Flags: i
Source: "{#IncludesDir}Rubberduck.RegisterAddIn.reg"; DestDir: "{app}"; Flags: ignoreversion replacesameversion;

; 'LegacyWorkload' initial configuration (disables autocompletion and inspections that could spawn too many results in legacy code)
Source: "{#SourcePath}\WorkloadConfigs\Legacy\rubberduck.config"; DestDir: "{userappdata}\{#AppName}"; Check: UseLegacyWorkloadConfig;
Source: "{#SourcePath}\WorkloadConfigs\Legacy\rubberduck.config"; DestDir: "{userappdata}\{#AppName}"; Flags: ignoreversion replacesameversion; Check: CheckUseLegacyWorkloadConfig;

[Registry]
; DO NOT attempt to register VBE Add-In with this section. It doesn't work
Expand Down Expand Up @@ -537,6 +537,14 @@ begin
result := true;
end;
function CheckUseLegacyWorkloadConfig():boolean;
begin
if UseLegacyWorkloadConfig then
result := true;
else
result := false;
end;
///<remarks>
///Used by <see cref="RegisterAddIn" />, passing in parameters to actually create
///the per-user registry entries to enable VBE addin for that user.
Expand Down

0 comments on commit 8903248

Please sign in to comment.