[CRITICAL] Abort installation after the suggestion to uninstall old version when previous installation to 'Program Files (x86)' Folder detected.
It seems to work, but very carefull test required.
This commit is contained in:
parent
195b0efc89
commit
18eb710818
1 changed files with 13 additions and 0 deletions
|
|
@ -242,6 +242,18 @@ begin
|
|||
Result := Path;
|
||||
end;
|
||||
|
||||
Procedure ForceUninstallPreviousX86Install();
|
||||
var
|
||||
Version: String;
|
||||
begin
|
||||
if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\WOW6432Node\TuxPaint',
|
||||
'Version', Version) then
|
||||
begin
|
||||
MsgBox('Please uninstall previous version.', mbInformation, MB_OK);
|
||||
Abort;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure CreateTheWizardPages;
|
||||
var
|
||||
Page: TWizardPage;
|
||||
|
|
@ -530,6 +542,7 @@ end;
|
|||
procedure InitializeWizard();
|
||||
begin
|
||||
begin
|
||||
ForceUninstallPreviousX86Install();
|
||||
CreateTheWizardPages;
|
||||
end
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue