Setup project and IIS - c#

I am creating a new Setup project using Visual Studio 2010.
I have an existing application which has a few .aspx files along with few other directories. The application has lots of other non-ASP.Net files such as exes and dll's.
I am not quite sure whether I should create a "Web" setup project or create a simple setup project instead?
I am looking for some advice on this.
Any kind of inputs are appreciated!
Thanks.

Be aware that those project types were removed in VS2012. Assuming you want to invest in this technology at all, the "Web" setup project handles IIS configuration. The "Setup" project is just file copying.
My input would be to go directly to Windows Installer XML or InstallShield Limited Edition.

Related

Can't run a very old ASP and flash project

I come from JS world and have to run an old ASP project to see its structure.
But I can't understand what kind of framework have been used to create this.
Have tried to build it with dotnet but it's not recognized.
Here is the projects screenshot can some body recognize it and tell me how to run it locally ?
I would try opening this would Visual Studio. That does look like a typcial asp.net web forms proejct.
If you ahve a ".sln" file in the root folder, then you should be able to open this project with Visual Stuido. (just download 2019, or latest 2022).
You will almost for certain want to open this project with VS.
If there is no .sln file in the root folder, then choose from VS to open as web site.
So, there are two ways to open/use/develop these older asp.net applications. the existence of a .sln file tends to tip you off as to which method you need (and want) to open up this applcation with. But, yes, you need VS .net "IDE" and the built in designers to work on this.
So, from your screen shot, go up one folder - look for a .sln file. That's the project file you want to try and open with Visual Studio.
As noted, if no .sln, or no .prj file exists, then use the open as web site option in VS.
Looks like a WebForms project, not sure about the state of WebForms support for VSCode but Visual Studio Community should be able to run this. Try loading this project with Visual Studio ensuring you have ASP Web development work load installed.

How to Create a visual studio Setup Project to install multiple Windows Services

I have 3 windows service with separate solutions. How can I install all the three with one visual studio Setup Project.
It's not clear why this is a difficulty, but perhaps you are stuck with the idea that the "project output" idea in a setup project means that you can have only one solution's output in a setup project.
The easiest thing to do is to create the setup project and then add (to the Application Folder) each of the service executables (which I assume have installer classes). Then add the three service executable installer classes as custom actions. To state the obvious, you allowed to have more than one custom action to install a service.

How to create a "content only" project in a Visual Studio 2017 solution?

Is there an easier way to create content only projects in Visual Studio 2017 with out having to edit csproj files?
My objective is to have a class library project in my solution that does not produce and assembly/dll.
ASP.NET Empty Web Site is the project type you are looking for. It is located under Visual C#-Web-Previous Versions.
Project file structure
There is no project file (.csproj or .vbproj). All the files in a folder structure are automatically included in the site.
Compilation
If you do include source code in the project, the source code is typically compiled dynamically (automatically) by ASP.NET on the server the first time a request is received after the site has been installed or updated.
Deployment
You copy the application source files to a computer that has IIS installed on it, or use visual studio tools that integrate with Web Deploy (the IIS web deployment tool) to automate many deployment tasks.
Limitations
There are a number of limitations to these project types but if you are only looking for static content and no compiled assemblies, the limitations should not affect you.
There is much more documentation located here regarding the specifics of this project type.

How Can I Create a Setup File for multiple applications in Visual Studio?

I have a C# application and I have some applications like MySQL, MariaDB etc. that I use with my C# application.I want to make a SETUP file that contains my C# application's EXE file and other applications' (MySQL, MariaDB ..) setup files in one setup file.That setup file will install all of these applications with one setup file.
I have tried with Visual Studio Setup Wizard but I can't manage.Can I do that in Visual Studio?If I can, How can I do that?Should I download a visual studio extension?
You can create Setup by installing WIX tool and Install the Visual Studio extension and follow the WIX syntax
If you need to Include multiple EXE files in Setup you need to refer all the files that u needed in Setup.
If you need to install those setup then you need to create the custom action.
you can create a separate project for a custom action and added the references to the required binaries (ie the Binaries you previously mentioned in tags) and added the corresponding dll formed in the binary tag and called it via CustomAction
It's not clear if you've downloaded and installed the VS 2017 Installer Extension from here:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2017InstallerProjects
which lets you create Visual Studio installer projects (not the setup wizard). I suggest you search for tutorials on setup projects if you're totally unfamiliar with them, such as:
https://msdn.microsoft.com/en-us/library/cc766795.aspx
http://www.c-sharpcorner.com/UploadFile/1492b1/creating-an-msi-package-for-C-Sharp-windows-application-using-a-v/
https://www.red-gate.com/simple-talk/dotnet/visual-studio/getting-started-with-setup-projects/
In general you just drag and drop your files into (say) the Application Folder in the File System view; registry entries can be created using the Registry view. Prerequisites such as SQL runtime support. .NET runtime are added with the setup project's properties, choosing from the list of prerequisites.
This will give you a basic setup with little customization. There might be features you require that Visual Studio setups don't support, so something like WiX will give you a lot more functionality with a steeper learning curve if you've never created an MSI setup file before. I would search for a tool that fits your requirement, and this thread might help:
Best tool to create MSI

How Can I Create Folders in the Installation Process?

I haven't deployed the application yet. I'm new to this, how can i create folders under C:\Programs Files during installation? Should i put the snippet of creating folders in program.cs?
The application is Winform in C#
In Visual Studio, use the MSI Installer Wizard template to add an Installer to your solution.
Using this template you can set up the appropriate folders (also registry keys, start menu shortcuts etc.) to create when you deploy your project.
In Visual Studio 2008 this template is under Other Project Types->Setup and Deployment->Setup Wizard.
Use deployment (setup) project. it will create this folder for you
Add a Setup project to your Solution And then add Primary output and all the files needed.
From the Property windows of the setup project you can choose default location where to save
your projects which I usually do in my projects.
Refer this for more info http://msdn.microsoft.com/en-us/library/ms235317%28VS.90%29.aspx
I strongly recommend WiX over the visual studio deployment project. It has a bit of a learning curve, but it's worth learning it.

Categories