Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > "Could not find file 'C:\Program Files\ . . .\MyService.InstallState.'"
 

"Could not find file 'C:\Program Files\ . . .\MyService.InstallState.'"

I am trying to upgrade a service and am getting the following error. "Could not find file 'C:\Program Files\ . . .\MyService.InstallState.'". The custom action is in C#. Any help would be greatly appreciated.
TFS Build Engineer
CMKris  Wednesday, June 24, 2009 9:46 PM
One of the reasons you get this is when you haven't added the service installer class custom actions to *all* the custom action nodes: Install, Uninstall. Commit, Rollback.
Phil Wilson
PhilWilson  Thursday, June 25, 2009 12:03 AM

The custom action is applied to all nodes.


TFS Build Engineer
CMKris  Thursday, June 25, 2009 4:23 PM
It's an upgrade - I should clarify that it might be the old install that is looking for this, so the question is whether the custom action was applied to all nodes in the original install. The upgradeincludes an uninstall of the old product, and that may be looking for the installstate file.
Phil Wilson
PhilWilson  Thursday, June 25, 2009 7:59 PM
Yes, the old installer was applied to all nodes in the original install and always has.
TFS Build Engineer
CMKris  Thursday, June 25, 2009 9:20 PM

You can use google to search for other answers

Custom Search

More Threads

• setup MSIs are too small - missing assemblies?
• EnableVisualStyles() within NTD app
• error in rdlc in production machine
• Obtaining Installer Platform from Installer Class
• silent install ClickOnce Application
• How to create installation package
• Database setup using MSI
• Multiple download of the same assembly
• How I can use the bar code in my VB2005.net Project
• Create a program that doesn't use .NET