How to publish/deploy visual studio project as an installer

后端 未结 3 1138
栀梦
栀梦 2021-01-21 14:57

I just finished developing a system for a company. It will be used on 50+ PCs.

The only problem left is the installation process. I don\'t think it\'s efficient to manua

相关标签:
3条回答
  • 2021-01-21 15:48

    First of all install this.left

    https://visualstudiogallery.msdn.microsoft.com/f1cc3f3e-c300-40a7-8797-c509fb8933b9

    Once you have this installed,

    go to Solution Explorer and right click "Solution "YOUR PROGRAMS NAME" go down to "Add" and select "New Project" on the right hand side scroll down to "Other Project Type" and expend it and click on "Visual Studio Installer" and select "Setup Project" and Name your setup exe.

    A new window will pop up. On the left hand side you will see "Application Folder" Right click on it and select "Add" > "Project output" and click on "Primary Output" and press "ok"

    Once you have done that, on the right hand side you should see two or more files, right click on the one that should say "Primary output From "YOUR PROGRAMS NAME" and select "create Shortcut - "YOUR PROGRAMS NAME"

    Once that is done, rename your shortcut to your programs name. eg "my first program" after that click and drag it to "Users Desktop Folder on the left hand side.

    Then right click "User's Program Menu" and add a Folder and name it to your programs company name "eg Microsoft" this will make a folder in the start menu.

    After that select the folder you have just renamed and right click on the right hand side and select "Create new Shortcut" a window will pop up for you, select the "Application Folder" and then "Primary output from YOUR PROGRAMS NAME" and press "ok"

    Once all of this is done close out of it and go to "Solution Explorer" and press F4, here you will have the options to add details about your program eg who it is and even an icon.

    I may have missed somethings, but after reading this you will have a basic idea of what is required and you will be able to add your own things.

    Also i cant remember but you might have to also add your programs Icon to the "Application Folder"

    once you have done everything, open "solution explorer" and right click on the new project you have created and press "build" you will be able to find the files where you main project is located.

    Good Luck!

    0 讨论(0)
  • 2021-01-21 15:56

    You could create a Setup Project

    MSDN Setup Project

    0 讨论(0)
  • 2021-01-21 15:59

    I've used the Wix Toolset to create an installer in the past. It's a bit of a learning curve, but once you get the hang of it, I think its pretty good. It will let you manage install location, desktop and start menu shortcuts etc, and install any software dependencies such as a particular .NET framework version or Adobe Reader for instance. There is also an extension for visual studio and its free which always helps.

    0 讨论(0)
提交回复
热议问题