cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
bruce_bussiere
Flexera beginner

Logging.InstallLog and Logging.InstallState

I used InstallShield 2019 to create an .exe installer that contains some Microsoft.Practices.EnterpriseLibrary assemblies (.dll)  and writes them out to a file server.  Works fine when I run it from my Windows 7 machine. During testing, when others in my group run it, it also works fine EXCEPT is creates and writes an .InstallLog and .InstallState file to the same location for each of Microsoft assembly. That does not happen when run from my machine. Since this installer is destined for a client, we don't want those two generated files on their server. My question is - why are these files being created when the installer is run on other machines and not mine. Is there a way to suppress the creation of these two files?

Labels (1)
0 Kudos
2 Replies
Flexera banna_k
Flexera

Re: Logging.InstallLog and Logging.InstallState

Hi @bruce_bussiere ,

 

Looks like, these files are created from your installer class assemblies. And need to be handled in your installer class. 

Some related information:

https://social.msdn.microsoft.com/Forums/windows/en-US/c28a9a1c-cb1d-44ce-abd8-d5942091608d/installs...

https://stackoverflow.com/questions/44486485/self-installing-windows-service-leave-install-logs-behi...

 

 

bruce_bussiere
Flexera beginner

Re: Logging.InstallLog and Logging.InstallState

Thank you for your reply. You are correct, they are created by the installer, just not all of the time. Seems to depend upon the setup of the server upon which the installer is run. This being an installer created using InstallShield, I have no access to the 'built in' InstallShield code (that I'm aware of anyway).  If I had created my own installer using C# code then those links you posted would have been helpful. Anyway, I did come up with a rather simple solution to my problem. Within InstallShield, there is an option to create post install functions.  I created one which checked for those files and deleted them if they existed. All good now!

0 Kudos