Registry Key Launch Condition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edubkn
    New Member
    • Mar 2012
    • 1

    Registry Key Launch Condition

    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:
    Code:
    Property: UACSTATUS
    RegKey: SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
    Root: vsdrrHKLM
    Value: EnableLUA
    The value is of a REG_DWORD type. 1 for enabled, 0 for disabled.

    Then I created the launch condition:
    Code:
    (Name): UACVerification
    Condition: UACSTATUS = 0
    InstallUrl: <left blank for now>
    Message: You must disable UAC prior to install this application.
    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.
Working...