Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   apache installation (http://forums.winamp.com/showthread.php?t=255082)

sulabhadhikary 8th September 2006 05:58

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

kichik 8th September 2006 16:19

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.

sulabhadhikary 10th September 2006 04:56

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.