1- There is no safe way from Windows Installer directly to remove registry
entries from other user's profiles. The best I have ever found is a
mechanism called "Active Setup" but it has never been publicly documented by
Microsoft which means it may or may not be in any future version of Windows
and it may work differently in different versions of the OS.

2- You can, but the ICE that requires the HKCU entry doesn't know/test for
ALLUSERS (since it can in theory be overridden/removed via the command-line)
and will still complain.

3- It actually works the way you probably understand, but ICE 57 makes the
same assumption as the other ICE tests that the value can be overridden and
so always assumes "THE WORST" by ignoring the property entirely.

The ICE tests are not written by the WiX team (they are written by the
Windows Installer team), and many people have complained about some of them
being somewhat "brain-dead". Personally I use them as guides but not
necessarily hard-and-fast rules. That is part of the reason the toolset
allows you to suppress them individually. If you do suppress them, run them
afterwards and understand the ones you suppressed to make sure you aren't
creating some other problem for yourself later on...

-----Original Message-----
From: ricky sundrani [mailto:rickysundr...@gmail.com] 
Sent: Tuesday, February 09, 2010 2:51 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Orphan Registry Entries, HKMU and ALLUSERS

I am using wix to install a file and its shortcut.
i have to use a non-advertised shortcut. i am also setting ALLUSERS=1 (I am
using Win 2003 and wix 3.0)
But i have the following queries:
1) Non advertised shortcuts require a registry entry under HKCU.
So when some other user uninstalls the product, the file and the product are
uninstalled , but the registry entry remains intact for all other users.
I wish to remove this orphaned registry entry on uninstallation.
2) Can't i create a adveritsed shortcut and use a registry entry under HKLM
as its keypath so that on uninstallation , no orphaned registry entries are
left.
3) Also how does HKMU work?
i tried to use Root=HKMU and

<
Property Id="ALLUSERS" Value="1"/>
But here i got ICE 57 warning: ICE57: Component 'ProductComponent' has both
per-user data and a keypath that can be either per-user or per-machine.


-- 
Best Regards.

Ricky
----------------------------------------------------------------------------
--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the
business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to