I don't believe there's been a change in ALLUSERS=2 behavior, only in
the documentation that Scott pointed at. MSADN from August 2006 doesn't
single out XP, for example.
I've never been a fan of ALLUSERS=2 because of its unpredictability.
Sometimes you'll get per-user, sometimes per-machine. How can that be
relied on for something like a major upgrade when a user may be promoted
or demoted by the time you do an upgrade? It just seems to me that if
you know you want per-machine then just force it and avoid the hassle.
Phil Wilson
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ricardo
Lopes
Sent: Thursday, April 05, 2007 10:06 AM
To: Scott Palmer
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Per-Machine Installs that work on XP and Vista
Hi,
I sucessfully did a per-machine installer that works on XP and on Vista
(at least on the tests in the virtual machines worked fine).
I use the ALLUSERS=2 option to make vista put the shortcuts on all the
users desktop and start menu, but the secret is to include a
bootstrapper. I use the GenerateBootStrapper task of msbuild.
When the user install the application he has to call the setup.exe
instead of the msi and if he is using a limited account it ask for the
password and everything works.
Hope it helps,
Ricardo Lopes.
On 04/04/07, Scott Palmer <[EMAIL PROTECTED]> wrote:
I read this:
http://msdn2.microsoft.com/en-us/library/aa371865.aspx
(It took a while to get over the urge to slaughter those
responsible... but I'm feeling much better now.)
That article indicates that Windows Installer is broken for
per-machine installs as there is no way to specify that you must have a
per-machine install that works on both XP and Vista.
If ALLUSERS=2, Vista will try a per -machine install and fail if
the user's credentials do not allow it.
But XP will perform a per-user install if ALLUSERS=2
If ALLUSERS=1 it appears that XP will do a per- machine install,
though it is not documented as doing so on the page referenced above.
My ultimate goal is to install the application to a single
common location that is user-independent. My current installer which
only sets ALLUSERS=1 tends to scatter files all over the place on Vista
as Vista has buggered the folder structure so some of my files appear to
be in a "common" place that is only common for that one user (which
appears to break component rules if another user installs the same
stuff), and some files go elsewhere.
I'm hoping there is some conditional stuff I can add to the WiX
source that will cause ALLUSERS to get set to the appropriate value (1
or 2) based on the OS and that this will happen in time for Windows
Installer to recognize the value I want.
I also noticed that the documentation for the Directory Id
"ProgramFiles" here
http://msdn2.microsoft.com/en-us/library/aa370810.aspx indicates that it
is always a per-user location. That's obviously not true on XP, but
sadly it seems to be true on Vista.
What's the trick?
Scott
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance
to share your
opinions on IT & business topics through brief surveys-and earn
cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
<mailto:WiX-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/ wix-users
<https://lists.sourceforge.net/lists/listinfo/wix-users>
--
Ricardo Lopes
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users