View Single Post
  #33  
Old 16-11-2014, 05:16
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
function GetUninstallerPath: string;
var
RegKey: string;
begin
Result := '';
if ISWin64 then
RegKey := 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVer sion\Uninstall\' + ExpandConstant('{#AppName}') + '_is1'
else
RegKey := 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninsta ll\' + ExpandConstant('{#AppName}') + '_is1';
if not RegQueryStringValue(HKLM, RegKey, 'UninstallString', Result) then
RegQueryStringValue(HKEY_CURRENT_USER, RegKey, 'UninstallString', Result);
StringChange(Result,'"','');
StringChange(Result,' /Silent','');
end;
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Logrim (16-11-2014)