Re: [WiX-users] Ensuring an MSI can only be installed per-machine

2010-03-11 Thread Paul Baker
> ALLUSERS="2" is a valid setting.

Yes, ALLUSERS=2 is valid in general, but I'm interested to know why my
installer was perfectly happy with it - even when the source file
contained:

ALLUSERS=1

> As Thorsten said on his reply, don't worry too much about locking that
> type of thing down.

Thanks to both of you for the advice. I think I'll leave things as is:
default to ALLUSERS=1 and if someone is competent enough to change it,
hopefully they are also competent enough to deal with the problems
that may occur!

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Ensuring an MSI can only be installed per-machine

2010-03-08 Thread Wilson, Phil
If you really care, then author a (type 51) custom action that sets ALLUSERS to 
1 so that it doesn't matter if it gets specified on the command line.

ALLUSERS=2 is often not what you want because it simply backs off to a per-user 
install if the user doesn't have enough privilege. 

Phil Wilson 

-Original Message-
From: Paul Baker [mailto:paulbak...@gmail.com] 
Sent: Sunday, March 07, 2010 9:14 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Ensuring an MSI can only be installed per-machine

I have set the Package/@InstallScope attribute in my WiX source file
to "perMachine". As I understand things, this sets the ALLUSERS
property to 1. This effectively causes my MSI to default to a
per-machine installation, but does not entirely prevent per-user
installs since ALLUSERS can be overridden on the command line.

-- If I only ever want my installer to be used per-machine, is it
recommended that I do something to try and prevent users overriding
ALLUSERS?

I was investigating exactly what I might do and tried to prevent
per-user installations with a launch condition on "ALLUSERS=1". I
tried:

ALLUSERS=1

Unfortunately, this had very little effect. Whilst it prevented
installation with ALLUSERS="", if ALLUSERS was set to any value, e.g.
ALLUSERS=2, the installation was allowed to continue. Also, it seemed
that repair and uninstall were allowed to go ahead no matter what the
value of ALLUSERS.

-- Why did this condition not work as planned?

--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at Portland House, Bressenden Place, London, 
SW1E 5BF (Registered number 166023). For a list of European legal entities 
within the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77. 
You may contact Invensys plc on +44 (0)20 7821 3848 or e-mail 
inet.hqhelpd...@invensys.com. This e-mail and any attachments thereto may be 
subject to the terms of any agreements between Invensys (and/or its 
subsidiaries and affiliates) and the recipient (and/or its subsidiaries and 
affiliates).



--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Ensuring an MSI can only be installed per-machine

2010-03-08 Thread Pally Sandher
ALLUSERS="2" is a valid setting.
http://msdn.microsoft.com/en-us/library/aa367559(VS.85).aspx

As Thorsten said on his reply, don't worry too much about locking that
type of thing down. If a user is competent enough to mess with your MSI
to engineer a per-user installation rather than a per-machine one leave
them to their own devices. I'd be surprised to find any sys-admin who'd
do per-user installs rather than per-machine & your average user isn't
going to know the difference anyway.

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 **
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: Paul Baker [mailto:paulbak...@gmail.com] 
Sent: 08 March 2010 05:14
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Ensuring an MSI can only be installed per-machine

I have set the Package/@InstallScope attribute in my WiX source file to
"perMachine". As I understand things, this sets the ALLUSERS property to
1. This effectively causes my MSI to default to a per-machine
installation, but does not entirely prevent per-user installs since
ALLUSERS can be overridden on the command line.

-- If I only ever want my installer to be used per-machine, is it
recommended that I do something to try and prevent users overriding
ALLUSERS?

I was investigating exactly what I might do and tried to prevent
per-user installations with a launch condition on "ALLUSERS=1". I
tried:

ALLUSERS=1

Unfortunately, this had very little effect. Whilst it prevented
installation with ALLUSERS="", if ALLUSERS was set to any value, e.g.
ALLUSERS=2, the installation was allowed to continue. Also, it seemed
that repair and uninstall were allowed to go ahead no matter what the
value of ALLUSERS.

-- Why did this condition not work as planned?


--
Download Intel® Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Ensuring an MSI can only be installed per-machine

2010-03-07 Thread Thorsten Schöning
Guten Tag Paul Baker,
am Montag, 8. März 2010 um 06:13 schrieben Sie:

> -- If I only ever want my installer to be used per-machine, is it
> recommended that I do something to try and prevent users overriding
> ALLUSERS?

I wouldn't spend to much effort in trying to prevent the user from
doing things which he knows best of, because it's his system he
installs your software on. Just reject support for such an
installation method. I always ask myself what problems I really need
to solve by building something which prevents the user from doing
something with his software.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoen...@am-soft.de
Web: http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow


--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users