Click here to Skip to main content
15,889,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a C# text editor application which used to run okay but i tried changing the dotnet framework required by this application(dotnet3.5) to a lower version(dotnet2.0) and now the application shows this problem Error 1001. Could not find file 'C\Windows\Temp\keylayout.InstallState just before installation ends. when i click on the ok button of this error message, the installation goes to rollback action. Could this be unintended typing into a the code of a class or something about custom action because i tried to used custom actions to run a dotnet3.5 bootstrapper(from Microsoft) during installation. Please any kind of help is welcomed. Thank you.
Posted

I would do this:

0) Do a Clean, Build All on the solution. If that doesn't fix it...

1) Deleting your setup project, and recreate it.
 
Share this answer
 
Comments
smilerP 9-Jun-11 11:45am    
Thank you for the response. The cleaning option didn't work so i deleted the setup project and created a new one but the problem still persist. Please, Any other ideas for me to try?
The problem is that the MSI is looking for the installation state file which is usually created during the Install phase. I believe you are not doing anything in the Install phase instead need the required files in the commit or later stage, so no file is created.

The solution is to add the custom action to both the Install and the other required later stages where you are performing operation like in Commit phase, although it does nothing during the install phase.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900