setup-project

Prevent uninstall in setup project with OnBeforeUninstall

本小妞迷上赌 提交于 2019-12-06 03:44:37
I overrode OnBeforeUninstall to stop my application's setup project from uninstalling it under certain circumstances, but it seems like it is just not being called and has no effect. protected override void OnBeforeUninstall(IDictionary savedState) { if (ApplicationIsBusy()) throw new ApplicationException("Prevent uninstall while application busy."); } I am able to cancel uninstall by overriding the Uninstall method, but by then the setup project has already closed my application. How do I "fail" an uninstall attempt when my application is busy before the setup project tries to close it when

Setup Project is adding built in .NET Framework .System assemblies to output

依然范特西╮ 提交于 2019-12-06 02:57:46
问题 I'm using VS Community 2015, with Setup Project extension. I've never seen this problem working with 2010. The problem is that when I add a project to the output, the Detected Dependencies list all dll's I've used in the project, including the built in ones: After I run the installer, it then proceeds to install a hundred dll files, including files that should be part of .NET Framework, like: System.IO.dll System.Linq.dll I made sure that: I have all my projects set to .NET 4.5.2 inside Setup

Will a VS2008 setup project update Net 3.5 SP1?

独自空忆成欢 提交于 2019-12-06 02:48:06
I just started using the WPF WebBrowser that is included in Net 3.5 SP1. I built my setup project (which I have been using prior to moving to 3.5 SP1) and installed it on a test machine but the WebBrowser was not available. What must I do to be sure that the setup.exe/msi combination checks for and installs SP1? Jason Stevenson Open the properties of the Setup Project, then click on the Prerequesites button. Then check the prerequisites to install. Then you can define how the user gets the pre-reqs. Here is a link to framework version information and an excerpt from Scott Hanselman's blog:

FileNotFoundException in Visual Studio Setup and Deployment Project when trying to load custom config

偶尔善良 提交于 2019-12-06 01:56:11
I'm trying to call a custom action within my Setup & Deployment project to update some items within the app.config on my app. I've wrapped up the custom config section in the usual way, e.g.: [ConfigurationProperty("serviceProvider", IsRequired = true)] public string ServiceProvider { get { return (string)base["serviceProvider"]; } set { base["dataProviderFactory"] = value; } } I've set the custom action to be called during the Install section of installation just after base.Install(stateSaver). The code is: string exePath = string.Format("{0} MyApp.exe", Context.Parameters["DP_TargetDir"]);

Lost in the Visual Studio maze?

吃可爱长大的小学妹 提交于 2019-12-06 00:11:29
Where can I find the ARPCOMMENTS through the Visual Studio GUI in a .NET solution with a setup project? The value of ARPCOMMENTS shows up when "Click here for support information." is clicked in Control Panel "Add or Remove Programs". I have changed it once, but I forgot where it is. From: Setup project - Deployment project properties - using [ProductVersion] inside Description property The Description property of the setup project stands for the MSI standard property ARPCOMMENTS. If we set the value of the Description property of a setup project, an item will be added to the Properties table

Visual Studio 2010 update registry in setup application

杀马特。学长 韩版系。学妹 提交于 2019-12-05 19:44:37
I've recently created an application for my brother to use, it has several entries stored in the registry that it uses. I created a Setup Application in VS2010 so he can install the application to his PC with ease and set the entries to some default values for him, which he has changed. e.g. I have a entry called "SummaryFolder" and the value of "Successfully Installed" - so when it was installed it would have the default value. He will have changed this by now to an actual folder on his PC. Now I've just made a change to the program and added a couple more registry entries, modified the setup

Deploying a desktop application with SQL Server Express

折月煮酒 提交于 2019-12-05 12:30:18
I have developed a C# 4.0 desktop application that uses a SQL Server Express 2005 database. I have built a Setup and Deployment (msi) package that installs the application and all it's depenedencies, including the mdb database file, into a working folder under the Program Files directory. The connection string is like this: Server=.\SQLExpress;AttachDbFilename=|DataDirectory|MyDB.mdf;Database=MyDB;integrated security=true;user instance=true; The first time a database call is made, the database gets connected to the local SQL Server Express instance. The installer works as expected on XP

How to set “Run as administrator” flag on shortcut created by MSI installer

萝らか妹 提交于 2019-12-05 06:15:20
问题 I have a Setup and Deployment project in Visual Studio 2010. I would like the installer to create two shortcuts to the executable of another project in my solution. One normal shortcut that simply runs the application using current credentials and another which has the Run as administrator flag set, thereby ensuring that the user is asked for credentials with administrative rights when clicking the shortcut. Running the application with administrative rights enables certain features that are

VS Setup Project: Uninstall other component on install

我的梦境 提交于 2019-12-05 06:02:51
I am creating a Visual Studio Setup project. I want to un-install another component from the system from the install of my component. The other component is installed from my own setup created using Visual Studio. Currently when I am calling the un-install of the other component from the install action of the component I get the error code: 1618 (another MSI already running) . Could anyone suggest me an alternative way to solve this problem? If you don't need to actually run the uninstall of the other component, you could use a Custom Action to remove files/folders you intend to replace. Using

How to add custom prerequisites to VS 2010 Setup projects

浪尽此生 提交于 2019-12-04 19:50:44
I have an application that needs to use Crystal Report Basic. I understand, I can add this as prerequisite and if it's not already installed on Target machine, it will be downloaded and installed. I can't seem to find similar option on VS 2010 or maybe I forgot. You can add Prequisities called Bootstrapper Manifest packs to your VS2010 using a very good tool which is Bootstrapper Manifest Generator. here is a good tutorial how to build custom prerequisities , then you add them into Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages folder (v7.0A case windows 7 or 2008) Hope it helps 来源: https: