Re: [WiX-users] Creating Per-User Registry Entries in a Per-Machine Installation

2009-01-25 Thread george_r




 Are you sure that the HKCU registry entry exists for any user other than
 the 
 one that performed the installation? In my experience only the installing 
 user receives the HKCU entry.
 

I guess I was a bit too optimistic - generally you seem to be right. 
But there's more to it, I have an example where it worked (a setup for a
Word COM Add-In, that gets registered for all users in HKCU!) and I have to
find out WHAT exactly makes it work. There's some hidden magic ... I'll keep
you posted.

-- 
View this message in context: 
http://n2.nabble.com/Creating-Per-User-Registry-Entries-in-a-Per-Machine-Installation-tp2206842p2216475.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Creating Per-User Registry Entries in a Per-Machine Installation

2009-01-24 Thread Neil Sleightholm
I don't think this is possible, I would suggest that the right place to do this 
is in your application on first run not in the installation.

Neil

-Original Message-
From: Chuck [mailto:electroch...@att.net] 
Sent: 24 January 2009 00:09
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating Per-User Registry Entries in a Per-Machine 
Installation

My application installs on a per-machine basis so that it is available to all 
users. I have InstallPrivileges=elevated and InstallScope=perMachine. In 
addition, the installer creates some registry entries for my application in 
HKLM because I have specified Root=HKMU.

I would like to set some default registry values so that they are available to 
the individual user upon the first invocation of the application. The user must 
be able to modify those values and the values for each user must be distinct 
from those of other users. Therefore HKCU and not HKLM registry entries must be 
used.

Is there a mechanism for the installer to create registry entries in the HKCU 
tree for each user in this scenario? If that is possible, can all such HKCU 
registry entries be removed when the application is uninstalled?

Configuration: schemas.microsoft.com/wix/2006/wi, WiX binaries version 
3.0.4909.0, WiXEdit version 0.6.1762.0

--
Charles



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Creating Per-User Registry Entries in a Per-Machine Installation

2009-01-24 Thread george_r

Chuck, try:

Property Id=ALLUSERS1/Property

and set the initial registry values to HKCU.

That did the trick for me. 
-- 
View this message in context: 
http://n2.nabble.com/Creating-Per-User-Registry-Entries-in-a-Per-Machine-Installation-tp2206842p2209180.html
Sent from the wix-users mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Creating Per-User Registry Entries in a Per-Machine Installation

2009-01-24 Thread Rob Mensching
It isn't.  IMHO, the best way to handle this is to put the default settings 
in the code or, if you must, put them in HKLM.  Then your application reads 
from HKCU and if it doesn't find the setting there it falls back to where the 
default location is.  That way you only write the settings that the user 
changes from the default (saves time and space).

This is even more important since there is no good way to clean up all HKCU 
registry keys on uninstall.

-Original Message-
From: Neil Sleightholm [mailto:n...@x2systems.com]
Sent: Saturday, January 24, 2009 01:40
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Creating Per-User Registry Entries in a Per-Machine 
Installation

I don't think this is possible, I would suggest that the right place to do this 
is in your application on first run not in the installation.

Neil

-Original Message-
From: Chuck [mailto:electroch...@att.net]
Sent: 24 January 2009 00:09
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Creating Per-User Registry Entries in a Per-Machine 
Installation

My application installs on a per-machine basis so that it is available to all 
users. I have InstallPrivileges=elevated and InstallScope=perMachine. In 
addition, the installer creates some registry entries for my application in 
HKLM because I have specified Root=HKMU.

I would like to set some default registry values so that they are available to 
the individual user upon the first invocation of the application. The user must 
be able to modify those values and the values for each user must be distinct 
from those of other users. Therefore HKCU and not HKLM registry entries must be 
used.

Is there a mechanism for the installer to create registry entries in the HKCU 
tree for each user in this scenario? If that is possible, can all such HKCU 
registry entries be removed when the application is uninstalled?

Configuration: schemas.microsoft.com/wix/2006/wi, WiX binaries version 
3.0.4909.0, WiXEdit version 0.6.1762.0

--
Charles




--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Creating Per-User Registry Entries in a Per-Machine Installation

2009-01-24 Thread Chuck
Neil Sleightholm wrote:
 ...I would suggest that the right place to do this is in
 your application on first run not in the installation.

Rob Mensching wrote:
 IMHO, the best way to handle this is to put the default
 settings in the code or, if you must, put them in HKLM.  Then your
 application reads from HKCU and if it doesn't find the setting there
 it falls back to where the default location is.  That way you only
 write the settings that the user changes from the default (saves time
 and space).

I'll take your advice and put the routine to write create the HKCU entries 
and default values into my application.

 This is even more important since there is no good way to clean up
 all HKCU registry keys on uninstall.

If a user runs my application and later it is uninstalled, the users will 
have to live with the orphaned registry entry. Perhaps a registry cleaner 
will scrub it away. Few, if any, users will notice.

george_r wrote:
 Chuck, try:
 Property Id=ALLUSERS1/Property

That's what InstallScope=perMachine does and from 
http://www.joyofsetup.com/2008/04/01/new-wix-feature-setting-package-installation-scope/:
 
If you specify perMachine, you must remove any Property element that sets 
ALLUSERS.

 and set the initial registry values to HKCU.

Are you sure that the HKCU registry entry exists for any user other than the 
one that performed the installation? In my experience only the installing 
user receives the HKCU entry.
-- 
Charles


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Creating Per-User Registry Entries in a Per-Machine Installation

2009-01-23 Thread Chuck
My application installs on a per-machine basis so that it is available to 
all users. I have InstallPrivileges=elevated and InstallScope=perMachine. In 
addition, the installer creates some registry entries for my application in 
HKLM because I have specified Root=HKMU.


I would like to set some default registry values so that they are available 
to the individual user upon the first invocation of the application. The 
user must be able to modify those values and the values for each user must 
be distinct from those of other users. Therefore HKCU and not HKLM registry 
entries must be used.


Is there a mechanism for the installer to create registry entries in the 
HKCU tree for each user in this scenario? If that is possible, can all such 
HKCU registry entries be removed when the application is uninstalled?


Configuration: schemas.microsoft.com/wix/2006/wi, WiX binaries version 
3.0.4909.0, WiXEdit version 0.6.1762.0


--
Charles


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users