setup-project

Advertised shortcuts vs. non-advertised shortcuts in windows setup project

一笑奈何 提交于 2019-11-27 21:51:28
I cannot understand what is exact consequences of using attribute Advertise in Shortcut attribute. What is the diffirence? Advertised shortcuts are used by advertised features: when a feature is installed as advertised, it is only registered with Windows Installer; it's content is not actually copied on the machine when launching an advertised shortcut which targets something in this advertised feature, the feature content is finally copied on the machine So advertised features and shortcuts are a form of "advertising". Your package shows the user that it has a feature available and installs

How can I set application settings at install time (via installer class)

随声附和 提交于 2019-11-27 16:47:14
问题 I have a Visual Studio setup project that has an Installer class. In the installer class I set a setting as follows: MessageBox.Show(Properties.Settings.Default.MySetting); Properties.Settings.Default.MySetting = "Foo"; Properties.Settings.Default.Save(); MessageBox.Show(Properties.Settings.Default.MySetting); The problem is that even though I know that this code is being executed (I am doing other stuff), the setting is never set!! The message boxes do suggest that the value is being set,

Prerequisites button disabled - MSI installer

旧城冷巷雨未停 提交于 2019-11-27 16:27:49
I have created an .msi installer. I want to further add prerequisites (such as .Net) but when I go to Setup Project properties, the Prerequisites button is disabled. How do I enable it? Other details: I'm using VS 2015, SQL Server 2008 R2, .Net 4.5.2, C#, WinForms, Win 10 Pro x64 My setup project is in the same solution as the main project Prerequisities in Visual Studio Projects In Configuration at the top of the dialog, did you try to select either Release or Debug ? That should enable the Prerequisites... button. Unecessary, outdated prerequisites? One pet-peeve of mine : is it really

.net Setup Project: How to pass multiple CustomActionData fields

情到浓时终转凉″ 提交于 2019-11-27 16:22:33
问题 In a .net "Setup Project", it is possible to add one or more custom screens in the setup wizard, with fields (e.g. text boxes) where the user can enter additional installation parameters. A custom field can then be passed to a "Custom Action" class library project, to handle the user field. The image below shows how the property "ServerName" gets mapped to the EDITB1 text field: Within the Custom Action class, the property is accessed as follows: string serverName = Context.Parameters[

Specifying c:\ProgramData folder in Setup project?

不羁岁月 提交于 2019-11-27 13:40:23
问题 I am using a Windows Installer deployment project in VS 2010 to create an installer for a small demo project. The demo needs to install a SQL Compact database file (MyData.sdf). The demo can't install the database to the application folder on the user's machine--I get an "access denied" error if I do that. So, the logical place to install the database would seem to be a subfolder under the user's c:\ProgramData folder. How do I specify the c:\ProgramData folder in the deployment project's

Visual C++ 2010 Runtime Libraries prerequisite keeps popping up on a VS 2010 created installer

与世无争的帅哥 提交于 2019-11-27 11:16:02
问题 I created an installer with Visual Studio 2010 Version 10.0.40.219.1 SP1 Rel. My application is built/compiled for x86 and requires VC++ runtime libraries. Thus, the setup project is configured with VC++ runtime libraries as a prerequisite. Every time I run the installer I get the popup "The following components will be installed on your machine." "Visual C++ 2010 Runtime Libraries (x86)". The first time it gets installed asa expected. The second and subsequent times it asks me whether to

In a Visual Studio setup project, How do I generate an uninstall script?

眉间皱痕 提交于 2019-11-27 10:24:04
I have a Visual Studio setup project. Upon installation, it creates an uninstall batch file in the application folder. IF the user wants to uninstall the product, he can go to "Add/Remove Programs", or he can just double-click the uninstall.cmd. The contents are: %windir%\system32\msiexec /x {CC3EB7BF-DD82-48B9-8EC5-1B0B62B6D285} The GUID there is the ProductCode from the Setup Project in Visual Studio. But, in order for upgrades to work properly, I have to increment the Version number, every time I produce a new MSI. And, if I increment the Version number, then I also have to generate a new

VSTS Online Building Setup Projects?

那年仲夏 提交于 2019-11-27 07:47:23
问题 I have a .NET Console app with a setup project I am trying to port to VSTS Online (visualstudio.com) to make use of the source control and well as adding automated build/deploy. I've got the code uploaded just fine and it builds great, but am struggling with getting it to produce a MSI. I've tried introducing a command line task after the solution build to run devenv.com but I can't quite get that to work. Any thoughts on getting a setup project to build its MSI? Thanks! EDIT: Here's the

Setting correct icon for Shortcut in VS2010 Setup Project

回眸只為那壹抹淺笑 提交于 2019-11-27 06:37:40
问题 I have a small app with a setup project. If I create a shortcut to my Primary Output, then this gets a standard Win7 icon and not the icon specified in my exe's Application Icon? Whats the best way to make sure my desktop shortcut icon is the same icon as my exe? e.g. If I change the exe's icon then I'd like the Setup icon to change as well. 回答1: If you set the icon for the shortcut you can set a primary output as source. In the file system editor of the setup project, click on the "(Icon)"

Visual Studio Installer > How To Launch App at End of Installer

笑着哭i 提交于 2019-11-27 06:12:41
This is probably a stupid question and my Googling just is not functioning today. I have an application I added a Visual Studio Installer > Setup Wizard project to. I am wondering how to add a button or check box that would launch the application after successful install. This would be located on the last page of the MSI Installer Package. I am using Visual Studio 2010 Ultimate. I am needing this so that when the application does an automatic update, it auto launches the installer. I just need the installer to relaunch the app after the update. This is probably very simple but for the life of