Custom Installation Path via SETUP

Asked

Viewed 807 times

2

When I publish the windows form application, it already generates the Setup by the visual Studio 2010 which when running, installs in "program files" in windows 7 the Installation. I would like to create a directory named c: Cartorioscanner and in this directory when running Setup, install the program, would know how to do this? Most Grateful

  • Can you clarify your question a little more? You want to know how to create a project setup?

  • That’s right Daniel, when you create a version you go to Publish of Visual Studio and generate a version to be installed in winform. Ai when you run the setup generated it by default installs the program in the windows programs file folder.Only I don’t want it to be like that.I would like to generate an installation where it enters me in a predetermined directory, for example c: Cartorioscanner.

  • Okay, I’ll post an answer...

  • 2

    Guys worked out, I even created the installer in Visual Studio and directed to create in the specified directory. Thank you very much!

1 answer

1

One of the setups I learned that was well didactic with the developers I work in this way, I hope it helps:

Step 1: Create a setup application.

inserir a descrição da imagem aqui

Along with your web project, applications and etc. (I will use the example setup project, but the web setup is similar to these steps)

Step 2: Open custom actions inserir a descrição da imagem aqui

Here you will include your project and we will go to the next step

Step 3: Let’s add the project inserir a descrição da imagem aqui

Step 4: open with double click the option "application Folder" inserir a descrição da imagem aqui Opening this option you will in Primary output option

Step 5 : Insert your application into the setup.

inserir a descrição da imagem aqui As I don’t have any application in my Solution, no option appeared in the tab, but as an example I gave a quick scribble to exemplify.

Step 6: Give ok on everything and make sure the items are added correctly.

In this step, after confirming all the steps taken in the image of step 4 your project will appear in all folders of: Install, Commit, Rollback, Uninstall. The Dll’s will automatically appear in the "Detected dependencies" folder in the setup application. After doing this, build and if it works correctly just fetch the setup that is in the debug folder of this application.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.