Solved

How to check for registry value in Inno Setup?

Posted on 2007-04-04
1
2,220 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

One of the major drawbacks of deploying applications by GPO is the complete lack of any centralized reporting. After a normal deployment, there are two ways to find out if it was successful – by looking in the event log, and by looking in the log of…
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

896 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

17 Experts available now in Live!

Get 1:1 Help Now