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

Unable to locate "Installer Class" option for Visual Studio 2022 (Windows Installer) off "Add Item" templates

I have a Visual Studio 2022 instance (version 17.6.5) with the Microsoft Visual Studio Installer Projects package (version 2.0) installed on a Windows Server 2022 virtual machine. I'd like to generate a Custom Action containing a custom deployment…
0
votes
0 answers

How to set the custom Microsoft visual studio projects MSI to open it without admin power

I want to know if there some options to set the MSI file without admin power. When I open the msi file in non-admin user, it always need admin power. How can I set it to open the msi file without the admin power? Based on my search, I find the…
Jack J Jun
  • 5,633
  • 1
  • 9
  • 27
0
votes
0 answers

CefSharp MSI Installer Project - Unrecoverable build error - 0x8007000B

I have project WinForms with .net core 3.1 and I am using in this project CefSharp.WinForms (version 89.0.170). I upgraded to newest version: CefSharp.Common.NETCore" Version="111.2.20" CefSharp.WinForms.NETCore" Version="111.2.20" When I build app…
0
votes
0 answers

How to properly refresh packaged dlls for MSI with VS Setup/Installer Project after Nuget update?

I have updated nuget packages but the Setup project in my solution is not updating. I rebuild everything and then if I do the file difference between bin/release project and folder output folder (results after installing the MSI), the files are…
Daniel
  • 1,064
  • 2
  • 13
  • 30
0
votes
1 answer

Visual Studio Setup Project shortcut has missing functionality compared to manually creating shortcut

I am working on making a very simple console app for tech-illiterate people to simply drag their files onto it, and it does the rest for them. When I made the program and tested this with the exe file itself, this worked fine. The program took the…
0
votes
1 answer

Is there a way to display the previous version of application's version ID before installation begin

I am creating the *.msi installer package using the Visual Studio "Set up" project using VS 2022. I have a particular requirement to identify the previous version of the installed application's "version ID" (which is present in the registry) before…
0
votes
1 answer

VB.NET Copying Database template files to selected folder location during installation

net project as well as a setup project. I also have it so that during installation it asks the users to enter a file location to store their database. the plan is to have an empty .mdf file, with all the tables setup, copied into that folder and I…
0
votes
1 answer

C# - Get version of Setup project msi/exe file

I'm trying to get the version from MSI/exe files. Pic I tried both exe and msi file but it returns as null. var versionInfo = FileVersionInfo.GetVersionInfo(@"path\setup.exe"); string version = versionInfo.FileVersion; I tried write…
Dan D
  • 11
  • 1
0
votes
1 answer

Visual Studio 2022 Setup Project changes timestamp of all files

I recently moved from VS 2019 to VS 2022 and installed setup project extension for VS 2022 version: https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2022InstallerProjects The problem is that when I install…
Jim Balo
  • 639
  • 6
  • 22
0
votes
1 answer

VS Setup Project: Process.Start does not open up URLs when ran from within Installer class, but is executed OK from standalone application

I stumbled upon a problem with which I need some help! When a process is executed from within a Windows application that runs directly, the call to Process.Start opens up the webpage to the default browser. But when the same Windows application is…
0
votes
0 answers

Visual Studio - Web Browser Project not displaying webpage when installed on computer

Thank you for taking a look. So in Visual Studio I built a Web Browser. When I use the Debugger, my Browser works and display's all web pages. However, when I build a Setup Exe for the project and install it on my local machine, the browser does not…
0
votes
1 answer

Prevent automatic adding of dependencies in visual studio installer projects

I am currently working on a project, which is using the wix installer but now we want to migrate to the "visual studio installer projects" .msi installer. The problem is that the vs installer is adding all the dependencies automatically, even though…
0
votes
0 answers

How to make Visual Studio Installer remove file during installation?

I already had trouble finding out where appSettings get stored when the app is installed in program files directory. Now the next thing is finding out how to make the app installer update that location too. Because obviously, Microsoft Windows…
Dejan Dozet
  • 948
  • 10
  • 26
0
votes
1 answer

MSI Installer: Conditionally include one or another file for 32 or 64-bit systems

I'm using Visual Studio Setup Project to create installer for my application. One of the files needs to included or excluded depending upon whether the target machine is 32 or 64-bit. The setup project does have a property named TargetPlatform. Can…
0
votes
1 answer

Visual Studio Setup Project: Failed to execute script after installing app and opening it

So I finished an app, made an .exe, and the original .exe works, but when I try to install the app, the .exe and shortcuts to the .exe don't work. I get this error message: Failed to execute script (app name) Is there a solution to this or should I…