Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1664)

Issue 4529081: Paths and Windows Installer Fixes (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 12 months ago by brechtvl
Modified:
12 years, 11 months ago
Reviewers:
jesterKing, bf-codereview
Base URL:
https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Visibility:
Public.

Description

This patch attempts to address windows installer and script/configuration file path issues. In particular: * Addon scripts install not installing to the user path, but rather installing them between system scripts. * Windows installer not working for non-administrator users or multiple users. They are related, and need to be fixed simultaneously to avoid breakage. The fundamental issue is that system files and configuration files are mixed up. The windows installer is writing system files to the configuration directory, and user defined scripts and configuration files can be written to system directories. The available paths are ambiguous, so I've removed some and for others, mostly the change has been to get user paths before local paths. For the windows installer, scripts and other datafiles are now always installed next to the executable, there is no longer an option for their install location. One issue is that of compatibility with existing files installed in AppData (i.e. system files written to a configuration directory). For a new 2.58 version the scripts directory now do not get copied over from 2.57 to avoid the problem, and until the version bump to 2.58, addons will still be installed to the local path as they were before. The patch is now quite well tested on Mac and Windows, and should work on Linux too. Feedback welcome.

Patch Set 1 #

Patch Set 2 : Windows installer compatibility #

Patch Set 3 : Missing bracket #

Patch Set 4 : Uninstaller changes and compatibility fix #

Patch Set 5 : Leave out version change #

Total comments: 5

Patch Set 6 : Portable install fix #

Patch Set 7 : Comment fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -99 lines) Patch
build_files/scons/tools/btools.py View 1 4 5 1 chunk +1 line, -4 lines 0 comments Download
release/scripts/startup/bl_operators/wm.py View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
release/windows/installer/00.sconsblender.nsi View 1 2 3 4 5 10 chunks +26 lines, -55 lines 0 comments Download
source/blender/blenlib/BLI_path_util.h View 1 4 5 2 chunks +0 lines, -5 lines 0 comments Download
source/blender/blenlib/intern/path_util.c View 1 2 3 4 5 6 5 chunks +48 lines, -28 lines 0 comments Download
source/blender/editors/space_file/space_file.c View 1 4 5 1 chunk +1 line, -1 line 0 comments Download
source/blender/python/intern/bpy.c View 1 4 5 1 chunk +1 line, -1 line 0 comments Download
source/blender/python/intern/bpy_interface.c View 1 4 5 1 chunk +1 line, -1 line 0 comments Download
source/blender/windowmanager/intern/wm_files.c View 1 4 5 1 chunk +1 line, -1 line 0 comments Download
source/creator/creator.c View 1 4 5 2 chunks +0 lines, -2 lines 0 comments Download
source/gameengine/Ketsji/KX_PythonInit.cpp View 1 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
brechtvl
12 years, 12 months ago (2011-05-23 21:16:58 UTC) #1
brechtvl
Windows installer compatibility
12 years, 12 months ago (2011-05-24 11:05:54 UTC) #2
brechtvl
Latest change should fix issue with existing system script installation in user configuration directory: * ...
12 years, 12 months ago (2011-05-24 11:08:48 UTC) #3
brechtvl
Uninstaller changes and compatibility fix
12 years, 12 months ago (2011-05-24 13:46:09 UTC) #4
brechtvl
Latest patch is quite well tested now on Mac and Windows, for non-admin/admin installs, running ...
12 years, 12 months ago (2011-05-24 13:52:41 UTC) #5
jesterKing
Otherwise a solid patch, except that this makes portable installs completely impossible. I'd prefer to ...
12 years, 12 months ago (2011-05-24 18:37:12 UTC) #6
jesterKing
On 2011/05/24 18:37:12, jesterKing wrote: > Otherwise a solid patch, except that this makes portable ...
12 years, 12 months ago (2011-05-24 18:48:46 UTC) #7
jesterKing
Excuses for the earlier foobarring with portable install config/ testing - was a mistake on ...
12 years, 12 months ago (2011-05-24 19:16:43 UTC) #8
brechtvl
Portable install fix
12 years, 12 months ago (2011-05-24 19:30:39 UTC) #9
brechtvl
I wasn't aware portable install was a feature, but it's not hard to add back. ...
12 years, 12 months ago (2011-05-24 19:32:14 UTC) #10
jesterKing
On 2011/05/24 19:32:14, brechtvl wrote: > I wasn't aware portable install was a feature, but ...
12 years, 12 months ago (2011-05-24 20:22:54 UTC) #11
brechtvl
12 years, 11 months ago (2011-05-27 09:58:13 UTC) #12
Committed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b