Skip to content

Windows MSI installs in all cases into the users account initiating install #1652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
tps800 opened this issue Nov 8, 2022 · 3 comments
Closed
3 tasks done
Assignees
Labels
conclusion: invalid Issue/PR not valid os: windows Specific to Windows operating system type: imperfection Perceived defect in any part of project

Comments

@tps800
Copy link

tps800 commented Nov 8, 2022

Describe the problem

msiexec /i arduino-ide_2.0.1_Windows_64bit.msi ALLUSERS=1

is expected to install to C:\Program Files\arduino-ide because of ALLUSERS=1 given. It unexpectedly will install to C:\Users\<administrative user accounts name>\AppData\Local\Programs\arduino-ide. This is wrong.

Since ALLUSERS=1 it should install into C:\Program Files\arduino-ide or fail if the user installing does not have Administrative rights.

If you give

msiexec /i arduino-ide_2.0.1_Windows_64bit.msi ALLUSERS=1 TARGETDIR="C:\Program Files\arduino-ide"

installs to C:\Program Files\arduino-ide but sets up icons and other stuff only for the account whom initiated the installation. All other users will have to create those icons on there own.

To reproduce

Download the Windows MSI package from "https://www.arduino.cc". Then install it using msiexec:

msiexec /i arduino-ide_2.0.1_Windows_64bit.msi ALLUSERS=1

The installer is expected to install into C:\Program Files\arduino-ide, but installs into C:\Users\<admin-user>\AppData\Local\Programs\arduino-ide
If the installer is forced to install to C:\Program Files\arduino-ide it will do so, but wont create icons within Windows menu to start the application for all users. Only for the administrative user who initiated the install.

Expected behavior

If called with

msiexec /i arduino-ide_2.0.1_Windows_64bit.msi ALLUSERS=1

it is expected the installer installing to C:\Program Files\arduino-ide, then creating program icons for all users if the user installing has administrative rights. If not the installer shall prompt for an administrative account. If none given it should fail.

Arduino IDE version

2.0.1

Operating system

Windows

Operating system version

10

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@tps800 tps800 added the type: imperfection Perceived defect in any part of project label Nov 8, 2022
@kittaakos kittaakos added the os: windows Specific to Windows operating system label Nov 8, 2022
@per1234
Copy link
Contributor

per1234 commented Nov 9, 2022

Hi @tps800. Thanks for your report.

I was not able to reproduce this. The provided command works just as expected; installing Arduino IDE to C:\Program Files\arduino-ide.

I'm going to ask you to try the command again, only with an extra flag added that will cause it to generate a log file:

msiexec /i arduino-ide_2.0.1_Windows_64bit.msi /l* install.log ALLUSERS=1

After that command finishes, you should find a file named install.log in the folder you ran the command from. Please attach that file to a comment here.

@per1234 per1234 self-assigned this Nov 9, 2022
@per1234 per1234 added the status: waiting for information More information must be provided before work can proceed label Nov 9, 2022
@per1234
Copy link
Contributor

per1234 commented Dec 16, 2022

Hi @tps800 . We are still waiting for you to provide the information requested in the previous reply so that we can proceed with the investigation or evaluation of this.

@tps800
Copy link
Author

tps800 commented Dec 16, 2022 via email

@per1234 per1234 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 16, 2022
@per1234 per1234 added conclusion: invalid Issue/PR not valid and removed status: waiting for information More information must be provided before work can proceed labels Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: invalid Issue/PR not valid os: windows Specific to Windows operating system type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

3 participants