1
0
Fork 0

added windows Installer files

This commit is contained in:
Jan Steemann 2013-09-05 17:25:41 +02:00
parent a7ef5fa4dd
commit 0abf8bc111
8 changed files with 607 additions and 0 deletions

65
VS2012/Installer/arango32.xml Executable file
View File

@ -0,0 +1,65 @@
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns="http://wixtoolset.org/schemas/wxs">
<Product Name='triAGENS ArangoDB Server 32 Bit'
Id='{A7363040-5D54-4C08-B777-0119BCD0E15E}'
UpgradeCode='{D7363040-5D54-4C08-B777-0119BCD0E15E}'
Language='1033'
Version='1.1.0.0'
Manufacturer='triAGENS'>
<Package Id='*' InstallerVersion='200' Compressed='yes' />
<Media Id='1' Cabinet='arango.cab' EmbedCab='yes' />
<Property Id="IISROOT" Value="c:\"/>
<Property Id="WIXUI_DONTVALIDATEPATH" Value="1"/>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder'>
<Directory Id="IISROOT" Name=".">
<Directory Id='INSTALLDIR' Name='triAGENS'>
<Directory Id='js_dir' Name='js'/>
<Component Id='MainExecutable' Guid='{D7363040-5D54-4C08-B777-0119BCD0E15E}'>
<File Id='arangodEXE' Name='arangod.exe' Source='arangod32.exe' Vital='yes' />
<File Id='arangodICO' Name='arangod.ico' Source='arango.ico' Vital='yes' />
<File Id='arangodReadme' Name='readme.txt' Source='readme.txt' Vital='yes' />
<File Id='arangodServerSample' Name='serverExample.bat' Source='serverExample.bat' Vital='yes' />
<File Id='arangodConsoleSample' Name='consoleExample.bat' Source='consoleExample.bat' Vital='yes' />
<File Id='arangodUpgradeSample' Name='upgradeExample.bat' Source='upgradeExample.bat' Vital='yes' />
<File Id='arangoShellEXE' Name='arangosh.exe' Source='arangosh32.exe' Vital='yes' />
<File Id='arangoShellSample' Name='shellExample.bat' Source='shellExample.bat' Vital='yes' />
<File Id='arangodImportEXE' Name='arangoimp.exe' Source='arangoimp32.exe' Vital='yes' />
<File Id='serverPem' Name='server.pem' Source='server.pem' Vital='yes' />
<RemoveFolder Id="INSTALLDIR" On="uninstall" />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Level="1">
<ComponentRef Id='MainExecutable' />
<ComponentGroupRef Id='jsDirectory'/>
</Feature>
<Icon Id="arango.ico" SourceFile="arango.ico"/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Thank you for installing ArangoDB. Please read the readme.txt file in the installation directory which gives sample batch files for starting the server." />
<WixVariable Id="WixUILicenseRtf" Value="arangod.rtf" />
<WixVariable Id="WixUIDialogBmp" Value="arango2.bmp" />
</Product>
</Wix>

64
VS2012/Installer/arango64.xml Executable file
View File

@ -0,0 +1,64 @@
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns="http://wixtoolset.org/schemas/wxs">
<Product Name='triAGENS ArangoDB Server 64 Bit'
Id='{A7363040-5D54-4C08-B777-0119BCD0E15E}'
UpgradeCode='{D7363040-5D54-4C08-B777-0119BCD0E15E}'
Language='1033'
Version='1.1.0.0'
Manufacturer='triAGENS'>
<Package Id='*' InstallerVersion='200' Compressed='yes' />
<Media Id='1' Cabinet='arango.cab' EmbedCab='yes' />
<Property Id="IISROOT" Value="c:\"/>
<Property Id="WIXUI_DONTVALIDATEPATH" Value="1"/>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder'>
<Directory Id="IISROOT" Name=".">
<Directory Id='INSTALLDIR' Name='triAGENS'>
<Directory Id='js_dir' Name='js'/>
<Component Id='MainExecutable' Guid='{D7363040-5D54-4C08-B777-0119BCD0E15E}'>
<File Id='arangodEXE' Name='arangod.exe' Source='arangod64.exe' Vital='yes' />
<File Id='arangodICO' Name='arangod.ico' Source='arango.ico' Vital='yes' />
<File Id='arangodReadme' Name='readme.txt' Source='readme.txt' Vital='yes' />
<File Id='arangodServerSample' Name='serverExample.bat' Source='serverExample.bat' Vital='yes' />
<File Id='arangodConsoleSample' Name='consoleExample.bat' Source='consoleExample.bat' Vital='yes' />
<File Id='arangodUpgradeSample' Name='upgradeExample.bat' Source='upgradeExample.bat' Vital='yes' />
<File Id='arangoShellEXE' Name='arangosh.exe' Source='arangosh64.exe' Vital='yes' />
<File Id='arangoShellSample' Name='shellExample.bat' Source='shellExample.bat' Vital='yes' />
<File Id='arangodImportEXE' Name='arangoimp.exe' Source='arangoimp64.exe' Vital='yes' />
<File Id='serverPem' Name='server.pem' Source='server.pem' Vital='yes' />
<RemoveFolder Id="INSTALLDIR" On="uninstall" />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<Feature Id='Complete' Level="1">
<ComponentRef Id='MainExecutable' />
<ComponentGroupRef Id='jsDirectory'/>
</Feature>
<Icon Id="arango.ico" SourceFile="arango.ico"/>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
<UIRef Id="WixUI_InstallDir" />
<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Thank you for installing ArangoDB. Please read the readme.txt file in the installation directory which gives sample batch files for starting the server." />
<WixVariable Id="WixUILicenseRtf" Value="arangod.rtf" />
<WixVariable Id="WixUIDialogBmp" Value="arango2.bmp" />
</Product>
</Wix>

View File

@ -0,0 +1,94 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions\demo"
SET ACTION_SYS_DIR=".\js\actions\system"
SET GC=20
SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET APP_PATH=".\js\apps"
SET PACKAGE_PATH=".\js\npm"
SET DATABASE_DIR=".\data"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise arangodb will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\lock" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\lock > NUL
if EXIST ".\data\lock" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other arango database server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --database.directory %DATABASE_DIR%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --log.severity human
SET CMD=%CMD% --javascript.action-directory %ACTION_SYS_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --javascript.app-path %APP_PATH%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --server.threads 4
SET CMD=%CMD% --scheduler.threads 4
:: the default size is 32M. change this if required - especially in the 32 bit version
:: SET CMD=%CMD% --database.maximal-journal-size 1048576
SET CMD=%CMD% --console
echo starting arangod.exe in server mode
echo with %CMD%
arangod.exe %CMD%
goto END
:END

117
VS2012/Installer/readme.txt Executable file
View File

@ -0,0 +1,117 @@
Notes:
----------------------------------------------------------------------------------------
-- Full documentation is available online at: --
-- http://www.arangodb.org/manuals/current/ --
----------------------------------------------------------------------------------------
***************************************************************************
**** Please read sections 5 & 6 below if you have an existing database ****
***************************************************************************
1) The default installation directory is c:\triAGENS. During the installation process
you may change this. In what follows we will assume that ArangoDB has been installed
in the default location. (Replace c:\triAGENS with your path if this is not the case.)
2) In the examples which follow all data will be stored in the directory
c:\triAGENS\data. There are three example server batch files in the installation
directory. These three server batch files will automatically create the data directory
'c:\triAGENS\data' if it does not exist. When the Arango database server is started
with the data directory 'c:\triAGENS\data' it places a (read-only) lock file to prevent
accidental access to the data. The example batch files will attempt to remove these lock
files when they are started - this is in case the installation did not proceed
correctly or if the server terminated unexpectedly. (Please note, if you attempt
to start the server twice using one of the example batch files - the scripts will fail.)
3) The first server example batch file is called 'consoleExample.bat' and as the name
suggests it starts the Arango database server in emergency console mode.
Execute this batch file and you will be presented with the command line:
arangod>
To exit the console type CTRL-D (Press the Control Key with D).
Please see the online documentation to see how to access the database using the
console.
4) The second server example batch file is called 'serverExample.bat' and actually starts the
server as a server. If you open the serverExample.bat (with your favourite text editor)
you will observe that the Arango database server executable is started with some
default arguments. See the online documentation for further details on starting the
server. We now wish to check that the installation is working correctly and to do this
we will be using the administration web interface. Execute 'serverExample.bat' if you have
not already done so, then open up your web browser and point it to the page:
http:/127.0.0.1:8529/_admin/html/index.html
To check if your installation is successful, on the right hand side of the web page
click the "Filter" drop down and select the "System" TYPE. If the installation was
successful, then the page should display a few system collections (note that the order
may be different from that below):
_aal
_aqlfunctions
_fishbowl
_graphs
_ids
_modules
_routing
_structures
_trx
_users
Try to add a new collection and then add some documents to this new collection.
If you have succeeded in creating a new collection and inserting one or more
documents, then your installation is working correctly. (The 'New Collection'
link is located on the front admin page on the top left hand side. Don't forget
to click 'Save Collection'.)
5) If you have an EXISTING database, then please note that currently a 32 bit version
of an Arango database is NOT compatible with a 64 bit version. This means that if you
have a database created with a 32 bit version of Arango it may become corrupted if you
execute a 64 bit version of Arango against the same database. We are working on a "load/dump"
facility which will allow you to "dump" the contents of your database from one platform
and "load" this database onto another platform (with a possibly different architecture).
6) The third server example batch file is called 'upgradeExample.bat'. If you have an
EXISTING database created with an previous version of ArangoDB, then you must execute this
upgrade script, otherwise the scripts described in 3) & 4) above WILL FAIL (however your
database will not be compromised). The current windows release (version) can be obtained by
executing the following on a Command Prompt:
c:\triAGENS\arangod.exe --version
You can then compare the version of your database by issuing the following on a Command
Prompt:
type c:\triAGENS\data\version
The first few characters which are output will indicate the version of the database which
can then be compared to the version of the server.
Note that there is no harm in running this upgradeExample.bat script. So you should run this
batch file if you are unsure of the database version you are using.
7) In addition to the server example batch files discussed above, there is an
additional example shell batch file. This starts a shell which can be used
(amongst other things) to connect to a remote Arango database server.
Note this example shell batch file (shellExample.bat) does NOT start a separate
server, it only starts the shell. To connect to the server, execute the batch
file serverExample.bat in a separate process first, then when the server is
ready, execute the shellExample.bat batch file.
8) To uninstall the Arango server application you can use the windows control panel
(as you would normally uninstall an application). Note however, that any data files
created by the Arango server will remain as well as the c:\triAGENS directory.
To complete the uninstallation process, remove the data files and the
c:\triAGENS directory manually.
If you have any questions regarding the installation or other matters please use
http://groups.google.com/group/arangodb
For bug reports please use https://github.com/triAGENS/ArangoDB/issues
Thanks for choosing ArangoDB!

29
VS2012/Installer/server.pem Executable file
View File

@ -0,0 +1,29 @@
-----BEGIN CERTIFICATE-----
MIICKTCCAZICCQDrch/8O8H4PTANBgkqhkiG9w0BAQUFADBZMQswCQYDVQQGEwJE
RTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0
cyBQdHkgTHRkMRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcNMTIwNzI0MDYxNzUwWhcN
MTMwNzI0MDYxNzUwWjBZMQswCQYDVQQGEwJERTETMBEGA1UECAwKU29tZS1TdGF0
ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMRIwEAYDVQQDDAls
b2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMDwRweF75H+BFBY
m9c4V/AZyWehxQ+pRfy6d+oPiUbOByqLDEQBdiMamQ0acJX9sn+MsFixEDRC1Y8r
ef49k1hb9V/pPtSFPVl5y8Db4FiDabKD9juUvNRqCXAzu99dwJwFZU2Ldq4BiCm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FEQ==
-----END RSA PRIVATE KEY-----

View File

@ -0,0 +1,92 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions"
SET GC=20
SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET APP_PATH=".\js\apps"
SET PACKAGE_PATH=".\js\npm"
SET DATABASE_DIR=".\data"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise arangodb will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\lock" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\lock > NUL
if EXIST ".\data\lock" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other arango database server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --database.directory %DATABASE_DIR%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --server.disable-admin-interface false
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --log.severity human
SET CMD=%CMD% --javascript.action-directory %ACTION_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.app-path %APP_PATH%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --server.threads 4
SET CMD=%CMD% --scheduler.threads 4
:: the default size is 32M change this if required - especially in the 32 bit version
:: SET CMD=%CMD% --database.maximal-journal-size 1048576
echo starting arangod.exe in server mode
echo with %CMD%
arangod.exe %CMD%
goto END
:END

View File

@ -0,0 +1,52 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions\demo"
SET ACTION_SYS_DIR=".\js\actions\system"
SET GC=20
SET STARTUP_MOD=".\js\client\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET PACKAGE_PATH=".\js\npm"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: # If you wish to start the shell without a connection to an
:: # server, please change the the command
:: # SET CMD=%CMD% --server.endpoint %HTTP_PORT%
:: # to
:: # SET CMD=%CMD% --server.endpoint none
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
echo starting arangosh.exe
echo with %CMD%
arangosh.exe %CMD%
goto END
:END

View File

@ -0,0 +1,94 @@
@echo off
:: #################################################################
:: # script to start the arango server in windows
:: #################################################################
cls
break=off
setlocal enableextensions
SET ACTION_DIR=".\js\actions"
SET GC=20
SET STARTUP_MOD=".\js\server\modules;.\js\common\modules;.\js\node"
SET STARTUP_DIR=".\js"
SET APP_PATH=".\js\apps"
SET PACKAGE_PATH=".\js\npm"
SET DATABASE_DIR=".\data"
SET HTTP_PORT=tcp://127.0.0.1:8529
SET LOG_LEVEL=info
:: ##################################################################
:: # Since we have set the database dir to be .\data, check that it
:: # really exists, if not create it - otherwise arangodb will exit!
:: ##################################################################
if EXIST ".\data" goto CHECK_LOCK
mkdir data
if NOT EXIST ".\data" (
echo Error when attempting to create data directory ... exiting
goto END
)
:CHECK_LOCK
:: ##################################################################
:: # Check for the pid lock file and delete it.
:: # This indicates abnormal termination.
:: ##################################################################
if EXIST ".\data\lock" goto DEL_LOCK
:DEL_LOCK
echo removing lock file
del /F .\data\lock > NUL
if EXIST ".\data\lock" (
echo =======================================================================================
echo ERROR: There appears to be a lock file which is in use. This is generally caused
echo by starting a second server instance before the first instance has terminated.
echo If you are certain that no other arango database server instances are active,
echo you may attempt to manually remove the lock .\data\lock.
echo ACTION: Session ends.
echo =======================================================================================
goto END
)
goto START_ARANGO
:START_ARANGO
:: ##################################################################
:: # set the command line parameters
:: ##################################################################
SET CMD=
SET CMD=%CMD% --server.endpoint %HTTP_PORT%
SET CMD=%CMD% --database.directory %DATABASE_DIR%
SET CMD=%CMD% --server.disable-authentication true
SET CMD=%CMD% --log.level %LOG_LEVEL%
SET CMD=%CMD% --log.severity human
SET CMD=%CMD% --javascript.action-directory %ACTION_DIR%
SET CMD=%CMD% --javascript.modules-path %STARTUP_MOD%
SET CMD=%CMD% --javascript.app-path %APP_PATH%
SET CMD=%CMD% --javascript.package-path %PACKAGE_PATH%
SET CMD=%CMD% --javascript.startup-directory %STARTUP_DIR%
SET CMD=%CMD% --server.threads 4
SET CMD=%CMD% --scheduler.threads 4
:: the default size is 32M change this if required - especially in the 32 bit version
:: SET CMD=%CMD% --database.maximal-journal-size 1048576
SET CMD=%CMD% --console
SET CMD=%CMD% --upgrade
echo starting arangod.exe in server mode
echo with %CMD%
arangod.exe %CMD%
goto END
:END