[wix-users] A package that can be run elevated or not elevated
Furtado, Peter (GE Healthcare)
pete.furtado at ge.com
Sat Aug 22 07:45:28 PDT 2015
I am working with Christoph on this project and, yes, I am taking a lot of showers lately. But, I just want to narrow down the issue that is causing us the most concern at this point.
To summarize the situation we are in:
The legacy package we are converting to WiX is required to be installed by an administrator the first time so that it can install to its install folder under Program Files. During this first-time installation the package sets permissions on the install folder so that everybody has full control. They then allow subsequent upgrades to be executed by non-admins. They accomplish this by having the package deliver the files to a temp directory (first-time and subsequent installs), and then running a custom action to copy all the files to the install folder.
For our converted WiX package, we can install in perMachine scope as an admin user with no problems. When we attempt to run a subsequent upgrade as a non-admin, the WiX package displays a dialog box that says "You do not have sufficient privileges to complete this installation for all users of the machine. Log on as an administrator and then retry this installation." I'm assuming this is when it is attempting to install the files into its install folder under the Program Files directory. When we set the WiX package to perUser scope, we can successfully run subsequent upgrades as a non-admin user. This is great so far.
The problem:
With perUser installs, the package will only show up in the Programs and Features applet for the user that installed it. We really need all users (or, at least an administrator) to see all of these installs so that service engineers can maintain the workstations.
Any ideas on any of this? Thanks!
--------------------------------------------------
Pete Furtado
GE Healthcare
Staff Software Engineer
T 802-859-6028
E pete.furtado at ge.com<mailto:pete.furtado at ge.com>
www.gehealthcare.com<http://www.gehealthcare.com/>
40 IDX Drive
South Burlington, VT, 05403-7771, USA
General Electric Company, GE Healthcare
More information about the wix-users
mailing list