The development phase of my project has been completed and now I want create a setup file.
What shoud I add in Application Folder in File System section ?
Where and how can I add my icon of project, database, recource and essential dll file?
In Visual Studio, you add a setup project application to your solution.
Setup is a project type, so it's like adding another .exe.
Visual Studio has a wizard that takes you through most of the steps.
Well if your question is like "How do I create a setup of my project?" You should try reading some of the tutorials on internet:
Creating Setup and Deployment Projects in VS.NET
Setup and Deployment with Prerequisites Included in VB.Net 2008
Serial Number in Setup and Deployment
Related
I have a sample project that is structured like the below image:
The WebApplication2 has depended on ClassLibrary1 at publishing time like this:
I want to copy some needed file in ClassLibrary1 project after publishing in a specific folder, for example in Plug-in/ClassLibrary1/
If you've looked at Orchard you'd see something like this.
Thanks.
In general (regardless of the type of the application) you could define custom actions during deployment, if you build a setup application. I think that limited edition of the InstallShield is the default solution for VS2013. There you could create some custom actions writing a script. Inside this script you could deploy the specific file. An alternative against the InstallShield is the WiX which you could use to build an MSI file using an XML.
Regarding web applications in particular, you could use the publish mechanism provided by the Visual Studio. This tutorial describes how you could configure it so that it would copy all project files. Then you could add the specific file as a project file and copy it each time you publish your website.
Hope I helped!
I am just wondering if there is a somewhat simple way to use a Windows Forms Application program outside of Visual Studios. If so could someone elaborate on it?
When you have compiled the files simply navigate to the
Debug/Release folder
and run the executable. Any dependencies can be configured to be output to that folder in
Project properties (Build Tab, Output path)
You can also set references to Copy local in the Property Window within Visual Studio, which ensures references are copied to Debug/Release folder depending on which configuration you have Visual studio in.
Or build an installer as Brian describes.
Yes. The steps to do this can be found here.
In a nutshell:
Add a new install project to your solution.
Add targets from all of the projects you want to be installed.
Configure pre-requisites and choose the location from where missing components must be installed (if applicable).
Configure your installer settings - company name, version...
Build the project and you are good-to-go.
Run the installer (setup.exe) or right-click the setup project in the solution explorer and select "Install", then run it from the install folder like any other app. (thank you, retailcoder)
It can be as simple or complex as you would like it to be.
I have a C# web application developed and web deploy ready - meaning I have the WebApp.Web.zip file ready. I have verified that manual import of this application in my IIS 7.0 manager works and I am able to run the application in the browser.
Open IIS Manager (cmd->inetmgr), and explore the "Sites -> Default Web Site", and click on "Import Application" on the Right menu under Deploy. Browse to the path of the AAA.Web.zip and click "open". Go through the Package Import wizard. Click on "Browse *:80".
I now want to programmatically do the import of this application in the local IIS Server. Could you help me with some pointers?
So If all that you want is to host your WebApplication in IIS, and you don't want to do it all the way manually.
There is a neat way to do so,
Create a WebSetup Project. i.e. Add a New Project into the Solution of your Existing WebApplication i.e. inside visual studio, Add New Project, go to
Other Project Types >>Setup And Deployment >> Visual Studio Installer >> Web Setup Project
Just add Primary Output and Content Files of your WebApplication to the Setup Project and you are done. All you have to do is to build your solution.
And inside the bin folder of your Setup Project, you will get an .exe, which upon installation, hosts the WebApplication in IIS.
see more about creating a setup Project in visual studio
atleast it is cleaner than WebDeploy Command Line Syntax
Just use the webdeploy command line in your buildscript or from a Process object
http://technet.microsoft.com/en-us/library/dd569106(v=ws.10).aspx
Microsoft basically doesn't let you hook in with an API, there are a few ways to hack through it, but honestly you'll be better off using the command line
see this old answer
I have a web application, where the UI is in seperate folder and solution, the middle tier as well as the data layer in different folders and solutions.
Now I need to create a MSI for my web application. Until now we have been using deployment engine, but now we have been asked to do a MSI as the new server does not support deployment engine.
Usually we create MSI for a windows application, where we take the EXE as the primary output.
Now how do I create the MSI in this situation.
Any thoughts would be appreciated.
regards
cmrhema
Click in your solution and Add a new project: a Web Setup Project
Then add as output your Website.
Important Note:
This will add all the code (.cs / .vb files) and will protect nothing at all, to protect your code (the compiled one) you need to add the Visual Studio Extension Web Deploy Project
Then, right-click in your Website and choose the new option, and add this project as the input of the Setup.
Although the learning curve will be steeper I would recommend using the WIX toolset to create your Windows Installer files - http://wix.sourceforge.net
See also https://stackoverflow.com/tags/wix/info
I've been looking around and other than: http://msdn.microsoft.com/en-us/library/31kztyey.aspx I have found no information on how to publish a Windows form application I have written.
I have managed to publish and then install my application on my local computer, but not in the way I had intended. I was hoping to be able to zip up the folder containing my published project and upload it somewhere, at which point people can download the zip file and install my application. The publishing wizard doesn't seem to be able to publish in such a way, or if it is, it is fairly unclear.
Can anyone point me in the right direction here? I can also clarify what I would like to do if need.
You can create Setup Project ( File-> New -> Project -> Other Project Type -> Setup and Deployment -> Visual Studio Installer -> Setup Project ). So, in Solution Explorer, you can add existing project. After add your project, you can add your program output in File System window( Right click on Application Folder -> Add -> Project Output ... ), so you select your project from Project ComboBox ). After adding your project output, you can build your setup-project and you will have your setup file in your setup-project.
For more information you can check :
Steps to Create Setup and Deployment
Setup Projects
Try this way: ClickOnce (Too simple, free, many ability like Update )
Edit : Absolutely there are many ways, also you can use third party software (like InstallSheild). and Look at Different Windows Installer and ClickOnce
You can create a setup-project - with this you can simply compile a setup and deploy all the setupfiles/msi and the user can install from this.