visual-studio-setup-proje

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

In-use files not updated by MSI-installer (Visual Studio Installer project)

巧了我就是萌 提交于 2019-11-26 11:42:34
问题 I\'m using the Visual Studio Installer Projects extension to build the MSI-installer for my application. However, my application is meant to be running at all times, and if it\'s open when the user is installing a new version of my software, the open files are not overwritten, and very little to nothing is actually updated (although there are no installer-errors). I\'ve found that using the installer project\'s \"Custom Actions\" to run a script that closes the application doesn\'t help, as

Additional Setup in Visual Studio Installer Projects

╄→гoц情女王★ 提交于 2019-11-26 10:03:11
问题 I am trying to create an installation for my project. I am using MS Access DataBase and for it to work Access DataBase Engine is required. If i download that engine https://www.microsoft.com/en-us/download/details.aspx?id=54920 from here and install it, program works. How can i add that installation to my installation? I am using Visual Studio 2015, C# and OLEDb. 回答1: Short Version : In essence you will need a deployment tool . List view of major deployment tools. Maybe that list view is the

Adding Custom prerequsites to visual studio setup project

强颜欢笑 提交于 2019-11-26 03:28:35
问题 I have a setup project that I need to install a redistributable that is not available in the default prerequisite list. Is it possible to add this redistributable to the bootstrapper that the setup project creates? 回答1: I figured out how to add Custom Prerequisites to the Visual Studio prerequisites dialog box. MSDN as a good article on creating the prerequisite. Basically you just have to create a product manifest and a package manifest, copy them along with your distributable file to :

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