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: adeas31
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)

Changed 5 years ago by anonymous

comment:1 Changed 5 years ago by adrpo

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

comment:2 Changed 5 years ago by anonymous

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 Changed 5 years ago by casella

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

comment:4 Changed 5 years ago by anonymous

The error message came from an account without administrator rights.

It finally worked with an account with administrator rights.

comment:5 Changed 5 years ago by casella

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 Changed 5 years ago by anonymous

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 Changed 5 years ago by casella

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 Changed 4 years ago by casella

@adeas31, can we sort this out for 1.16.0?

comment:9 Changed 4 years ago by casella

  • Milestone changed from 1.16.0 to 1.17.0

Retargeted to 1.17.0 after 1.16.0 release

comment:10 Changed 4 years ago by casella

  • Summary changed from Windows installer fails to Do not allow to install on directories where the user does not have admin rights

comment:11 Changed 4 years ago by casella

  • Milestone changed from 1.17.0 to 1.18.0

Retargeted to 1.18.0 after 1.17.0-dev.beta2 release

comment:12 Changed 3 years ago by casella

  • Milestone 1.18.0 deleted

Ticket retargeted after milestone closed

comment:13 Changed 3 years ago by casella

  • Milestone set to 1.19.0

1.18.0 blocker tickets moved to 1.19.0

Note: See TracTickets for help on using tickets.