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=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users