Opened 5 years ago

Last modified 3 years ago

#5720 new defect

Do not allow to install on directories where the user does not have admin rights

Reported by: anonymous Owned by: Adeel Asghar
Priority: blocker Milestone: 1.19.0
Component: Installation program Version: v1.16.0-dev
Keywords: windows installer Cc:

Description

Since several weeks the windows installation fails for the nightly builds of Openmodelica on my machine.

Latest test was today with

OpenModelica-v1.16.0-dev-62-g43c7a2d1e3-64bit.exe

The error was always the same. I don't know if the problem only appears on my machine.

The installation path on the dialog is correct, but the error message seems to indicate that the installer adds
?\ in front of C: which of course does not exist (see attachement).

Attachments (1)

OMInstallError.png (119.7 KB ) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (14)

by anonymous, 5 years ago

Attachment: OMInstallError.png added

comment:1 by Adrian Pop, 5 years ago

Seems like a antivirus issue.
\\?\ is used in Windows to create UNC paths that do not have the 266 max length restriction.

comment:2 by anonymous, 5 years ago

In the past year I was successful for several times with the same machine and same settings. It could have to do with administrator rights and not with antivirus, since

  • when I directly installed OpenModelica via right click on the *.exe and choosing "Run as administrator" I was finally successful today.
  • running the installer as user with no administrator rights led to the error message. Up to the point where the error occurs the setup did not ask for administrator rights.
  • when installing as administrator I also could see lines in the log with
    ?\ where the installer searched for some folders to put files into (I think like AppData) etc. This seems to be part of the installer routine searching for standard folders on windows machines.

comment:3 by Francesco Casella, 5 years ago

Are you running the installer from an account with administrator rights?

comment:4 by anonymous, 5 years ago

The error message came from an account without administrator rights.

It finally worked with an account with administrator rights.

comment:5 by Francesco Casella, 5 years ago

I understand you really can't install any software properly in Windows if you don't have admin rights.

@adeas31, @adrpo, do you think we could add a check about that to the installer, so that the user gets a proper error message instead of failures with unknown reasons?

comment:6 by anonymous, 5 years ago

Usually the installer asks at some certain point for administrator rights during the installation process if required.

(There exists software which can be installed without administrator rights in windows.)

comment:7 by Francesco Casella, 5 years ago

The agreement with @adeas31 is to install the software in the C:\Program Files directory if admin rights are available, otherwise install it somewhere else, asking for some user input so that the user is aware of this issue. This is how most Windows software works, installer-wise.

comment:8 by Francesco Casella, 5 years ago

@adeas31, can we sort this out for 1.16.0?

comment:9 by Francesco Casella, 4 years ago

Milestone: 1.16.01.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:10 by Francesco Casella, 4 years ago

Summary: Windows installer failsDo not allow to install on directories where the user does not have admin rights

comment:11 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Retargeted to 1.18.0 after 1.17.0-dev.beta2 release

comment:12 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

comment:13 by Francesco Casella, 3 years ago

Milestone: 1.19.0

1.18.0 blocker tickets moved to 1.19.0

Note: See TracTickets for help on using tickets.