Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 16th, 2004, 05:56 AM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Deployment

Hello,

This might be a stupid question. Does anyone know of, or have they ever used any code to deploy and asp application. Sort of like a setup exe that takes care of the whole installation process for the customer??

Any help or guidance would be cool...

Thanks,

Adam
 
Old March 16th, 2004, 01:02 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Typically, an ASP.NET application deployment only needs to consist of copying the pages and assemblies to the destination server (also known as XCOPY deployment). Obviously, there's a little more you need to do, like setting up a website or virtual directory on the IIS server, but I never written anything that does that automatically.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old March 17th, 2004, 04:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

As Peter says typically a lot of it is just copying files. However if you also need an easy way to programatically create the virtual directories, take a look at the sample IIS admin scripts in c:\Inetpub\AdminScripts - there's one called mkwebdir.vbs. There also was a script called adsutil.vbs which basically allowed you to do everything: create the directories, specify whether it run in or out of process, change the anonymous user etc - but I can't seem to find this on my system (IIS 5.1) so maybe its an older script.

As to the installation itself I've used Inno Setup (http://www.jrsoftware.org/) which is very good, easy to write the scripts (if you want a GUI for this check out http://www.istool.org which creates Inno Setup scripts) and free! It allows you to copy files, register components, run scripts, change the registry - just about everything really.

hth
Phil
 
Old March 17th, 2004, 08:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

Found adsutil.vbs in C:\Inetpub\AdminScripts on my NT 5.1 and it's a VBScript file containing 2545 lines of code!

 - mega
 
Old March 17th, 2004, 08:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by mega
 Found adsutil.vbs in C:\Inetpub\AdminScripts on my NT 5.1 and it's a VBScript file containing 2545 lines of code!

- mega
I've found it on another server at work in that same location - so i have a copy now too:D. I know its a relatively big file, but I wasn't suggesting that Adam use it as a basis for creating his own scripts. I was thinking more along the lines of:
- include adsutil.vbs in the files deployed for the release
- add some script lines to the install to run adsutil.vbs supplying the necessary params to create the virtual directory
- delete adsutil.vbs at the end of the install

Here's an example of the script lines I was thinking of:
cscript adsutil.vbs delete W3SVC/1/Root/NewSite
cscript adsutil.vbs CREATE_VDIR W3SVC/1/Root/NewSite
cscript adsutil.vbs APPCREATEPOOLPROC W3SVC/1/Root/NewSite
cscript adsutil.vbs SET W3SVC/1/Root/%1/AppFriendlyName NewSiteName
cscript adsutil.vbs SET W3SVC/1/Root/%1/AccessFlags 513
cscript adsutil.vbs SET W3SVC/1/Root/%1/Path "physical path to files"

hth
Phil
 
Old March 17th, 2004, 10:00 AM
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks all of you for your help, at least I have some things to look into now. Will let you know how things go.

Adam






Similar Threads
Thread Thread Starter Forum Replies Last Post
Deployment regbnvl BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 0 May 7th, 2006 04:44 PM
Deployment of Asp.net shabirmaher General .NET 1 August 8th, 2005 06:12 AM
deployment of asp application amrit_82 Classic ASP Professional 0 June 28th, 2004 04:16 AM
Can any one help me with ASP.Net Deployment kasie ASP.NET 1.0 and 1.1 Basics 0 February 5th, 2004 10:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.