Mercurial > mxd2map
comparison contrib/installer/bin/MXD2map-Shell.bat @ 264:42c89821a868
Added installer files.
author | intevation@vbox-server2003.hq.intevation.de |
---|---|
date | Thu, 08 Sep 2011 13:02:04 +0200 |
parents | |
children | 5e7e6d99f997 |
comparison
equal
deleted
inserted
replaced
262:2cb2f26d0d54 | 264:42c89821a868 |
---|---|
1 @echo off | |
2 if "%1" == "setenv" goto setenv | |
3 | |
4 %comspec% /k MXD2map-Shell.bat setenv %1 | |
5 goto exit | |
6 | |
7 :setenv | |
8 @echo Setting environment for using MXD2map based on gisinternals.com windows builds. | |
9 @echo See http://mxd2map.org and http://gisinternals.com/sdk/ for details. | |
10 | |
11 if "%2"=="hideoci" goto hideoci | |
12 | |
13 set ocipath=0 | |
14 set _path="%PATH:;=" "%" | |
15 for %%p in (%_path%) do if not "%%~p"=="" if exist %%~p\oci.dll set ocipath=1 | |
16 | |
17 if "%ocipath%"=="0" goto hideoci | |
18 @echo WARNING: If you encounter problems with missing oci libraries then type: | |
19 @echo MXD2mapShell hideoci | |
20 goto setenv2 | |
21 | |
22 :hideoci | |
23 @echo Hiding the OCI plugin library. | |
24 if not exist %CD%\ms_6.1-dev\bin\gdal\plugins-optional mkdir %CD%\ms_6.1-dev\bin\gdal\plugins-optional | |
25 if exist %CD%\ms_6.1-dev\bin\gdal\plugins\ogr_OCI.dll move %CD%\ms_6.1-dev\bin\gdal\plugins\ogr_OCI.dll %CD%\ms_6.1-dev\bin\gdal\plugins-optional\ogr_OCI.dll | |
26 if exist %CD%\ms_6.1-dev\bin\gdal\plugins\gdal_GEOR.dll move %CD%\ms_6.1-dev\bin\gdal\plugins\gdal_GEOR.dll %CD%\ms_6.1-dev\bin\gdal\plugins-optional\gdal_GEOR.dll | |
27 | |
28 REM SEE Details about the installation of arcobjects.jar!! | |
29 REM http://forums.arcgis.com/threads/17398-Unable-to-initialize-ArcObjects-environment-%28Java-API%29 | |
30 REM http://forums.arcgis.com/threads/12833-ArcGIS-Server-initialize-license-%28Java-version%29 | |
31 REM SEE Details about the installation of arcobjects.jar!! | |
32 :setenv2 | |
33 SET PATH=C:\Program Files\ArcGIS\DeveloperKit10.0\java\jre\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\ArcGIS\Desktop10.0\bin;C:\Program Files\ArcGIS\Desktop10.0\java\lib;C:\Program Files\ArcGIS\DeveloperKit10.0\java\tools\ant\bin;%CD%\ms_6.1-dev\bin;%CD%\ms_6.1-dev\bin\gdal\python\osgeo;%CD%\ms_6.1-dev\bin\proj\apps;%CD%\ms_6.1-dev\bin\gdal\apps;%CD%\ms_6.1-dev\bin\ms\apps;%CD%\ms_6.1-dev\bin\gdal\csharp;%CD%\ms_6.1-dev\bin\ms\csharp;%CD%\ms_6.1-dev\bin\curl;%CD%\ms_6.1-dev\bin\ms\java;%PATH% | |
34 SET GDAL_DATA=%CD%\ms_6.1-dev\bin\gdal-data | |
35 SET GDAL_DRIVER_PATH=%CD%\ms_6.1-dev\bin\gdal\plugins | |
36 SET PYTHONPATH=%CD%\ms_6.1-dev\bin\gdal\python\osgeo | |
37 SET PROJ_LIB=%CD%\bin\proj\SHARE | |
38 SET CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem | |
39 SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26 | |
40 :exit |