Windows Service Deployment
-
I have just finished a windows service app in C#. To deploy, I have created an installer project in VS (2003). For the service registrations, I have added the assembly as a custom action for both the commit and uninstall phases. The installer seemes to run correctly - until the very end. Then I get the following error message :confused:: Could not find file "C:\Program Files\play47\SMTP Server\SMTPServer.InstallState Now, this file DOESN'T exist - but I assume that it should be getting created by the service installer. Any ideas? This is critical and I really need to deploy it today - if you have any idea it would be greatly appreciated! Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989
-
I have just finished a windows service app in C#. To deploy, I have created an installer project in VS (2003). For the service registrations, I have added the assembly as a custom action for both the commit and uninstall phases. The installer seemes to run correctly - until the very end. Then I get the following error message :confused:: Could not find file "C:\Program Files\play47\SMTP Server\SMTPServer.InstallState Now, this file DOESN'T exist - but I assume that it should be getting created by the service installer. Any ideas? This is critical and I really need to deploy it today - if you have any idea it would be greatly appreciated! Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript) tatham@e-oddie.com +61 414 275 989
-
Tatham wrote: if you have any idea it would be greatly appreciated No idea sorry, but I'm sure you have learnt a valuable lesson, to plan these things in the design phase. :) leppie::AllocCPArticle("Zee blog");
I ended up finding the problem. After removing the performance counter object from the installer it worked - of course the counter doesn't work but at least it deployed. Does anyone have any ideas on why this would crash the installer - do i need to ship some form of basic install state file - if so what is the format? BTW leppie - i did deploy it in time. ;P