setup-project

How to include version number in VS Setup Project output filename

ぐ巨炮叔叔 提交于 2019-11-27 05:33:06
问题 Is there a way to include the version number as part of the output.msi filename in a VS2008 Setup Project? I'd like for example an output file called: "myinstaller-1.0.13.msi" where the version part is automatically set based on the version number I have put in the deployment project properties. 回答1: Not sure whether you still require this or not but wanted answer this as we did similar kind of operation in the postbuild event. As far as the research I did this is not possible to set the file

Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL

痴心易碎 提交于 2019-11-27 03:43:48
I've created a .NET assembly for COM interop and it is working well on my development machine. I'm currently trying to figure out how to deploy the DLL to a target machine using Visual Studio's "Setup Project." How can I use the VIsual Studio setup project to do the following things: Register the assembly (currently using regasm ). The assembly needs to be registered successfully and the type library (.tlb) needs to be registered successfully . This answer suggests scrapping regasm in favor of custom code. I this is a good idea? If so, how does this code get included in the setup project? This

Why do I get “An error occurred while validating. HRESULT = '80004005'” when building a setup project?

。_饼干妹妹 提交于 2019-11-27 02:06:36
问题 Why do I get the following error when building a setup project? An error occurred while validating. HRESULT = '80004005' 回答1: One project in solution had ToolsVersion="4.0" (in .csproj file), changed it to ToolsVersion="3.5" and setup project builds fine. 回答2: Both of the reasons I found are already in other answers, but they are in separate answers and not fully explained. So, hopefully this will combine the possibilities and give good means of debugging each. :) Common Reason My problem was

How to add Licence agreement in the setup project

回眸只為那壹抹淺笑 提交于 2019-11-27 01:54:07
问题 I wish to add licence agreement to my setup files (using setup project) If user does not accept it, setup should be cancelled. Please advise how to do it. Thanks and best regards, Furqan 回答1: You can easily add a "License Agreement" dialog to a setup project created in Visual Studio. To do this, follow these steps: With your setup project open in Visual Studio, right-click on the project in the Solution Explorer, point to "View", and click "User Interface". Right-click on the "Start" group,

Visual Studio Setup Project conditional if File Exists

五迷三道 提交于 2019-11-26 20:57:09
问题 I have a Setup/Deployment Project for my Application and it outputs certain files (*.dll, *.dat) to the Application Folder. I would like a condition to be set to check if a file currently exists or not. If it doesn't, write it but if it does, don't install it from the package. Is it possible? The file is called "database.dat" and under the Properties, I see a "Condition" attribute, but I'm not familiar with what to put in there. Any input is greatly appreciated. Thanks in advance. Edit:

Will Web Deployment Projects still be available in Visual Studio 2012?

会有一股神秘感。 提交于 2019-11-26 20:34:15
问题 It looks like Visual Studio 2012 will not include Visual Studio Setup and Deployment Projects according to MSDN, so I'm currently learning WiX. Will this loss of functionality extend to Web Deployment Projects? 回答1: Web Deployment Projects will NOT be available in VS2012. Instead we will focus on bringing first class publishing support for Website projects. You can read more details at http://blogs.msdn.com/b/webdev/archive/2012/08/06/plans-regarding-website-projects-and-web-deployment

Prerequisites button disabled - MSI installer

拥有回忆 提交于 2019-11-26 18:38:23
问题 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 回答1: 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

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

旧街凉风 提交于 2019-11-26 15:08:39
问题 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

How to install a windows service programmatically in C#?

落花浮王杯 提交于 2019-11-26 12:01:14
I have 3 projects in my VS solution. One of them is a Web app, the second one is a Windows Service and the last one a Setup project for my Web app. What I want is by the end of the installation of the web app in my setup project, within my custom action to try and install my windows service given that I have the location of the assembly by then. I found several errors in the code that you reused and have fixed these and also cleaned it up a little. Again, the original code is taken from here . public static class ServiceInstaller { private const int STANDARD_RIGHTS_REQUIRED = 0xF0000; private

How to install a windows service programmatically in C#?

馋奶兔 提交于 2019-11-26 02:40:56
问题 I have 3 projects in my VS solution. One of them is a Web app, the second one is a Windows Service and the last one a Setup project for my Web app. What I want is by the end of the installation of the web app in my setup project, within my custom action to try and install my windows service given that I have the location of the assembly by then. 回答1: I found several errors in the code that you reused and have fixed these and also cleaned it up a little. Again, the original code is taken from