#356 closed defect (fixed)
Bat file location independence
Reported by: | anguscarr | Owned by: | jef |
---|---|---|---|
Priority: | minor | Component: | Package |
Version: | Keywords: | ||
Cc: |
Description
The BAT files in OSGEO4w\bin are not all location independant. I want to set the program up to be location independant, so that I can make a portable version.
List of files I need to change to make this work: qgis-dev.bat qgis.bat qgis-browser.bat grass64.bat qgis-dev-browser.bat
They all initially start with set OSGEO4W_ROOT=<<My install location>> call %OSGEO4W_ROOT%\o4w_env.bat
I changed them to start with call %~dp0\o4w_env.bat
The bat files are now portable (afaik).
Can we change the template files to reflect this change?
Then I can package up an installer for distribution based on my local install. I'm sure there are issues with that, like the MSVC runtime installer, but I will work towards fixing those in the installer.
Change History (4)
comment:1 by , 12 years ago
Owner: | changed from | to
---|
follow-up: 3 comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
fixed in qgis 1.8.0-6
This is the recommended approach (http://trac.osgeo.org/osgeo4w/wiki/PackagingInstructions#Applicationbatchfiletemplate), though the qgis and grass .bat files probably predate that.
I don't see a downside to this, but Jurgen is package maintainer and in a better position to judge.