I have the EXE set up under Custom Actions/Install and then set up a search with the variable UAC_ENABLED tied to the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\EnableLUA
I can run the TEST in the search pane and verify that the correct value is retrieved for this registry key.
I then included as the Execution Condition:
(VersionNT < 600) or (UAC_ENABLED = 0)
I.e. run this if not vista, OR Vista, but UAC not enabled. I even just made the test: UAC_ENABLED = 0
but the EXE file never runs. I changed the test to UAC_ENABLED ~= 0 and it still does not run - so I must be missing something as to how this mechanism works as if it is a condition, it has to work on one of them! What am I missing here?? I tried another test (for windows version) and that worked fine - just using this registry variable as a user-defined property doesn't do what I expect...
Oh, and the dialog for testing says: "the search result will apear in the edit-box"
Need two p's there, eh?
FOLLOW US
Get the latest news in Application Packaging