Author Topic: [ISS] Check for a registry value and notify user  (Read 1318 times)

0 Members and 1 Guest are viewing this topic.

Offline HcH

  • TechKnow Owner, Ethical Hacker
  • Administrator
  • Uber Member
  • *****
  • Posts: 9956
  • Karma: +2285/-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;
 if RegKeyExists(HKEY_CURRENT_USER, 'Software\{#xAppName}') then
 // MsgBox('SmartQ Mod Tools already installed, press OK to overwrite.', mbInformation, MB_OK)

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