Opened 8 years ago

Closed 7 years ago

Last modified 4 years ago

#3554 closed defect (duplicate)

Installation does not work on Windows

Reported by: Andreas.Pfeiffer@… Owned by: somebody
Priority: high Milestone: 1.13.0
Component: Installation program Version:
Keywords: Installation on Windows Cc: adeas31, adrpo, tobias.bellmann@…

Description

I installed OpenModelica 1.9.3 on Windows 7, but when starting omedit.exe, I got the error message, that the environment variable OPENMODELICAHOME does not exist. I realized, that I have lots of issues with environment variables, PATHs etc. in other programms after installing of OpenMdoelica. I.e. the installation of OpenModelica has destroyed parts of my profile. Luckily, I was able to restore the profile. So, I tested a little bit:
The same behaviour with the latest build https://build.openmodelica.org/omc/builds/windows/nightly-builds/OpenModelica-v1.9.4-dev-357-gc9d33ec.exe
The installation is done by an admin user that is not equal to my "normal" user on Windows - maybe that is one source for the issues.

Does anybody else have the same issues?

Change History (20)

comment:1 Changed 8 years ago by sjoelund.se

Did you install OpenModelica "for all users" as admin? Otherwise the env.vars would not show up for your user.

comment:2 Changed 8 years ago by Andreas.Pfeiffer@…

There was no option to select during the installation.

comment:3 Changed 8 years ago by sjoelund.se

  • Cc adeas31 adrpo added; Andreas Pfeiffer removed

In that case, I guess your user is not an administrator (Adrian or Adeel can confirm).

comment:4 Changed 8 years ago by anonymous

The installation is started by an user with admin rights.

comment:5 Changed 8 years ago by Andreas.Pfeiffer@…

Is there a possibility to get the source code of the built Windows installer?

comment:7 Changed 8 years ago by adeas31

What do you mean by profile? You mean OPENMODELICA installer removed your environment variables? OR it has deleted your startmenu shortcuts?

comment:8 Changed 8 years ago by Andreas.Pfeiffer@…

The installer has changed / destroyed my PATH variable - therefore lot of my windows applications did not work anymore after the installation. Then I had to reset my user profile in Windows to an earlier version (one day before) to get the whole system running once again (without OpenModelica).

comment:9 Changed 8 years ago by adeas31

Are you sure OM installer has done that? The installer does nothing with the PATH. It only creates the OPENMODELICAHOME and OPENMODELICALIBRARY environment variables either in your system environment variables OR in your user environment variables.

comment:10 Changed 8 years ago by Andreas.Pfeiffer@…

Yes, I am sure, because I have reproduced it several times.

Are you aware of the following: http://nsis.sourceforge.net/Path_Manipulation ? There is a string limit in NSIS. My PATH variable currently has a length of 2240. Do you use the NSIS version of http://nsis.sourceforge.net/Special_Builds to support long strings?

comment:11 Changed 8 years ago by adeas31

NSIS site is down :). I will check it later but I don't think so we are using any special build.

comment:12 Changed 8 years ago by magates63@…

I too am getting this error as of Aug 6, 2016. Neither ver 1.9.6 nor daily build properly installs. Running "as Administrator", but get no option to install "for all users".

Also, unlike what is implied in the tutorials, there are no Windows Start Menu items created.

If I spelunk down into the openmodelica/bin directory and directly click on "OMedit.exe", it gives me the mentioned environmental variable error message.

What gives? Any simple way to install for all users that works? Any reasonably simple way to install at all on Windows 7??? (sure I "could" run a virtual linux box and work that way, but ...)

Any log files I can inspect to figure out what's going wrong?

comment:13 Changed 8 years ago by magates63@…

Follow up: All seems to work normally if I install as a user rather than administrator.
Would be nice to install "for all" rather than as user. Hope this gets fixed.

comment:14 Changed 8 years ago by adrpo

I think you can use the silent install by running the installer with /S or /SD command line parameter.

comment:15 Changed 7 years ago by bthiele

  • Cc tobias.bellmann@… added

I just got user feedback describing this issue and checked whether there is already a ticket for it.

The problem of the OM environment variables not being set for all users when installing as "admin" (Windows 7) seems to persist in release v1.11.0. However, I think in a corporate setting, the temporal "admin" rights given to users might be some restricted form of admin. Maybe this can play a role, too?

Last edited 7 years ago by bthiele (previous) (diff)

comment:16 Changed 7 years ago by Pierre Haessig <pierre.haessig@…>

I also got hit by this "not for all users" installation problem with 1.11. And someone else posted on the forum (1) that the problem persists with 1.12.0-dev.alpha1-64b.

Two questions:

  • should we create a new ticket, because this seems different than the original bug report.
  • is there some progress or workaround for this issue?

(1) https://openmodelica.org/forum/default-topic/2267-openmodelica-not-installed-for-all-users

comment:17 Changed 7 years ago by casella

  • Resolution set to duplicate
  • Status changed from new to closed

See #4504. We should fix this in release 1.13.0

comment:18 follow-up: Changed 4 years ago by adeas31

  • Component changed from *unknown* to Installation program
  • Milestone changed from Future to 1.16.0
  • Priority changed from high to blocker

comment:19 in reply to: ↑ 18 Changed 4 years ago by casella

Replying to adeas31:

@adeas31, are you reopening this ticket?

comment:20 Changed 4 years ago by adeas31

  • Milestone changed from 1.16.0 to 1.13.0
  • Priority changed from blocker to high

Sorry my bad. I wanted to change another ticket.

Note: See TracTickets for help on using tickets.