Using AppCmd.exe for installation instead of IIS Manager

Jan 17, 2012 at 4:08 PM
Edited Jan 17, 2012 at 8:08 PM

Just created a couple of Installers for 5.61 and 5.51:

These will unzip the files to a Demo directory, create a Demo IIS application, and pop up the Demo in the browser.  You must have IIS 7 or higher to use the Installers.  Takes about 10 seconds to install ActiveVFP using these installers!!

The key commands contained in the batch files are as follows:

* create IIS application
%systemroot%\system32\inetsrv\APPCMD add app /"Default Web Site" /path:"/avfp5.61Demo" /physicalPath:"c:\avfp5.61Demo"

* enable 32-bit on 64-bit machines (run once per app pool)

%systemroot%\system32\inetsrv\APPCMD set apppool / "DefaultAppPool" /enable32bitapponwin64:true

You can use these commands any time to create a new AVFP IIS application by command line instead of using the IIS Manager GUI which can be a little cumbersome..