#3554 closed defect (duplicate)
Installation does not work on Windows
Reported by: | Owned by: | somebody | |
---|---|---|---|
Priority: | high | Milestone: | 1.13.0 |
Component: | Installation program | Version: | |
Keywords: | Installation on Windows | Cc: | Adeel Asghar, Adrian Pop, 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 by , 9 years ago
comment:3 by , 9 years ago
Cc: | added; removed |
---|
In that case, I guess your user is not an administrator (Adrian or Adeel can confirm).
comment:5 by , 9 years ago
Is there a possibility to get the source code of the built Windows installer?
comment:6 by , 9 years ago
comment:7 by , 9 years ago
What do you mean by profile? You mean OPENMODELICA installer removed your environment variables? OR it has deleted your startmenu shortcuts?
comment:8 by , 9 years ago
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 by , 9 years ago
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 by , 9 years ago
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 by , 9 years ago
NSIS site is down :). I will check it later but I don't think so we are using any special build.
comment:12 by , 8 years ago
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 by , 8 years ago
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 by , 8 years ago
I think you can use the silent install by running the installer with /S
or /SD
command line parameter.
comment:15 by , 8 years ago
Cc: | 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?
comment:16 by , 7 years ago
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 by , 7 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
See #4504. We should fix this in release 1.13.0
follow-up: 19 comment:18 by , 5 years ago
Component: | *unknown* → Installation program |
---|---|
Milestone: | Future → 1.16.0 |
Priority: | high → blocker |
comment:20 by , 5 years ago
Milestone: | 1.16.0 → 1.13.0 |
---|---|
Priority: | blocker → high |
Sorry my bad. I wanted to change another ticket.
Did you install OpenModelica "for all users" as admin? Otherwise the env.vars would not show up for your user.