TechKnow

Author Topic: [ISS] Read a registry value and display it  (Read 1602 times)

0 Members and 1 Guest are viewing this topic.

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9936
  • Karma: +2284/-111
[ISS] Read a registry value and display it
« on: November 22, 2011, 10:48:47 PM »

This is an example that shows you how to create a message that a previous version is installed before the installation begins:

Code: [Select]
[code]
procedure InitializeWizard();
var
  Version: String;
begin
  if RegQueryStringValue(HKEY_CURRENT_USER, 'Software\SmartQ7 Mod Tools',
     'Version', Version) then
  begin
    // Successfully read the value
    MsgBox('{#MyAppName} already installed, press OK to resume Setup and install {#MyAppVersion} , detected version: ' + Version, mbInformation, MB_OK);
  end;
end;
[/color]