Windows installer to invoke uninstaller if old x86 type installation detected.
This commit is contained in:
parent
a0dfe6b1df
commit
14edc6f46b
1 changed files with 9 additions and 5 deletions
|
|
@ -244,13 +244,17 @@ end;
|
|||
|
||||
Procedure ForceUninstallPreviousX86Install();
|
||||
var
|
||||
Version: String;
|
||||
ResultCode: Integer;
|
||||
begin
|
||||
if RegQueryStringValue(HKEY_LOCAL_MACHINE, 'SOFTWARE\WOW6432Node\TuxPaint',
|
||||
'Version', Version) then
|
||||
if FileExists('C:\Program Files (x86)\TuxPaint\unins000.exe') then
|
||||
begin
|
||||
MsgBox('Please uninstall previous version.', mbInformation, MB_OK);
|
||||
Abort;
|
||||
if MsgBox('Old version will be uninstalled automatically.', mbInformation, MB_OKCANCEL) = IDOK then
|
||||
begin
|
||||
Exec('C:\Program Files (x86)\TuxPaint\unins000.exe', '/SILENT', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
|
||||
end
|
||||
else begin
|
||||
Abort;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue