1
0
Fork 0

set the password we asked to into the database.

This commit is contained in:
Wilfried Goesgens 2016-06-09 13:22:11 +02:00
parent ec841e2a11
commit 5eb27b7447
2 changed files with 8 additions and 2 deletions

View File

@ -46,7 +46,7 @@ Bottom=130
State=1
[Field 6]
Type=Text
Type=Password
Text=
Left=5
Right=60

View File

@ -808,7 +808,13 @@ Section "-Core installation"
!insertmacro MUI_STARTMENU_WRITE_END
System::Call 'Kernel32::SetEnvironmentVariable(t, t)i ("ARANGODB_DEFAULT_ROOT_PASSWORD", "$PASSWORD").r0'
StrCmp $0 0 error
ExecWait "$INSTDIR\bin\arangod.exe --database.init-database"
Goto done
error:
MessageBox MB_OK "Failed to initialize database password."
done:
@CPACK_NSIS_EXTRA_INSTALL_COMMANDS@
StrCmp $TRI_INSTALL_TYPE 'Service' 0 nothing
SimpleSC::StopService '${TRI_SVC_NAME}' 0 30