It is potentially possible to either allow the user to choose whether to
install per-user or per-machine by providing some method of setting the
ALLUSERS property such as a couple of radio buttons and you could take
the choice away from them if they aren't running as Administrator by
conditioning the choice using the Privileged property. However when
running a per-user install you are limited to the things you can do. As
far as I'm aware you cannot write to HKLM & HKCR registry hives so most
registration operations are not possible. I'm not 100% sure but I don't
think you can write to ProgramFilesFolder and other similar places (all
your file & folder changes need to be in per-User locations all of which
are under the users profile directory).

Unless you're limiting your application/installer to *only* Windows 7
and/or Windows Installer 5.0 then the answer appears to be no. As
Windows XP SP3 only has Windows Installer 3.1 & Windows Vista SP2 only
has Windows Installer 4.0 (by default, Windows Installer 4.5 has a
redist available for both but is not automatically pushed out by
Microsoft Update) I would personally not try to attempt this but I
suggest you make your own choice. Once Windows Installer 5.0 is made
available you could potentially bootstrap it before your MSI but that
would require administrator privileges to install making the whole
discussion moot unless Microsoft decide to push it out using Automatic
Updates.

The following links may give you more information:

Installation Context ->
http://msdn.microsoft.com/en-us/library/dd765197%28VS.85%29.aspx
Windows Installer Team Blog on Authoring a single package for Per-User
or Per-Machine Installation context in Windows 7 ->
http://blogs.msdn.com/windows_installer_team/archive/2009/09/02/authorin
g-a-single-package-for-per-user-or-per-machine-installation-context-in-w
indows-7.aspx

Good Luck.


Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer


-----Original Message-----
From: Tobi Ha [mailto:tob...@gmx.net] 
Sent: 21 October 2009 10:37
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Installing a Program for "All users" without

Thanks for the quick response, so this was my first guess either.
So the other question is: is there a way to author a single installation
that can be isntalled in per user and all user context? The MSI MSDN
help states this is only possible for Windows 7 with MSI 5.0...

cheers,
Tobias


Date: Wed, 21 Oct 2009 10:29:53 +0100
From: "Pally Sandher" <pally.sand...@iesve.com>
Subject: Re: [WiX-users] Installing a Program for "All users" without
                 adminrights
To: "General discussion for Windows Installer XML toolset."
                 <wix-users@lists.sourceforge.net>
Message-ID: <7e4ef7766063ec4091542b5b3e671ec40226f...@mail.iesve.com>
Content-Type: text/plain;                charset="us-ascii"

Simple Answer: No.

Complex Answer: It depends on exactly what your installer does but the
things you can do are so limited they may as well not be possible
either. Hence the simple answer.

Palbinder Sandher
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500
F: +44 (0) 141 945 8501 

http://www.iesve.com
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP Email Disclaimer
 

-----Original Message-----
From: Tobi Ha [mailto:tob...@gmx.net]
Sent: 21 October 2009 09:54
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Installing a Program for "All users" without
adminrights

I ahve a question regarding Installation Privileges and the setting of
the ALLUSERS property:

Is it possible to install an MSI in the "allusers context" without
having admin or any special rights (so be a normal user)?

cheers,
Tobias
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox
3.5 - sicherer, schneller und einfacher!
http://portal.gmx.net/de/go/atbrowser

------------------------------------------------------------------------
------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA is
the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and
stay ahead of the curve. Join us from November 9 - 12, 2009. Register
now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to