![]() |
apache installation
hi,
i want to make a package that installs apache which is in my hard drive and than installs php after which i can open a page contained in the same package for eg. mypage.php, i am very new to NSIS and i just need to do it once. prestly i am stuck in installing apache only.Can any one provide me help for this. The code is generated from wizard HM NIS. In line 4 the .msi extension is added by wizard i tried it without .msi extension but there was error saying no file found. the apche name is apache_2.2.3-win32-x86-no_ssl which i have renamed as apache.exe The code doesnt seems to work any help. 1 Section "MainSection" SEC01 2 SetOutPath "$INSTDIR" 3 SetOverwrite ifnewer 4 File "D:\apache.exe.msi" 5 ExecWait "$OUTDIR\apache.exe /q:a /c:$\"install/q$\"" 6 SectionEnd Thank you |
Extracting the MSI file is not enough. You must install it as well. Use ExecWait with msiexec.exe and pass that MSI as a parameter.
|
thanks kichik
this one perfectly worked for me Section "MainSection" SEC01 SetOutPath "$INSTDIR" SetOverwrite ifnewer File "C:\Documents and Settings\Administrator\Desktop\apache_2.2.3-win32-x86-no_ssl.msi" ExecWait 'msiexec /i "$INSTDIR\apache_2.2.3-win32-x86-no_ssl.msi" ' SectionEnd |
| All times are GMT. The time now is 05:06. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.