amitjha
Posts: 4
Joined: Mon Jul 23, 2012 1:36 pm

Embed apache into our installer as a prerequisite

Hi,

I need an installer that can install my solution and apache as a prerequisite.
There are fews issues:
1. apache should be installed quitely on to the machine and automatically restarts its service.
2. It should be pre-requisite only.

Problems :

1. when use apache in advance installer, it is working fine but it is visible to the user, and ask for user
action. but we need apache shuld be installed quitely and user doesnot have any intervention in installing
the apache.
Installation directory also need to be predecided i.e. on which advance installer is going to be instaled.

Can you suggest me some solution for this kind of problem.

--
Thanks
Amit Kumar Jha
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Embed apache into our installer as a prerequisite

Hello Amit,

In order to achieve what you want you can proceed like this:
- Go to "Prerequisites" page and add our "Apache HTTP Server" predefined prerequisite as a feature-based prerequisite.
- Select the prerequisite package and in the "Setup Files -> Install Command Line" fields add a command line like this:

Code: Select all

/qn ALLUSERS=1 INSTALLDIR="[APPDIR]Apache" SERVERNAME=localhost SERVERPORT=80 SERVERDOMAIN=localhost SERVERADMIN=admin@localhost SetupType=Typical
- Build and run your project.

Also, you can take a look on the following articles:
- Using Apache HTTP Server on Microsoft Windows
- Msiexec.exe Command line

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”