September 2008 Entries

Way to execute a command upon Windows Service Installation
Today I needed to create some logic to execute database objects install script, although only once, upon a windows service installation. I recalled that I have already done in the past the auto-startup of a windows service using the Installer class, so I thought why not to just add some logic. Step #1: I scripted the needed database objects into a file called Create_usp_MyStoredProcedur... Step #2: I added this file to my VS2005 project, set its Build Action to content and then added it into the ......

Posted On Tuesday, September 23, 2008 1:35 PM | Comments (0)