Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > what is the used of .InstallState
 

what is the used of .InstallState

I created a custom action for my setup project. The customer action worked fine.
Now I get a file called myprogram.InstallState. Why do I get this file? I don't need it.
I don't like to create unecessary stuff.
Arne G  Tuesday, September 29, 2009 9:12 PM
It's because you used an Installer class. It's used to save state. I don't know what you did in your installer class custom action, but you don't need to use installer classes - there are other types of custom action.
Phil Wilson
PhilWilson  Tuesday, September 29, 2009 11:42 PM
It's because you used an Installer class. It's used to save state. I don't know what you did in your installer class custom action, but you don't need to use installer classes - there are other types of custom action.
Phil Wilson
PhilWilson  Tuesday, September 29, 2009 11:42 PM
Thanks for the answer.
I created a data directory for my log files in a custom action. Where can I learn more about other types of custom actions?
Arne G  Monday, October 05, 2009 2:01 PM
I'm not sure exactly - this seems to be another of the areas that's documented in the Windows Installer documentation, but not described much in Visual Studio.
Basically you can run a program (and pass it command line arguments), call a vbscript, and call a C++ Dll. This might help:

http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ 


Phil Wilson
PhilWilson  Monday, October 05, 2009 9:23 PM

You can use google to search for other answers

Custom Search

More Threads

• I believe that my custom service installation is being called multiple times
• CustomAction code doesn't execute
• Problem building Setup project for Windows Service
• Deploying the application
• ClickOnce installation error
• Help regarding MSI file creation
• datadirectory and vb .net
• Clickonce and windows 2000
• Problem & questions with clickonce
• VS2005 - Deployment project including unwanted primary output dependencies