Author Topic: [ISS] Writing to the registry  (Read 1421 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] Writing to the registry
« on: November 22, 2011, 10:48:08 PM »

There are several ways to write to the registry, here's just one simple example:

Code: [Select]
Root: HKCU; SubKey: "Software\{#xAppName}"; ValueType: string; ValueName: Version; ValueData: {#xAppVer}; Flags: UninsClearValue;
UninsClearValue means that the value get's cleared when the application is installed, that is for this case important because I don't want any mess left in the system when you remove SmartQ Mod Tools.

This shows a simple yet very useful example of using variables to write to the register, this show the SmartQ Mod Tool's way to write it's version down in the register by using predefined variables:

Code: [Select]
#define xAppName "SmartQ7 Mod Tools"
#define xAppVer "0.3"