PDA

View Full Version : checking/preserving .ini values during upgrade



sunderfil
02-20-2009, 07:57 AM
I apologize for what is undoubtedly a newbie question. I have a project that is only now being switched to an MSI install and as such I'm still getting a grasp on both Windows Installer and MSI Factory.

I need to be able to preserve the contents of a .ini file located in the INSTALLDIR while upgrading the project. But beyond just preserving the lines of the file, I need to convert some whose formatting has changed over the years.

I know you can search .ini files located in the Windows directory, but is there a way to check other directories as well?

Any advice or push in the right direction is greatly appreciated.

Thanks!

jassing
02-26-2009, 03:20 PM
You can use File.Find() (LUA) to search for your ini files whereever you want.