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
0
votes
0 answers

Can't use Visual Studio Installer

I need to create a Windows setup (.msi) with Microsoft Visual Studio Installer Projects. I have installed the VS extension but it seems that I can't use (I can't find a way to add a setup project, I tried lot of keywords without any success). I'm…
mjfox
  • 31
  • 4
0
votes
1 answer

Visual Studio Setup Project - desktop shortcut name in none ASCII characters not working ( Russian for ex )

I cant get to use none ASCII characters ( Russian for ex ) when creating a desktop shortcut name for the "primary output" of the installation. The text turns to blanks after the installation. Any ideas? THANKS!!
0
votes
1 answer

Visual Studio Setup Project deletes just upgraded files

I'm working on an old Visual Studio 2008 project which had a setup project. I have upgraded everything to VS2019 made the changes in the code, increased the version, added a few files and made the setup. A clean install is working perfectly. When I…
0
votes
1 answer

Visual Studio Setup Project - Retrieving a string from a TextBox Dialog

I am trying to get a value from one of the text box dialogs in Visual Studio Setup Project into a custom action installer class. It seems that it doesn't like it when someone enters a string with a space in it. If a user enters a string with no…
0
votes
0 answers

How to prevent a MSI major upgrade executing an old version of a custom action

I have a bunch of MSI installers written using Visual Studio 2015 setup projects, deploying assemblies targeting .NET 4.6.1 AnyCPU. They all implement major upgrade behaviour using the RemoveExistingProducts action, which is sequenced immediately…
Christian Hayter
  • 30,581
  • 6
  • 72
  • 99
0
votes
0 answers

MSI created by visual studio setup project unable to run exe from installed location

How i can execute exe after installation from installed location. Currently it is unable to execute exe from installed location.I have used custom action as well but it is unable to execute exe.
0
votes
1 answer

How to check .Net Core version in launch condition of Visual studio setup project

I am trying to make an installer on Visual studio for my C# project that is dependent on .Net Core 2.1. I know I need to look in file directory "C:\Program Files\dotnet\host\fxr" to check if the .NET core is installed or not. but is there a way we…
0
votes
2 answers

Custom Action - Only uninstall if installed

I have a Windows Installer project attached to my solution, which allows the user to optionally install two components of the application (they are Windows Services) using a "Checkboxes" dialogue box which I've added to the User Interface, and then…
0
votes
1 answer

Can't Add Full Control to Settings File

I have a C# application which stores it's settings in ProgramData subfolder such as C:\ProgramData\Manufacturer\Product\Version\Settings.xml I noticed that the application can't save settings changes, getting a permission denied error. My…
0
votes
1 answer

VS Setup Project - RemovePreviousVersion with changed install folder

I would've expected that setting RemovePreviousVersion = true in the setup project would cause the previous version to be removed regardless of if the new version is installed into a different target folder. Is this assumption wrong per se? I did…
Rev
  • 5,827
  • 4
  • 27
  • 51
0
votes
2 answers

Installer Project Custom Actions - Specify working directory

I have a custom action that runs as a Visual Studio Installer Projects deployment. Is it possible to specify the working directory of this custom action, relative to the installation directory? Edit To clarify I have an installer project that runs a…
komodosp
  • 3,316
  • 2
  • 30
  • 59
0
votes
1 answer

Generating Setup Project from visual studio community installer

I have generated visual studio installer from Microsoft visual studio community version. i want to ask is there any difference of installer generated from visual studio community version and visual studio enterprise version OR visual studio ultimate…
0
votes
1 answer

Visual Studio Installer Setup Project without UAC

Is it possible to set up a Visual Studio Installer - Setup project so that the generated Setup.msi can be installed without requiring administrator privileges, i.e. install the app for the local user only? All of my files are placed in the User's…
0
votes
2 answers

Deploy windows form change to client machine without installing it from scratch

I have a Windows Forms project that contains several forms. I have created an installer of the project (setup project) for my users. The problem is whenever I do some change in my form I need to rebuild my project and create a new installer (setup…
0
votes
1 answer

Check install drive format

I want to make sure that the drive I'm currently installing to is a certain format (e.g. NTFS, exFAT, FAT32, etc.). I was thinking there might be a condition I can check or something before installing. Since I can't check the install format with…
user10214010