You can register COM information in either
HKEY_LOCAL_MACHINE\Software\Classes or in
HKEY_CURRENT_USER\Software\Classes. HKEY_CLASSES_ROOT is a merged view of
those keys. If you specify HKCR in your Registry elements Windows Installer
places them in HKLM for a per-machine install and HKCU for a per-user
install. That applies to Windows 2000 onward.

 

If you use the Class table the keys are placed as above - HKLM per-machine,
HKCU per-user. The 'non-advertised' Class element (with @Advertise='no',
recommended, see Rob Mensching's blog at
http://robmensching.com/blog/archive/2007/03/12/RobMens-Recommendation-Do-no
t-advertise-COM-information-in-MSI.aspx) in WiX does the same thing.

 

If you're relying on self-registration then the code could do anything. You
are strongly advised to avoid self-reg. To avoid problems in your build, you
need your COM GUIDs to be stable. Look into Binary Compatibility in VB6. The
interface GUIDs will change if you change the interface, but otherwise will
be unchanged. The class and type library GUIDs remain the same.

 

The reference for built-in properties is the Windows Installer SDK under
"Property Reference", online at
http://msdn2.microsoft.com/en-us/library/aa370905.aspx. I don't think
there's any built-in property that does what you want. If you really want to
do this you'll need to build a custom action.

 

-- 

Mike Dimmick

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cheyne, Mark A
- DNR
Sent: 08 June 2007 22:37
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Check for 'power user' in Condition

 

All - Starting from the Condition element schema documentation at
http://wix.sourceforge.net/manual-wix2/wix_xsd_condition.htm, and also
trying this list's archives, I'm failing to find documentation on what inner
text values are allowed in a Product Condition (e.g. LaunchCondition). 

The excellent tutorial describes the 'Privileged' value, which seems to
check for Administrator status.  Is there a value that indicates 'Power
User' status?

Actually, what I am really trying to check for is the ability to register
VB6 COM DLLs (e.g. edit the registry) which happens in our agency to mean
Power User +. But if there is a direct way to determine it, I'd be happy to
know that instead.

Thanks, Mark 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to