Using the Class element (etc) in WiX generates Registry table entries that
go to HKCR. That in turn follows the setting of ALLUSERS: if not set, it
goes to HKEY_CURRENT_USER\Software\Classes, while if ALLUSERS=1, it goes to
HKEY_LOCAL_MACHINE\Software\Classes. This was true in Windows XP for
packages installed by an administrative user and the same is true in Windows
Vista even if you have UAC turned off. The UAC prompt enables you to assert
your admin rights.

 

If you're creating a package that is intended to be installed by an
unprivileged user into their own profile, don't set ALLUSERS. Otherwise
(which for most people is the case), set ALLUSERS to 1.

 

Always test with UAC on, because it's the more restrictive environment and
your customer may have it turned on (it is of course the default). Don't
assume that nerds have it turned off: I have it enabled.

 

-- 

Mike Dimmick

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad Blomquist
Sent: 31 March 2008 17:33
To: [email protected]
Subject: [WiX-users] Vista, UAC off, registry writes virtualized

 

I briefly searched the archive for an appropriate post and nothing I found
was quite right, but I apologize if this issue has been previously discussed
here.


Using WiX v3 (candle.exe version number is 3.0.2925.0).


I have a WiX installer project that builds a MSI file for an IE toolbar/bho
extension.  When installing on Windows Vista with the User Access Control
(UAC) turned *off* (ie, on install UAC does not ask you to confirm), there
seems to be a permissions problem when writing to the registry -- writes to
HKLM/Software/Classes/ AppID, CLSID/*, Interface/*, Typelib/*  are all being
virtualized into HKUsers/[userid]/Software

Writes defined explicitly (RegistryValue entries in the WiX code) that write
to HKLM/Software/[company]/[product] and HKLM/Software/Microsoft/IE and
Windows (to register the bho/toolbar with IE) are working just fine.  It
seems to be the stuff that is entered automatically from the <File> element
in the WiX code that is being virtualized.

I suspect this is a permissions problem?  Since UAC is not being invoked,
something is being run by a low-privileges user or something?  Any ideas?

Thanks,

Chad Blomquist

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to