Solved

How to check for registry value in Inno Setup?

Posted on 2007-04-04
1
2,213 Views
Last Modified: 2012-05-05
How do I check for a registry value in Inno Setup.  I want to check if the "REG_DWORD" of Windows Vista is a 1 or a 0.

 if  "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA" = 1 then begin
           Result := true;
end;
0
Comment
Question by:frankmorrison
1 Comment
 
LVL 18

Accepted Solution

by:
mirtheil earned 500 total points
ID: 18856874
Something like:

var
  EnableLUA: Cardinal;
begin
  if RegQueryDWordValue(HKEY_LOCAL_MACHINE, 'Software\Microsoft\Windows\CurrentVersion\Policies\System',
     'EnableLUA', EnableLUA) then
  begin
    // Successfully read the value
   if EnableLUA = 1then
    MsgBox('EnableLUA is 1',mbInformation, MB_OK);
  end;
end;
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now