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
2
votes
1 answer

Install files to existing program's install path with Visual Studio Setup project

I'm making a Visual Studio setup project which installs a plugin for an existing program on the target machine. My files need to go into the install directory for that application. I'd like to be able to cleanly install and uninstall my plugin…
Hydrargyrum
  • 3,378
  • 4
  • 27
  • 41
2
votes
1 answer

Visual Studio Installer Project 2017 - Unrecoverable Build Error

I am having an issue rebuilding a multi-project solution that contains an installer project. I keep getting the error: ERROR: Unrecoverable build error I have scoured Google and this site and have tried the following, with no success; Repairing…
2
votes
2 answers

How to deploy database files with Visual Studio Setup Project?

I have to find a suitable location to deploy my SDF (database) file. The file must be the same to all users Windows applications can't write to the ProgramFiles folder. One user can't access other user's AppData folder A good choice would be…
2
votes
2 answers

How to provide options and control for Custom and complete installation in VS installer UI

I have an Windows C# application for which I will have to create an installer which would ask user for custom and complete installation.These custom and complete installation options are same application with different feature. I know to provide…
2
votes
1 answer

Visual Studio installer does not overwrite non binary files

When I run new installation over existing installed product the installer does not overwrite non EXE and DLL files. For EXE and DLL I can setup version number which defines whether the files will be replaced. But this is not possible for…
2
votes
1 answer

Visual Studio Setup Project Localization of System Controls

I'm trying to create a Setup using Visual Studio Setup Project. A mistake, but there's legacy work to consider here. Generally speaking, these projects do not support localization. However, almost all the Setups I've seen have some basic…
2
votes
2 answers

MSIEXEC fails to install product "a newer version of this product is already installed" although product code is different

I am using VS setup project to generate an installer. In order to fix the version of the generated MSI we have a script that modifies the product code and version of the generated MSI. I installed an earlier version of the MSI and when I try to…
OSH
  • 2,847
  • 3
  • 25
  • 46
2
votes
1 answer

Add Shutdown Script to Group Policy programatically using C#

My requirement is I have to run an application when user logs out from windows. To achieve this I felt that adding a Shutdown script to Group Policy of Windows would be a feasible solution. We normally do it by gpedit.msc. But I want to do it…
1
vote
1 answer

How to Expose Install Directory as a Public Property in Visual Studio Setup Project

My Windows Forms Application should be installed quietly using msiexec. I'd like to expose the Install Directory as a Public Property to enable the system administrator to change it using the command line only. Something similar to this would be…
1
vote
0 answers

Create installer with main project and somes class libraries

can someone explain me how i can create visual studio 2022 installer from 1 main app and 2 class library. To explain more further, i created a winform app that contain: 1-the main winform project; 2-a class library for all my database…
1
vote
2 answers

How do I debug and Step through a Visual Studio Setup project?

OS: Windows 10 Enterprise N Dev Environment: VS2022 (64-Bit) Professional (7.5) Application: VSTO Add-In (Outlook 32-Bit) The custom action I have closes Outlook during Install. That's working. However, it's not calling my UnInstall code which…
1
vote
0 answers

Building a Windows Setup Project gives many Setup files

I did the following steps to create a Windows Setup project: Create a Windows Forms Application using Visual Studio Install "Microsoft Visual Studio Installer Projects plugin" Add a "Setup Project" to the solution In the "Application Folder", add…
1
vote
1 answer

Custom Action not working msiexec /a - Visual Studio Setup Project

I have a visual studio setup project creating a setup.msi. I have some custom actions running during and after an installation. When I execute the command msiexec.exe /a setup.msi /qn to upgrade an existing installation, the custom actions are…
1
vote
1 answer

How to use Custom Action of Setup Project (vdproj) with .NET Core

I would like to create an installer for my self-hosted service written in .NET Core 3.1. I'm using Visual Studio 2019 so I had to install VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects and this allowed me to create Setup Project. So,…
andrew.fox
  • 7,435
  • 5
  • 52
  • 75
1
vote
1 answer

Install Without Manufacturer Name - Visual Studio Setup Project

Is there a way to install my application without a manufacturer name using a Visual Studio Setup Project? For example, if in the setup project properties I leave the manufacturer name blank, it installs to C:/Program Files/Default Company…
Joe Bauer
  • 572
  • 1
  • 9
  • 22