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

Warning: The application will end up running as a high privilege account, which has security and user experience implications. To run any application after the installation is complete, Right-click on your setup project, click on Custom Actions. Then right-click on Commit, Add Custom Action, and choose the file you would like to run. (Note that … Read more

How to run a “.bat” file during installation?

Well, after much searching and trial and error I have solved this. I’m not sure if this is the best way, but it works. Here’s the scenario: I have an application I would like to deploy via a Visual Studio Setup project. In addition to my application files, I would like to create a subdirectory … Read more

How to install a windows service programmatically in C#?

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 const int SERVICE_WIN32_OWN_PROCESS = 0x00000010; [StructLayout(LayoutKind.Sequential)] private class SERVICE_STATUS { public int dwServiceType = … Read more