Create MSI or setup project with Visual Studio 2012
Asked Answered
H

8

130

I create a small application and I would like to create one MSI file.

In Visual Studio 2010 you have this project type under:

Other Project Types -> Setup and Deployment -> Visual studio Installer -> Setup Project

But the only thing you got in Visual Studio 2012 is "Enable InstallShield Limited Edition".

You can change the .NET Framework, but nothing changes.

Why is it not there any more? And how can I get it back? Is there a new way to do this?

Hideandseek answered 11/9, 2012 at 21:23 Comment(2)
what's the point of a Visual Studio add-in if there's no way to deploy it???!Kataway
Just for reference, here is a description of the most common alternative tools used to create an MSI: https://mcmap.net/q/104007/-what-installation-product-to-use-installshield-wix-wise-advanced-installer-etc-closed . They are all a bit pricey, except Wix.Overfeed
M
37

To create setup projects in Visual Studio 2012 with InstallShield Limited Edition, watch this video.

The InstallShield limited edition that cannot install services.

"ISLE is by far the worst installer option and the upgraded, read - paid for, version is cumbersome to use at best and impossible in most situations. InnoSetup, Nullsoft, Advanced, WiX, or just about any other installer is better. If you did a survey you would see that nobody is using ISLE. I don't know why you guys continue to associate with InstallShield. It damages your credibility. Any developer worth half his weight in salt knows ISLE is worthless and when you stand behind it we have to question Microsoft's judgment."

By Edward Miller (comments in Visual Studio Installer Projects Extension).

The WiX Toolset, which, while powerful is exceeding user-unfriendly and has a steep learning curve. There is even a downloadable template for installing Windows services (ref. VS2012: Installer for Windows services?).

For Visual Studio 2013, see blog post Creating installers with Visual Studio.

Magnificence answered 28/5, 2013 at 6:48 Comment(3)
As per the Video, Unable to create Setup.msi in VS 2012, any more help..??Eliseelisee
The install shield limited edition that cannot install services. The WIX Toolset, which, while powerful is exceeding user-unfriendly and has a steep learning curve. There is even a downloadable template for installing windows services. arstechnica.com/civis/viewtopic.php?f=20&t=1190745Blackburn
Hi @santhoshkumar, After completing installation of window form MSI setup, my raw files(Design and coding) are also showing at installation location. I've developed this application using visual studio 2010. Setup created successfully, but after installation that MSI this problem is happening. Please help me. Thanks in advance.Answer
G
68

Please see:

Visual Studio setup projects (vdproj) will not ship with future versions of VS

Windows Installer Deployment

It was announced 1 1/2 years ago that the project types were being killed. Alternatives are:

  1. Use A VS2008/2010 Solution to build your installer
  2. Switch to another tool such as InstallShield or Windows Installer XML
Gloss answered 12/9, 2012 at 1:4 Comment(6)
if we go for your 1st solution.. can we add pre-requisites as .NET 4.5 ?Pekan
Possibly. I believe VS has a directory somewhere of config files (XML?) that contain the definition of prerequistes. You might be able to work out the data structure and then create your own definitions for .NET 4.5. It wouldn't be supported and I really only put #1 out there to point out it is an option. Personally, speaking as an expert in this field with 16 years experience, I dislike almost everything about this tool and I wouldn't attempt to breath any more life into it. I was not saddened when I heard Microsoft was killing it.Gloss
Take a look here if you want to try it: C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages Figuring out how they hash the PublicKey attributes will probably be one of the biggest hurdles.Gloss
Sorry what does "Use A VS2008/2010 Solution to build your installer" actually mean?Lysine
It means if you have your Deployment Project and Application Projects in the same solution you'll have to stop doing that. You'll have to split them into two solutions and leave the deployment solution on VS2005/2008/2010 and move your application solution forward to 2012.Gloss
For the same reason i were not able to convert my 40 odd project's solution to VS2012. there were no simple conversion from VS2010 setup projects to installshield based or WIX based setups projects which are supported in VS2012 and next version till dateInfanticide
M
37

To create setup projects in Visual Studio 2012 with InstallShield Limited Edition, watch this video.

The InstallShield limited edition that cannot install services.

"ISLE is by far the worst installer option and the upgraded, read - paid for, version is cumbersome to use at best and impossible in most situations. InnoSetup, Nullsoft, Advanced, WiX, or just about any other installer is better. If you did a survey you would see that nobody is using ISLE. I don't know why you guys continue to associate with InstallShield. It damages your credibility. Any developer worth half his weight in salt knows ISLE is worthless and when you stand behind it we have to question Microsoft's judgment."

By Edward Miller (comments in Visual Studio Installer Projects Extension).

The WiX Toolset, which, while powerful is exceeding user-unfriendly and has a steep learning curve. There is even a downloadable template for installing Windows services (ref. VS2012: Installer for Windows services?).

For Visual Studio 2013, see blog post Creating installers with Visual Studio.

