[postgis-tickets] [PostGIS] #1597: Unattended/Silent postgis installation
PostGIS
trac at osgeo.org
Tue Dec 11 12:24:42 PST 2012
#1597: Unattended/Silent postgis installation
------------------------------------+---------------------------------------
Reporter: kmq | Owner: robe
Type: enhancement | Status: reopened
Priority: medium | Milestone: PostGIS Future
Component: build/upgrade/install | Version: 2.0.x
Resolution: | Keywords:
------------------------------------+---------------------------------------
Changes (by yecarrillo):
* version: 1.5.X => 2.0.x
* milestone: PostGIS 1.5.4 => PostGIS Future
Comment:
''Environment'':
Windows 7 Professional
Using NSIS Unicode for making installer
''File:''
postgis-pg92-setup-2.0.1-1.exe
''Code snipped:''
{{{
...
RequestExecutionLevel admin
...
;copiar los archivos de PostGIS
Section 'PostGIS: Motor Espacial de Base de datos'
SectionIn 1
DetailPrint 'Sección 3 - Motor Espacial de Base de Datos PostGIS a
$INSTDIR${POSTGRES_DIR}'
DetailPrint ' instalando el motor espacial de base de datos PostGIS
${POSTGRES_VER} a $INSTDIR${POSTGRES_DIR}...'
;http://trac.osgeo.org/postgis/ticket/1597
SetOutPath '$TEMP'
ExecWait 'postgis-pg92-setup-${POSTGIS_VER}.exe /S /USERNAME=postgres
/PASSWORD=postgres /PORT=${POSTGRES_PORT} /DATABASE=mafe' $0
;sleep 30000
DetailPrint ' la instalación de PostGIS ${POSTGIS_VER} devolvió $0'
SectionEnd
}}}
PostGIS is successfully installed and template database is created. But,
spatial database from /DATABASE isn´t created.
This the code what I put to create it, but is supposed /DATABASE do that:
{{{
...
RequestExecutionLevel admin
...
;copiar los archivos de PostGIS
Section 'PostGIS: Motor Espacial de Base de datos'
SectionIn 1
DetailPrint 'Sección 3 - Motor Espacial de Base de Datos PostGIS a
$INSTDIR${POSTGRES_DIR}'
DetailPrint ' instalando el motor espacial de base de datos PostGIS
${POSTGRES_VER} a $INSTDIR${POSTGRES_DIR}...'
;http://trac.osgeo.org/postgis/ticket/1597
SetOutPath '$TEMP'
ExecWait 'postgis-pg92-setup-${POSTGIS_VER}.exe /S /USERNAME=postgres
/PASSWORD=postgres /PORT=${POSTGRES_PORT}' $0
;sleep 30000
DetailPrint ' la instalación de PostGIS ${POSTGIS_VER} devolvió $0'
;Crear la base de datos de mafe
DetailPrint ' creando la base de datos mafe...'
ExecWait '$INSTDIR${POSTGRES_DIR}\bin\createdb.exe -h "127.0.0.1" -p
"${POSTGRES_PORT}" -U "postgres" -T "template_postgis_20" --owner
"postgres" mafe'
SectionEnd
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/1597#comment:11>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list