TechKnow

Author Topic: [ISS] Check for a registry value and notify user  (Read 1286 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] Check for a registry value and notify user
« on: November 22, 2011, 10:47:35 PM »

If you want to check the registry for a value and notify the user about something, e.g. that it is know that the softwarepackage you desire to install has known problems while a firewall is activated or some old .NET version is running on the target system.

Code: [Select]
function regcheck(): String;
begin
 if RegKeyExists(HKEY_CURRENT_USER, 'Software\{#xAppName}') then
 begin
 // MsgBox('SmartQ Mod Tools already installed, press OK to overwrite.', mbInformation, MB_OK)
End;
End;

Paste this script in the
Code: [Select]
section of your installation script.
[/color]