Install tool to create virtual directory on IIS - iis

What install tool can I use to create Virtual Directory on IIS? OpenSource, free or to do in C#.

WiX can create IIS virtual directories.

You can create IIS virtual directorys using NAnt and the MKIISdir task in the NAntContrib project

You can use the VS.NET Web Setup Project included into visual studio.
Check this article for a list of deployment possiblities for your web app :

You could use Microsoft Web Deployment Tool to recreate a website structure.

you can call a small VBScript from any installer via command line, and access the IIS object.
Set objMimeMap = GetObject("IIS://localhost/w3svc")

Related

orchard cms Visual Studio team services

We have a number of Orchard projects that we want to get on Continuous integration using Visual studio team services and octopus deploy but its proving to be a headache (Like most things in Orchard)
In the build step we are running the orchard.proj file with the target precompiled (/t:precompiled)
Is anyone aware of any good documentation that can help us achieve our goal or have any tips?
Many thanks
Based on this article, you can run build precompiled command (build.cmd file is existing in project/solution folder) to build project (I made a test with Orchard 1.10.1). So you can add Command Line task/step to your build definition to run build precompiled command.
To deploy project to IIS, you could use IIS Web App Deployment task. (You need to install IIS Web App Deployment Using WinRM extension, then add IIS Web App Deployment task/step to your build definition)

assistance with getting web deploy from visual studio set up

I am working on getting web deploy set up on IIS 7.5. I have followed the steps exactly in this article:
http://www.iis.net/learn/publish/using-web-deploy/configure-the-web-deployment-handler
I have tested importing and exporting applications on the server and all work perfectly. Now I would like to set up remote access to ms deploy so I can install web applications by publishing in visual studio 2012 with publish profiles.
Here is where I am confused, what is the url I include in this for the service url (ie. msdeploy.axd)? Where I can find it on the servers iis (server is located on different machine than visual studio)? I have read about access is over port 8172, how can I check that this is open for communication?
Thanks for any help
First up, the installation instructions you want are Installing and Configuring Web Deploy in the "Install" section of the site. The instructions you linked are from 2008.
Once you've installed MSDeploy v3 as per the newer instructions, the MSDeployServiceURL value will be https://webserver:8172/msdeploy.axd. You'll also probably need to set <AllowUntrustedCertificate>true</AllowUntrustedCertificate> if you don't have a cert on the server.
The user in question will need to be an administrator unless you have setup non-administrator deployments (instructions in the same link).

Do you get an easy to use IIS Installer?

I have just finished the development of a web service application in visual studio.
Is there an easy way to wrap it in an installer, so that I can just ship it off to technical support, and they can have a wizard based installer that will fully setup an IIS site for them, either in 6 or 7?
You can use Visual Studio's built in setup project. I've only tried this once on a test project, but it created all the necessary stuff in IIS 6 just fine.
I would suggest you export the IIS METABASE for your local instance of the service and then this can be imported into a new server to create the correct IIS configuration. Have a look at Copying IIS Configurations using iiscnfg.vbs The METABASE is just an XML file and you will easily see the specific values that allows you to edit them should the deployment be different in anyway.

Create a web application on IIS when using a Web Site (the microsoft version)?

sorry for possibly a very stupid question.
I have one of those Visual studio Web Sites ( ie not a web application) ,
is there any way I can automate the creation of the IIS Web Application that points to the web site within Visual Studio ( ie then when developers open the solution, the IIS site will be set up automagically?
Sorry, just not famiiar with the Web Site side of things
Thanks
AFAIK It's not someting Visual Studio will do out of the box. What you could do is create a batch file that creates the virtual directory then opens the solution. Store it in source control and your developers will be able to run it instead of opening the solution directly.
There are a few options for creating an IIS virtual directory automatically - see this and this.
Also - if you are using VS2005 or above you could change you application to use the development web server instead of IIS and then you won't need to mess around with virtual directories at all. Select 'Use default Web server' on the 'Start Options' section of the projects property pages.

SharePoint : how to automatically deploy a WSP package to a remote SharePoint Server?

I'm developing on a machine that is not the MOSS Server. I have Visual Studio and WSP builder installed. WSP builder is awesome because it can automatically create WSP Packages from within the Visual Studio IDE. However it seems the deploy functionality only works on the local dev machine.
Is there an easy way to deploy a WSP package to a remote SharePoint server? I want it to do the following
Add the solution
Deploy globally
If the solution already exists, it should first retract the solution, then upgrade it, then redeploy it.
Anything like this exist? Thanks in advance
Create a batch script (*.cmd, *.bat) that does everything you need, when you run it on the server.
Then, from your local machine, using psexec tool, you can call
psexec.exe \\servername -u domain\user -p secretpassword "c:\sharepoint_scripts\yourscript.bat"
bear in mind that psexec calls the script as if it was running from c:\windows on that computer.
Hmm, perhaps using something like psexec to remotely run stsadm after copying the WSP to the destination server.

Resources