Multiple exe and dll file in one MSI using Visual Studio [closed] - c#

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I'm trying to merge multiple exe and dll files in one MSI file in order to install all of them using one installation file by using visual studio.
In addition to that I don't have the source code for the exe files. I used winx tools to have an exe file but I had the source code.

I'm guessing that you've been looking at Visual Studio setup examples that show build project output as an input to the setup project, and that's perhaps why you mention that you don't have access to the sources that would be used for the build.
The File View on Target System view in installer projects has destination folders (such as Application Folder). To add an exe or Dll just drag and drop the file into that folder, or right-click in the pane and do an Add File. Other files might go to Common Files, so again just add the files to that folder pane. Some of the time you may want to add the company name if it's not already part of the folder name.
This might help, it's old but installer projects are still like this:
https://www.red-gate.com/simple-talk/dotnet/visual-studio/getting-started-with-setup-projects/

Related

Missing .csproj file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
In Visual Studio 2019 all files like .aspx, .aspx.cs, .js, images are showing. I am missing .csproj and .sln files. to open and try to complie. What might have happened? any sort of idea appreciated.
Create a new project and copy the files from the old project to the new project.
Cheers
Pick one:
You deleted them by accident.
Some other software (or add-on) you were messing with deleted them.
Whatever you actually did is something that normally will not lead to the creation of .csproj/.sln files, such as opening the .aspx, .aspx.cs, .js, images, etc. manually in VS without opening or creating an actual project or solution.
The .csproj/.sln files are not missing. Whatever you experienced led you to the false belief the .csproj and .sln files would be missing. But in reality, whatever you saw and witnessed is an expression of another problem, not of the .csproj/.sln files missing.

What is the difference between File and Project [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
In New File I can choose empty class but it does not close the project I am working on. As in the title, what is the difference between a file and a project?
One ore more files create a project and one ore more projects create a solution.
You are probably adding a new file to you're existing project.
Projects are "buildable" things (they have output) and are composed of files. Thus, adding a new file has no reason to "close" the project (whatever that means).
When you get far enough, Solutions are "groups" of projects. Adding a new project to a solution doesn't close anything either.
In any IDE, project is a logical collection of different types of files, such as programs, resources, configuration files etc. There are so many different formats for storing the project information on disk such as .xproj, .csproj etc.
A "solution" is a logical collection of projects. A solution can have just one project in that as well. Solution is stored on disk typically by .sln extension by visual studio. In a solution, programmer can specify the build order of the projects, build configurations etc.

How to add reference in Visual Studio [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I need to use all the classes in one project in another. I tried adding the references, clicked on the project tab but I can't see the .cs or .sln files or any other files, just the exe in the debug folder and the .vshost file and the manifest file.
What file do I need to reference in the project?
File > Open > Project/Solution > Add to Solution (A little checkbox in the file dialog) then click the .sln you want
Right mouse click on the project that needs a reference to another project --> Add Reference --> Click the checkbox(es) next to each project you wish to refer.
Once you have added your reference you will need to include the namespace "using NamespaceOfSecondProject" in the class that will use the referred project.
You need to elaborate you question - Well why would you want to have redundant classes in two projects better build a class library and reference the dll in both the projects. If at all you need to include the classes from one project to another you simply need to copy the .cs file to other project and then select project and select add existing item then select the .cs file which you wanted to add. Hope this will help.

How to create installation wizard for ASP.net web site [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Actually my question is almost similar to this question.
But I have more demands to satisfy.
Actually my web project is developed with ASP.net and C#.And I build it using a tool call "Nant" because I want to install this web project to DotNetNuke(DNN).
So I can create build file using "Nant" tool and then I want to make intallation wizard to host this web project in another computer.
So following demands should be satisfied
I need to install required databases in client computer.
I need to update the connection string in web.config file based the database.
I need to create ODBC connection and save their names in my project config file.
I need to create an application in application pool of IIS.
I need to host my project in IIS.
So question in the link I provided is suggested to use professional edition of advance installer to do this.Actually I have no idea about Advance installer can satisfy all of my demands.
But I want some other solution to do this? Can't I create my own installation wizard by coding? Aren't there any visual studio libraries which can help me?
Please help me.
Thanking you
You can use install shield to do the basic operation. lets go through your steps one by one.
List item installshield has the db folder path and files to move, you can use installshield directory variables to get the path e.g [TARGETDIR]
There is a work around for this, don't put that connection string in webconfig, make a simple text file and put it inside, this may require a little bid code change as well,where you are accessing it. if you dont want to do so read the details after steps.
same as 2,
supported by installed shield
supported by installed shield
Ok Now, for step 2 and step 3, you can also use the webconfig and project file but for this you need to make a console application and parse the files to replace connectionstring etc. Put it under your project and set the target path via installshield of target machine.
this will act like a batch file and you can run it by adding custom actions to your project.
To see how to run any console app or batch follow this
How to run a ".bat" file during installation?

IIS - Build application without Visual Studio [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was recently given the source files for a Web Forms applications. All the files, folders, ASPX, XML, cs and other source code files were present. Except, there were no Visual Studio solution or project files.
Just the source files.
I was asked to modify and test the application with a text editor (notepad) and use IIS 7.0 to build and test the application.
How is this possible?
There are 2 methods of website creation in Visual Studio, Web Application and Web Site. Refer to this link.
For your case, the project must be created using the Web Site method. This allows the site to be compiled on-the-fly, so you can just edit the source code with a text editor.

Categories