Heh, that's exactly what ClickThrough does. On my very long back log of things
to blog is how to flip per-user/per-machine. IIRC , it isn't perfect on Vista.
Anyway, take a look at "wix\src\ambient\applib\applib.wxs". I think that does
*exactly* what you're looking for. I think it'll even handle the case if the
user specifies the install location (TARGETDIR, in this case) on the
command-line.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Haloun
Sent: Friday, May 02, 2008 15:59
To: Rob Mensching
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Class and Typlib tags for per user and per machine
installs
That's a good question. I could collapse pretty much everything (HKCU->HKMU,
etc) if I could solve one thing.
We install our components under different directory paths in the two cases,
either ProgramFilesFolder or LocalAppDataFolder. If I could make the target of
my directoryref be defined to those different values depending on the ALLUSERS
property that would do it.
Tim
On Fri, May 2, 2008 at 2:47 PM, Rob Mensching <[EMAIL PROTECTED]<mailto:[EMAIL
PROTECTED]>> wrote:
I think the problem is that ICE57 isn't actually taking into account the
Condition on the Component. In their defense, static conditional evaluation is
a pretty gnarly problem. <smile/> Also, ALLUSERS has that nasty "2" as an
option.
Why not separate out the HKCU stuff? Or better yet, don't write it at all (of
course, it depends on the data... but presumably user data could be managed at
runtime rather than trying to get setup to install and uninstall it correctly
for all users... which is impossible in all cases).
From: [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> [mailto:[EMAIL
PROTECTED]<mailto:[EMAIL PROTECTED]>] On Behalf Of Tim Haloun
Sent: Friday, May 02, 2008 11:05
To: wix-users@lists.sourceforge.net<mailto:wix-users@lists.sourceforge.net>
Subject: [WiX-users] Class and Typlib tags for per user and per machine installs
Hi,
I had a quick question. I have a product that supports both per machine and
per user installs, and I am trying to transition from wix 2 to 3. The
particular component that is giving me trouble is a pretty simply, and contains
several files, one of which has a COM Class registration, and a few HKCU
registry keys. The condition for the component is "NOT (ALLUSERS)", yet I am
getting an ICE57 error when trying to compile, saying that this component
contains per user and per machine data.
After some binary search commenting I have narrowed it down to the Class tag
that is raising the error, but I was under the impression that the Class tag
knew how to 'do the right thing' depending on the ALLUSERS value? Or, perhaps
my Condition has to be more complex now, rather than going only by ALLUSERS is
defined or not?
Thanks,
Tim
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users