Add script to laouch services manually
This commit is contained in:
parent
e6fcbb98b8
commit
0f692e3f8c
@ -68,6 +68,7 @@ Source: "build\exe\doliwamp\install_services.bat.install"; DestDir: "{app}\"; Fl
|
||||
Source: "build\exe\doliwamp\uninstall_services.bat.install"; DestDir: "{app}\"; Flags: ignoreversion;
|
||||
Source: "build\exe\doliwamp\mysqlinitpassword.bat.install"; DestDir: "{app}\"; Flags: ignoreversion;
|
||||
Source: "build\exe\doliwamp\mysqltestinstall.bat.install"; DestDir: "{app}\"; Flags: ignoreversion;
|
||||
Source: "build\exe\doliwamp\startdoliwamp_manual_donotuse.bat.install"; DestDir: "{app}\"; Flags: ignoreversion;
|
||||
; PhpMyAdmin, Apache, Php, Mysql
|
||||
; Put here path of Wampserver applications
|
||||
Source: "C:\Program Files\Wamp\apps\phpmyadmin2.10.1\*.*"; DestDir: "{app}\apps\phpmyadmin2.10.1"; Flags: ignoreversion recursesubdirs; Excludes: "config.inc.php,wampserver.conf,*.log,*_log"
|
||||
@ -580,6 +581,8 @@ begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
|
||||
@ -587,6 +590,26 @@ begin
|
||||
end
|
||||
|
||||
|
||||
//----------------------------------------------
|
||||
// Fichier startdoliwamp_manual_donotuse.bat
|
||||
//----------------------------------------------
|
||||
|
||||
destFile := pathWithSlashes+'/startdoliwamp_manual_donotuse.bat';
|
||||
srcFile := pathWithSlashes+'/startdoliwamp_manual_donotuse.bat.install';
|
||||
|
||||
if not FileExists (destFile) and FileExists (srcFile) then
|
||||
begin
|
||||
LoadStringFromFile (srcFile, srcContents);
|
||||
|
||||
//version de apache et mysql
|
||||
StringChange (srcContents, 'WAMPROOT', pathWithSlashes);
|
||||
StringChange (srcContents, 'WAMPAPACHEVERSION', apacheVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLVERSION', mysqlVersion);
|
||||
StringChange (srcContents, 'WAMPMYSQLPORT', myport);
|
||||
|
||||
SaveStringToFile(destFile,srcContents, False);
|
||||
end
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------
|
||||
|
||||
17
build/exe/doliwamp/startdoliwamp_manual_donotuse.bat.install
Normal file
17
build/exe/doliwamp/startdoliwamp_manual_donotuse.bat.install
Normal file
@ -0,0 +1,17 @@
|
||||
@echo off
|
||||
REM -----------------------------------------------------
|
||||
REM Run this script only if you have problem to run
|
||||
REM Apache and Mysql as service. This can occurs when
|
||||
REM Microsoft add bugs in service packs that prevents
|
||||
REM servers ran as a service to launch.
|
||||
REM -----------------------------------------------------
|
||||
|
||||
echo Running Apache
|
||||
WAMPROOT\bin\apache\apacheWAMPAPACHEVERSION\bin\httpd.exe -k start
|
||||
|
||||
echo
|
||||
|
||||
echo Running Mysql
|
||||
WAMPROOT\bin\mysql\mysqlWAMPMYSQLVERSION\bin\mysqld-nt.exe --defaults-file=WAMPROOT\bin\mysql\mysqlWAMPMYSQLVERSION\my.ini
|
||||
|
||||
pause
|
||||
Loading…
Reference in New Issue
Block a user