By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,950 Members | 1,035 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,950 IT Pros & Developers. It's quick & easy.

Registry Key Launch Condition

P: 1
Hello guys,

I'm trying to add a launch condition to my .msi package deployment but it's not working. I want to check if UAC is enabled in the target machine. My values for the registry search are:
Expand|Select|Wrap|Line Numbers
  1. Property: UACSTATUS
  2. RegKey: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  3. Root: vsdrrHKLM
  4. Value: EnableLUA
  5.  
The value is of a REG_DWORD type. 1 for enabled, 0 for disabled.

Then I created the launch condition:
Expand|Select|Wrap|Line Numbers
  1. (Name): UACVerification
  2. Condition: UACSTATUS = 0
  3. InstallUrl: <left blank for now>
  4. Message: You must disable UAC prior to install this application.
  5.  
The problem is: it doesn't work. Testing in my machine (which has UAC disabled), both comparisons for 0 or 1 in the Condition returns false and doesn't allow me to continue with the installation.

Aren't REG_DWORD types treated as numbers? I tried using quotes ("0", or '0') but it does not work as well.
Mar 13 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.