[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to check for registry value in Inno Setup?

Posted on 2007-04-04
1
Medium Priority
?
2,300 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

834 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