mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Minor changes for installer
This commit is contained in:
parent
87f5250c9d
commit
691ab71ecf
|
|
@ -14,7 +14,7 @@ SourceDir=E:\Mes Developpements\dolibarr
|
|||
; ----- End of change
|
||||
AppId=doliwamp
|
||||
AppPublisher=Laurent Destailleur - NLTechno
|
||||
AppPublisherURL=http://www.dolibarr.org
|
||||
AppPublisherURL=http://www.nltechno.com
|
||||
AppSupportURL=http://www.dolibarr.org
|
||||
AppUpdatesURL=http://www.dolibarr.org
|
||||
AppComments=DoliWamp includes Dolibarr, Apache, PHP and Mysql softwares.
|
||||
|
|
@ -44,6 +44,7 @@ Name: "desktopicon"; Description: "Create a &Desktop icon"; GroupDescription: "A
|
|||
Name: "{app}\logs"
|
||||
Name: "{app}\tmp"
|
||||
Name: "{app}\dolibarr_documents"
|
||||
Name: "{app}\bin\apache\apache2.2.6\logs"
|
||||
|
||||
[Files]
|
||||
; Stop/start
|
||||
|
|
@ -549,27 +550,22 @@ DeleteFile(SrcFile);
|
|||
|
||||
|
||||
// Install services
|
||||
//Filename: "{app}\uninstall_services.bat"; Flags: runhidden waituntilterminated
|
||||
batFile := path+'\uninstall_services.bat';
|
||||
Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
//Filename: "{app}\install_services.bat"; Flags: runhidden waituntilterminated
|
||||
batFile := path+'\install_services.bat';
|
||||
Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
|
||||
// Stard services
|
||||
//Filename: "{app}\startdoliwamp.bat"; Flags: runhidden waituntilterminated
|
||||
batFile := path+'\startdoliwamp.bat';
|
||||
Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
|
||||
// Change mysql password
|
||||
//Filename: "{app}\mysqlinitpassword.bat"; Flags: runhidden waituntilterminated
|
||||
batFile := path+'\mysqlinitpassword.bat';
|
||||
Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
|
||||
// Remove bat file
|
||||
//Filename: "{app}\removefiles.bat"; Flags: runhidden waituntilterminated
|
||||
// batFile := path+'\removefiles.bat';
|
||||
// Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
// Remove dangerous files
|
||||
batFile := path+'\removefiles.bat';
|
||||
Exec(batFile, '',path+'\', SW_HIDE, ewWaitUntilTerminated, myResult);
|
||||
|
||||
end
|
||||
|
||||
|
|
@ -678,6 +674,9 @@ Filename: "{app}\rundoliwamp.bat"; Description: "Launch Dolibarr now"; Flags: sh
|
|||
|
||||
[UninstallDelete]
|
||||
Type: files; Name: "{app}\*.*"
|
||||
Type: files; Name: "{app}\www\dolibarr\htdocs\conf\conf.php"
|
||||
Type: files; Name: "{app}\www\dolibarr\htdocs\install\install.forced.php"
|
||||
Type: filesandordirs; Name: "{app}\alias"
|
||||
Type: filesandordirs; Name: "{app}\apps"
|
||||
Type: filesandordirs; Name: "{app}\bin\apache"
|
||||
Type: filesandordirs; Name: "{app}\bin\php"
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
del /F .\mysqlinitpassword.bat
|
||||
@echo off
|
||||
del /F .\mysqlinitpassword.bat
|
||||
rename .\www\dolibarr\htdocs\install install.norun
|
||||
|
|
|
|||
|
|
@ -39,32 +39,37 @@ $success=0;
|
|||
dolibarr_install_syslog("etape5: Entering etape5.php page", LOG_INFO);
|
||||
|
||||
|
||||
// If install, check pass and pass_verif used to create admin account
|
||||
if ($_POST["action"] == "set")
|
||||
{
|
||||
if ($_POST["pass"] <> $_POST["pass_verif"])
|
||||
{
|
||||
Header("Location: etape4.php?error=1&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:''));
|
||||
exit;
|
||||
}
|
||||
|
||||
if (strlen(trim($_POST["pass"])) == 0)
|
||||
{
|
||||
Header("Location: etape4.php?error=2&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:''));
|
||||
exit;
|
||||
}
|
||||
|
||||
if (strlen(trim($_POST["login"])) == 0)
|
||||
{
|
||||
Header("Location: etape4.php?error=3&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:''));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
|
||||
pHeader($langs->trans("SetupEnd"),"etape5");
|
||||
|
||||
if ($_POST["action"] == "set" || $_POST["action"] == "upgrade")
|
||||
{
|
||||
// If install, check pass and pass_verif used to create admin account
|
||||
if ($_POST["action"] == "set")
|
||||
{
|
||||
if ($_POST["pass"] <> $_POST["pass_verif"])
|
||||
{
|
||||
Header("Location: etape4.php?error=1&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:''));
|
||||
exit;
|
||||
}
|
||||
|
||||
if (strlen(trim($_POST["pass"])) == 0)
|
||||
{
|
||||
Header("Location: etape4.php?error=2&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:''));
|
||||
exit;
|
||||
}
|
||||
|
||||
if (strlen(trim($_POST["login"])) == 0)
|
||||
{
|
||||
Header("Location: etape4.php?error=3&selectlang=$setuplang".(isset($_POST["login"])?'&login='.$_POST["login"]:''));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pHeader($langs->trans("SetupEnd"),"etape5");
|
||||
|
||||
print '<table cellspacing="0" cellpadding="2" width="100%">';
|
||||
$error=0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user