Magnificence answered 28/5, 2013 at 6:48 Comment(3)
As per the Video, Unable to create Setup.msi in VS 2012, any more help..??Eliseelisee
The install shield limited edition that cannot install services. The WIX Toolset, which, while powerful is exceeding user-unfriendly and has a steep learning curve. There is even a downloadable template for installing windows services. arstechnica.com/civis/viewtopic.php?f=20&t=1190745Blackburn
Hi @santhoshkumar, After completing installation of window form MSI setup, my raw files(Design and coding) are also showing at installation location. I've developed this application using visual studio 2010. Setup created successfully, but after installation that MSI this problem is happening. Please help me. Thanks in advance.Answer
D
25

Have you tried the "Publish" method? You just right click on the project file in the solution explorer and select "Publish" from the pop-up menu. This creates an installer in a few very simple steps.

You can do more configuration of the installer from the Publish tab in the project properties window.

NB: This method only works for WPF & Windows Forms apps.

Dodds answered 1/5, 2013 at 23:20 Comment(3)
Also known as ClickOnce - msdn.microsoft.com/en-us/library/t71a733d(v=vs.110).aspxFog
I did the same in my embedded project containing WPF windows and VC++ dll. My client asked me to include VC++ redistributable package in the installer. Can you assist me? Because I undergone all the wizard but I could not see any option to include a seperate installer in deployment using this clickOnce deployment method.Appendicle
@Dodds I finally found the option. I found it in the Prjoect Properties ->Publish->Prerequisites tab. Hope, you will also find it.Appendicle
R
17

Microsoft has listened to the cry for supporting installers (MSI) in Visual Studio and released the Visual Studio Installer Projects Extension. You can now create installers in Visual Studio 2013; download the extension here from the visualstudiogallery.

Ronnyronsard answered 28/4, 2014 at 11:17 Comment(3)
Not extension for VS 2012 ? Any full source code real sample application + setup Project ?Blackburn
Downloaded Installer Projects Extension, built a simple msi to put a third party dll into the GAC in short order. Very simple, easy to use, does the basics.Rabiah
this stack is asking about 2012.Relation
B
5

ISLE (InstallShield Limited Edition) is the "replacement" of the Visual Studio Setup and Deploy project, but many users think Microsoft took wrong step with removing .vdproj support from Visual Studio 2012 (and later ones) and supporting third-party company software.

Many people asked for returning it back (Bring back the basic setup and deployment project type Visual Studio Installer), but Microsoft is deaf to our voices... really sad.

As WiX is really complicated, I think it is worth to try some free installation systems - NSIS or Inno Setup. Both are scriptable and easy to learn - but powerful as original SADP.

I have created a really nice Visual Studio extension for NSIS and Inno Setup with many features (intellisense, syntax highlighting, navigation bars, compilation directly from Visual Studio, etc.). You can try it at www.visual-installer.com (sorry for self promo :)

Download Inno Setup (jrsoftware.org/isdl.php) or NSIS (nsis.sourceforge.net/Download) and install V&I (unsigned-softworks.sk/visual-installer/downloads.html).

All installers are simple Next/Next/Next...

In Visual Studio, select menu File -> New -> Project, choose NSISProject or Inno Setup, and a new project will be created (with full sources).

Bruton answered 7/10, 2013 at 14:18 Comment(2)
How can install NSIS and Inno Setup ? Step-by-Step Getting Started in 5 minutes and full source code sample in VS ?Blackburn
Download Inno Setup (jrsoftware.org/isdl.php) or NSIS (nsis.sourceforge.net/Download) and install V&I (unsigned-softworks.sk/visual-installer/downloads.html) All installers are simple Next/Next/Next... In Visual Studio select File -> New -> Project, choose NSISProject or InnoSetup and new project will be created (with full sources).Bruton
H
3

There is some progress for Visual studio 2013 developers :-D woot woot! See blog post Visual Studio Installer Projects Extension.

Link and information were retrieved from Brian Harry's blog post Creating installers with Visual Studio.

Hideandseek answered 20/4, 2014 at 21:13 Comment(0)
O
2

Have a look at the article Visual Studio Installer Deployment. It will surely help you.

You can choose the correct version of .NET framework on the page. So for you, make it .NET 4.5. I guess that would be there for Visual Studio 2012.

Oni answered 28/8, 2013 at 13:30 Comment(1)
For Visual Studio 2012, it says "InstallShield Limited Edition (ISLE) is free for Visual Studio developers and replaces the functionality of the project templates in Visual Studio for setup and deployment.".Scaremonger
B
0

I think that Deploying an Office Solution by Using ClickOnce (MSDN) can be useful.

After creating an Outlook plugin for Office 2010 the problem was to install it on the customer's computer, without using ISLE or other complex tools (or expensive).

The solution was to use the publish instrument of the Visual Studio project, as described in the link. Just two things to be done before the setup will work:

Bainmarie answered 25/6, 2016 at 16:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.