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

Running application from setup project not returning UI culture

I created a localized wpf apllication. To install the application in the system I used msi installer provided by visual studio. Upon completion of the installation i run the application by running the commit custom action command. In the…
4
votes
2 answers

Pass .msi Args to Install Custom Action

I have a Setup and Deployment project in Visual Studio 2013 that creates an .msi installer for my solution. I also have a C# WinForms app that launches in the Install Custom Action. If a user launches the .msi from the command line, is there any…
4
votes
1 answer

Visual Studio Setup project set install location

I am using visual studio setup project extension for build setup package for my application. I have removed the Install Location Select Interface and instead application should be installed to the location i have preset. At the moment application…
4
votes
2 answers

After installing .NET 4.5.2 I still cannot run msi targeting 4.5

I installed the 4.5.2 .NET Framework (from 4.0 previously), and it everything told me that things were peachy. It told me to restart, so restart I did. I was able develop/run the app through VS, using classes only available in 4.5 & up so I know…
efischency
  • 473
  • 2
  • 14
4
votes
2 answers

VS 2010 Setup Project is NOT removing previous versions

I am using a setup project in VS 2010 to install a windows form application I have created. The setup project works great, however, if I update the application and change the version number and upgrade code of the setup project it does not update…
user1546315
  • 683
  • 5
  • 16
  • 27
3
votes
1 answer

ASP.Net Machine.Config Transformations

I am creating a strongly signed class library that contains an ASP.Net HttpModule and HttpHandler. I have created a visual studio setup project for my library that installs the library in the GAC, however i want to add an assembly reference and the…
3
votes
4 answers

How to create a silent installer package using Visual Studio 2008

I am using Visual Studio2008 for my development and i want to create a silent set up package i.e. i don't want any UI to come up during installation. Is it possible to create a silent installer MSI using Visual Studio and if not then are there any…
3
votes
2 answers

Visual Studio Setup Project - how to avoid duplicate entries?

It's the first time I use Visual Studio Setup to create an installer, and there's one thing I don't understand. I've added the files I want via simple drag-and-drop, but the end result is that the installer creates a lot of duplicate entries, like…
Master_T
  • 7,232
  • 11
  • 72
  • 144
3
votes
2 answers

how can get the path from installer and how set in my app?

i am writing a win app and now i want to make setup for my app,my code is: Microsoft.Win32.RegistryKey rk = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\Cu­rrentVersion\Run"); rk.SetValue("MyAppName",…
Farna
  • 1,157
  • 6
  • 26
  • 45
3
votes
1 answer

Windows installer using the NT AUTHORITY\SYSTEM instead of login user

I have a windows installer, which is creating a database as a part of the installation process. While installing the application CREATE DATABASE process is failing because the windows installer using a wrong user. It is using NT AUTHORITY\SYSTEM…
3
votes
1 answer

Visual Studio Installer Project Custom Action based on Build Configuration

Is it possible in an Installer Project to conditionally run a Custom Action based on the project build configuration (e.g. Debug, Release, etc.)? Also to include/exclude files based on the Build Configuration? Can I do any of these in Visual Studio…
3
votes
3 answers

Install vcredist_x64 with VS2017 installer project

I currently want to create a installer for a VS2017 project. This project has as prerequisite vcredist_x64. To create an installer I have installed: - ClickOnce Publishing (via VS2017 installer) - Microsoft Visual Studio 2017 Installer Projects…
3
votes
1 answer

How to change the file extension of C# project output included in a VS Setup Project

I have a solution in Visual Studio 2013 with many different projects. One of them is C# screensaver, built as Windows Application (file extension ".exe"). Now i want that screensaver to be packed into a visual studio setup project. But in the setup…
2
votes
1 answer

VS 2010 BootStrapper for WIC (Windows Imaging Component) before .Net 4 installation in XP

I have created a setup and deployment project for my .Net 4 app in VS 2010. In my prerequisites i have checked .Net4 prerequisite but i have learned that .Net4 has left out WIC (Windows Imaging Component) to make it light. When i run my setup in…
Nikhil Agrawal
  • 47,018
  • 22
  • 121
  • 208
2
votes
1 answer

Build a setup for a WinFroms .NET 6 using Microsoft Visual Studio Installer Project

I used Visual studio setup/installer project template to build a setup for my App last year(in VS19) and it worked well . after some changes I was forced to migrate to.Net6 and I tried to build a setup with this tool( in Vs22). I was able to install…
1
2
3
15 16