Repository navigation
Allow user-context installation on Windows (no admin rights required) #1042
Description
Activity
Looks like installing to Program Files is what causes the escalation to Admin, maybe we can install Processing in a different location?
Oops, I shared the wrong reference link I meant to post this https://www.advancedinstaller.com/per-user-per-machine-msi-installation.html
It says:
Compared to per-machine installations, a per-user application gets installed in a user profile location, usually in
AppData\LocalorAppData\Roaming.No, I edited it because we don't use advanced installer
I see! I read that page a little too quickly and missed that it wasn't about regular
.msiinstallers.maybe we can install Processing in a different location?
Is there a way we can leave it to the user to choose between a simple installation and an administrative installation? Is this page relevant?
If technically possible, then maybe the options could be labeled like this to keep it clear:
-
Simple install (recommended for most users)
-
Admin install (for administrators and shared machines)
-
Hello, I have looked into this today. here are my findings.
The first thing is that we can configure the Wix package to allow both per-user and per-machine installation with the Scope property.
Then we can then set a
ALLUSERSvariable to conditionnaly choose between the different installation paths.I have built an installer that can do both installations, with the variable set from the command line when running
msiexec.Adding the dialog to pick between the two options is a little trickier. We are using
WixUI_Mondofor the ui sequence, which does not support picking between different scopes. From there, it appears we can either :- rewrite that sequence, adding a custom dialog into the sequence;
or - swap
WixUI_MondoforWixUI_Advanced, which defines a built-inInstallScopeDlg.
My feeling is that going for the advanced installer would be preferable, since it is the built-in solution offered by Wix, but I could be wrong since I don't know the reasons
WixUI_Mondowas picked in the first place.I could start working on a PR, and would like some feedbacks on those solutions.
Cheers
- rewrite that sequence, adding a custom dialog into the sequence;
Hi @jdebou! Sorry for the very late reply. Are you still interested in working on improving the Windows installer? We could definitely use some help there 💙
Hi @SableRaf , I'm still open to working on improving the installer. I would like some direction or more information about the initial choices made in the installer before starting (see my previous message).
Cheers
Reacted by Raphaël de CourvilleI would say start the PR with
WixUI_Advancedand we'll have a look on how that influences the installation process, it looks to me like it is the correct oneReacted by Joackim de Bourqueney
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTo do
Since Processing 4.4, the Windows release uses an
.msiinstaller, which installs in the system context by default.This means people without admin access on their machine cannot install Processing. As reported by this Reddit user
We should provide an option to install in user context, so that admin rights are not needed.
This would make installation easier for students, schools, and others using restricted machines.
Reference
https://stackoverflow.com/questions/14339372/wix-non-admin-installer-tutorial