Questions tagged [visual-studio-setup-proje]

Use this tag if you are creating Visual Studio Setup projects. Most likely there'll be a version of Visual Studio to which you've added the installer project add-in. These projects create MSI-based setups and ClickOnce setups.

Visual Studio Setup Projects were introduced in Visual Studio.NET and developers can create such projects to compile their binaries (and various settings) into MSI packages.

Since 2011 this project type has been considered obsolete. Microsoft initially announced its death in a blog post and later revived it as a separate Visual Studio extension.

It is recommended that users of this project migrate to other technologies (from Microsoft or not), such as the open source WiX Toolkit.

227 questions
83
votes
10 answers

How to install a windows service programmatically in C#?

I have 3 projects in my VS solution. One of them is a Web app, the second one is a Windows Service and the last one a Setup project for my Web app. What I want is by the end of the installation of the web app in my setup project, within my custom…
34
votes
3 answers

Adding Custom prerequsites to visual studio setup project

I have a setup project that I need to install a redistributable that is not available in the default prerequisite list. Is it possible to add this redistributable to the bootstrapper that the setup project creates?
Web
  • 1,735
  • 2
  • 22
  • 36
33
votes
6 answers

Visual Studio 2017 setup project missing

Anyone know where the elusive setup project template went to for Visual Studio 2017? Trying to update VS2015 setup projects, but their setup projects are not supported and MS has no information I can find (I followed every link in their forums from…
19
votes
4 answers

Set InstallPath registry key using Visual Studio Setup project

I am deploying my application using an msi installer designed with a Visual Studio Setup Project. How do I set a registry key to the application's install path?
kjv
  • 11,047
  • 34
  • 101
  • 140
14
votes
3 answers

How do I stop SQL Server 2008 R2 trying to install some package when I build my setup project?

I have a WPF Linq-to-SQL project which I have been developing using MS Visual Studio 2008. I was running SQL Server 2008, and recently upgraded it to version R2. Now, whenever I build my SETUP project (not the app itself), the build process causes a…
13
votes
1 answer

difference between windows installer 3.1 and 4.5 While creating SetUP Project, which one to select when

I am Creating SetUp Project for Win App. in VS2010 Framework 4.0 Now While selecting Prerequisites ( from Project properties win ) I have Microsoft .NET Framework 4 (x86 and x64) as per my project Requirement. Now I am confused with Wind Installer…
BJ Patel
  • 6,148
  • 11
  • 47
  • 81
8
votes
2 answers

Visual studio Installer Issue : Error 1001. Error 1001. InstallUtilLib.dll: Unknown error

There are lot of threads and question out there. But the error I am facing is in quite different scenario. So let me explain here. With the help of this article Installer Class and Custom Actions I have added project primary output(Having Installer…
7
votes
2 answers

How to Write to app.config in setup project and use it in the program

I have created a Installhelper.cs which is inhered from the Installer. Override the Install() method by using this piece of code(A). These values that are inserted to the app.config are not available in the [projectName].exe.config file that is…
diyoda_
  • 5,274
  • 8
  • 57
  • 89
6
votes
2 answers

Create Event Log Source as part of installation - windows forms app, vs deployment project

I have a vb.net windows form app that I am deploying as using the visual studio deployment project. The app needs to write event logs to the application log in the event viewer. For reasons explained here I need to create the event source during…
6
votes
3 answers

How to set icon for the desktop shortcut of setup project created using visual studio Installer?

I have created a Setup Project from Visual Studio Installer. I installed the MSI and I was able to install the application. I want to add an icon for the shortcut I have created on the desktop. For this I tried the following steps: 1) Selected the…
Siva
  • 1,281
  • 2
  • 19
  • 41
5
votes
2 answers

How to Change Setup Project Version

I have a Setup project that I built a while ago in VS2010 and have recently ported that project into VS2013. I installed the Microsoft Visual Studio Installer Projects extension and my Setup project compiled fine. However, I cannot figure out how to…
Jed
  • 10,649
  • 19
  • 81
  • 125
5
votes
2 answers

visual studio setup project : update doesn't work

I am facing a problem for several days and after many research I couldn't find anything that fit with my case. Here's the thing : I'm working with Visual Studio 2010 on a solution that contains several projects and a Setup Project. I want the setup…
4
votes
2 answers

How does the InstallAllUsers option work?

I have a C# application, and a Visual Studio (2010) Setup Project with it. In my Setup Project, I am using InstallAllUsers = True. Additionally, my application needs to launch at Startup, so a shortcut is being added to the User's Startup Folder. …
Eric
  • 5,842
  • 7
  • 42
  • 71
4
votes
1 answer

Microsoft Visual Studio 2017 Installer Projects launch condition check not work for .net 4.7.1

I am using visual studio professional at version: This version announced as supported .net framework 4.7.1 I installed the Microsoft Visual Studio 2017 Installer Projects extension from the market. Generate a visual studio setup project to generate…
4
votes
2 answers

Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable

I am creating the installer for my application using a "Visual Studio Installer" project type in Visual Studio 2017. I want my installer to install visual c++ redistributable 2015 with my application. I've downloaded the vc_redist.x86.exe file,…
1
2 3
15 16