You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Lewis Franklin <hc...@texlife.com> on 2005/01/08 22:10:40 UTC

[users@httpd] Silent Installer

I noticed on the apache website that apache has a packaged .msi of 
apache web server. I am needing to install apache as a service available 
to all users, but wish to have the installation occur silently. Is it 
possible to install apache from teh command-line by passing the 
necessary parameters to it? Thank you in advance.

Lewis Franklin

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Silent Installer

Posted by Jeff White <jl...@earthlink.net>.
From: "Lewis Franklin"

> I noticed on the apache website
> that apache has a packaged .msi
> of apache web server. I am needing
> to install apache as a serviceavailable
> to all users, but wish to have the
> installation occur silently. Is it possible
> to install apache from teh command-line by
>passing the necessary parameters to it?

Installer Command-line options
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_wininstall_command_line_syntax.mspx

Apache is not using 3.0 yet
but for what is coming an FYI.

Windows Installer 3.0
Standard Installer Command Line Options
http://msdn.microsoft.com/library/en-us/msi/setup/standard_installer_command_line_options.asp

For Windows Installer
Windows Scripting
Information

http://groups-beta.google.com/groups?hl=en&safe=images&q=Installer++group%3Amicrosoft.public.scripting.*&qt_s=Search+Groups&safe=images

<quote>

Sample scripts for managing
software on user computers,
including scripts for installing,
updating, and deleting software
installed using Windows Installer.

</quote>

Script Center
Application User Scripts
http://www.microsoft.com/technet/scriptcenter/scripts/apps/user/default.mspx

Information on the Win32_classes
used above see below:

Windows Management Instrumentation
Installed Applications Class
http://msdn.microsoft.com/library/en-us/wmisdk/wmi/installed_applications_classes.asp

For an on-line book explaining
the above scripts see below:
Microsoft Windows 2000 Scripting Guide
Installing, Upgrading, and Removing Software
http://www.microsoft.com/resources/documentation/windows/2000/server/scriptguide/en-us/sas_cpm_oxbm.mspx

For tons of Windows Scripts and
information

Script Center
http://www.microsoft.com/technet/scriptcenter/default.mspx

Now for some main
Apache install options:

INSTALLDIR = Your Apache location
SERVERDOMAIN = Your domain
SERVERNAME = Your computer's name
SERVERADMIN = Your Apache admin's email
ALLUSERS = For all users access (use a 1)
RebootYesNo =To control this option (Yes or No)

Put all these options plus
whatever Installer options
that you want on one long
line.

I think it is best to read a while
in the on-line scripting book
about the Installer and while
there look at other Windows
Scripting ways!

Microsoft Windows 2000 Scripting Guide
Installing, Upgrading, and Removing Software
http://www.microsoft.com/resources/documentation/windows/2000/server/scriptguide/en-us/sas_cpm_oxbm.mspx

Plus one can do lots more
by using other Apache Installer
defines. Just learn more about
Windows Scripting and the
Windows Installer define actions.

Free VB book that can easily
be adjusted to VBScript ways.

Free Windows Installer Book
http://www.larkware.com/InstallerBook.zip

Jeff





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Silent Installer

Posted by hunter <th...@gmail.com>.
Go to \apache\bin and type apache -?

This is what you will see...

C:>apache -?
Usage: C:\apache\bin\apache.exe [-D name] [-d directory] [-f file]
                                [-C "directive"] [-c "directive"]
                                [-w] [-k start|restart|stop|shutdown]
                                [-k install|config|uninstall] [-n service_name]
                                [-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
  -D name           : define a name for use in <IfDefine name> directives
  -d directory      : specify an alternate initial ServerRoot
  -f file           : specify an alternate ServerConfigFile
  -C "directive"    : process directive before reading config files
  -c "directive"    : process directive after reading config files
  -n name           : set service name and use its ServerConfigFile
  -k start          : tell Apache to start
  -k restart        : tell running Apache to do a graceful restart
  -k stop|shutdown  : tell running Apache to shutdown
  -k install        : install an Apache service
  -k config         : change startup Options of an Apache service
  -k uninstall      : uninstall an Apache service
  -w                : hold open the console window on error
  -e level          : show startup errors of level (see LogLevel)
  -E file           : log startup errors to file
  -v                : show version number
  -V                : show compile settings
  -h                : list available command line options (this page)
  -l                : list compiled in modules
  -L                : list available configuration directives
  -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings)
  -S                : a synonym for -t -D DUMP_VHOSTS
  -t                : run syntax check for config files

...and after copying the files into your directory of choice simply
type apache -k install

Chris Lewis


On Sat, 08 Jan 2005 15:10:40 -0600, Lewis Franklin <hc...@texlife.com> wrote:
> I noticed on the apache website that apache has a packaged .msi of
> apache web server. I am needing to install apache as a service available
> to all users, but wish to have the installation occur silently. Is it
> possible to install apache from teh command-line by passing the
> necessary parameters to it? Thank you in advance.
> 
> Lewis Franklin
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org