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

Silent install msi applications with arguments using PowerShell

I am fairly new to powershell scripting. I need to silently install an msi file using PowerShell with dynamic property. I am able to edit the location where the file will be installed. Start-Process msiexec.exe -Wait -ArgumentList '/I…
0
votes
1 answer

Visual Studio Setup Project: Application Folder - Default Location

In a visual studio setup project, is there a way I can enumerate the logical drives on the target machine and set a path on a drive on which windows is not installed as the value of the property "DefaultLocation" for the Application Folder instead…
0
votes
1 answer

How to replace existing file when upgrading though the existing one is latest?

I use Visual Studio 2015 Setup Project to install my application which supports upgrade. I performed below tasks: 1) I copied test.xml file in program files location through installation 2) I modified test.xml today 3) I perform upgrade for the…
0
votes
1 answer

Set install directory for MSI installer with string manipulation

I'm creating an MSI installer for a program and want to allow people to upgrade their installation instead of always uninstalling/reinstalling. I've gotten most of it down, but now I want to automatically set the TARGETDIR (or install directory) to…
0
votes
1 answer

How to add registery key-value in Visual Stadio Setup Project to another program?

I have c# program that needed to be in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run To run at startup after installation. I use Visual Studio 2017 Setup Project but in it's Registry tab goes as far as…
0
votes
2 answers

VS2017 Installer Project - Cannot Make Uninstaller

I have been able to successfully install a simple program using an Installer Project on Visual Studio Community 2017. However, I can't find out how to create a fully working deployable uninstaller for an end user. The Installer Project was set up…
0
votes
2 answers

Adding an external CAB to an MSI with an internal one

I have a visual studio installer (vs2015) that installs an application. I want it to also install a set of configuration files, the contents of which vary by physical install location, that will be delivered as a cab file in the same directory as…
0
votes
1 answer

How to Create a visual studio Setup Project to install multiple Windows Services

I have 3 windows service with separate solutions. How can I install all the three with one visual studio Setup Project.
0
votes
1 answer

InstallerSetup.cs pass installation parameters in from1.cs

I have properly overwrite commit in InstallerSetup.cs I do not wish to write the user entered value to app.config but rather I want to pass the string Context.Parameters["TESTPARAMETER"]; to another class in form1.cs on load function. I tried string…
Pax
  • 65
  • 1
  • 4
  • 19
0
votes
1 answer

Recent detailed documentation for Visual Studio Setup Projects

Where is the documentation for the Visual Studio 2015 and 2017 Setup Project extensions? F1 searches inside Visual Studio take me to the docs for VS2010, e.g. this. The download page for the VS2015 extension doesn't have a link to any documentation…
0
votes
0 answers

Windows Installer [Visual studio 2015] suppresses all file and event log output

I want to launch a windows service immediately after installing it, so I created a launcher and added it as a custom action to the installer. However, it does not work. I can run the service manually, so I know other custom actions [register COM…
0
votes
0 answers

Deploy setup program with visual studio and create new instance of SQL Server Express

I want to execute the program that the SQL Server Express database needs to run in the system. I created setup with Visual Studio with prerequisites -> SQL Server Express. The problem I have is that if SQL Server is another version installed on the…
0
votes
1 answer

VS2017 Installer project output does not replace the current installation

I have a standard windows forms application that is being deployed using the VS2017 setup project. When opening the setup project using the "File System", I added to the application folder the following: Primary output from the win forms app. The…
0
votes
2 answers

Custom Actions Installer for Windows Service

I have a windows service which I silent install using msiexec.exe and I am passing the username and password for the "Set Service Login" The Service is successfully installing but upon Starting the service I am receiving "error 1069: The service did…
0
votes
1 answer

VS setup project - (re)set registry values with custom actions

during the installation of my program I want to set values in the registry under a specific key which already exists with a value I need to reset on uninstallation and also I need the old value in my program. I tried to solve this with custom…