I have tried using the Active Setup keys but when the other user logs in the
replication isn't occurring nor is the repair type install.
Here is what my setup looks like:
<!--Installed at HKLM so that Active Setup keys can be imployed-->
<RegistryValue Id="ctd_classinfo_185" Action="write" Type="string"
Root="HKLM" Key="Software\Microsoft\Internet Explorer\MenuExt\Report
Click-To-Dial Problem" Value="[#ctxmenu.htm]"/>
<RegistryValue Id="ctd_classinfo_186" Action="write" Type="string"
Root="HKLM" Key="Software\Microsoft\Internet Explorer\MenuExt\Report
Click-To-Dial Problem\Contexts" Value="1"/>
<RegistryValue Id="ctd_activesetup_regfix_1" Action="write"
Type="string" Root="HKLM" Key="Software\Microsoft\Active Setup\Installed
Components\[ProductCode]" Value="[ProductName]" />
<RegistryValue Id="ctd_activesetup_regfix_2" Action="write"
Type="string" Root="HKLM" Key="Software\Microsoft\Active Setup\Installed
Components\[ProductCode]\StubPath" Value="msiexec /fou [ProductCode] /qb"/>
<RegistryValue Id="ctd_activesetup_regfix_3" Action="write"
Type="string" Root="HKLM" Key="Software\Microsoft\Active Setup\Installed
Components\[ProductCode]\Version" Value="1,0,0"/>
HKCU items are in separate components so that they can have the KeyPath
attribute set.
<!--Must be installed in HKCU for installing user to immediately use. All
other users will have the plugin silently repaired using Active Setup-->
<Component Id="ctd_ieplugin_hkcu_menuext"
Guid="DB65E89E-C207-43BC-B4E9-E75D20A870AF" SharedDllRefCount="yes">
<RegistryValue Id="ctd_classinfo_183" Action="write" Type="string"
Root="HKCU" KeyPath="yes" Key="Software\Microsoft\Internet
Explorer\MenuExt\Report Click-To-Dial Problem" Value="[#ctxmenu.htm]"/>
<!--These two entries keep the install from re-running or repairing
itself when the installing user logs back in.-->
<RegistryValue Id="ctd_activesetup_HKCU_COPY_1" Action="write"
Type="string" Root="HKCU" Key="Software\Microsoft\Active Setup\Installed
Components\[ProductCode]" Value="[ProductName]" />
<RegistryValue Id="ctd_activesetup_HKCU_COPY_2" Action="write"
Type="string" Root="HKCU" Key="Software\Microsoft\Active Setup\Installed
Components\[ProductCode]\Version" Value="1,0,0"/>
</Component>
<Component Id="ctd_ieplugin_hkcu_menuext_context"
Guid="327241A1-ECFF-454D-A8EC-34E0BF616904" SharedDllRefCount="yes">
<RegistryValue Id="ctd_classinfo_184" Action="write" Type="string"
Root="HKCU" KeyPath="yes" Key="Software\Microsoft\Internet
Explorer\MenuExt\Report Click-To-Dial Problem\Contexts" Value="1"/>
</Component>
The OS I am running this on is Windows 7 64 Bit. The installing user is also in
the local admin group but the others users are not.
Jon
-----Original Message-----
From: Christopher Painter [mailto:[email protected]]
Sent: Thursday, January 12, 2012 7:12 PM
To: Dan Gough; General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Adding Internet Explorer Context Menu item for all
users in a per machine install
Then there's the case of Office AddIns that allowed either HKCU or HKLM in
2003, took away in 2007 ( and put it back with a hotfix and enabling registry
value ) and really put it back in 2010 leaving one hell of a mess for us
installer guys to deal with.
So, yes, YMMV... in the event it really needs to be HKCU like the poster
asserted then my response below will help.
----------------------------------------
From: "Dan Gough" <[email protected]>
Sent: Thursday, January 12, 2012 5:21 PM
To: [email protected], "General discussion for Windows Installer XML toolset."
<[email protected]>
Subject: Re: [WiX-users] Adding Internet Explorer Context Menu item for all
users in a per machine install
Or try applying the key to HKLM rather than HKCU in the first place. Many
Windows settings can apply to either key to give you the flexibility of
having each setting system-wide or per-user.
On Thu, Jan 12, 2012 at 9:34 PM, Christopher Painter <[email protected]>
wrote:
The Registry element has a Root attribute that you can set to HKCU. If
your program has an advertised shortcut you can use this to trigger
resilency to complete the installation for each user who uses your app.
It's an ugly story though like the old Office install that popped up every
time you went to a new conference room and logged in.
http://wix.sourceforge.net/manual-wix3/wix_xsd_registry.htm
Here's an alternative approach that avoids all that:
http://blogs.flexerasoftware.com/installtalk/2011/11/using-active-setup-to-r
epair-user-settings.html
----------------------------------------
From: "McCain, Jon" <[email protected]>
Sent: Thursday, January 12, 2012 3:28 PM
To: "General discussion for Windows Installer XML toolset.
([email protected])" <[email protected]>
Subject: [WiX-users] Adding Internet Explorer Context Menu item for all
users in a per machine install
I have been working on a new install where a context menu is added to the
Right-Click Menu within Internet Explorer.
Everything I have read regarding this requires the key be added to
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer. This does work but
the issue I have is that our installs are run as per-machine installs and
this causes other users that login to not have this menu.
Links to MSDN articles explaining context menu additions for Internet
Explorer: http://msdn.microsoft.com/en-us/library/aa753589%28VS.85%29.aspx
The wxs code is quite simple for this addition:
<RegistryValue Id="ctd_classinfo_183" Action="write" Type="string"
Root="HKCU" Key="Software\Microsoft\Internet Explorer\MenuExt\keyName"
Value="[#FileID]"/>
<RegistryValue Id="ctd_classinfo_184" Action="write" Type="string"
Root="HKCU" Key="Software\Microsoft\Internet Explorer\MenuExt\ keyName
\Contexts" Value="1"/>
Has anyone run into this or another issue where a per-machine install is
performed but features or other items need to exist for all users in the
above fashion?
Thanks,
Jon
----------------------------------------------------------------------------
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
----------------------------------------------------------------------------
--
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users