Arno
Posts: 16
Joined: Mon Sep 17, 2007 9:19 am

Search for INI files

Cosmin,

I'm now using an ini-file that will be installed in the application folder, which contains additional information for the product we install. This is done to make version checks more convenient as well as uninstalls.

Now I would like to add a search to my setup that is supposed to load some path from this inifile if it exists. Now I found out that inifiles can only be searched if they reside in the Windows folder. Now I really don't want to polute that folder and would prefer the inifile to just stay in the application folder.

Is it possible in any way to remove this limitation from INI file searches? It would be wonderful if I could just search for the inifile in the application folder using property substitution ( [APPDIR]\MyIni.ini ).

Thanks for considering,
Arno
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Search for INI files

Hi Arno,
Is it possible in any way to remove this limitation from INI file searches?
Unfortunately this is a Windows Installer limitation and it cannot be removed. You can read more about this in the IniLocator table article in the MSDN. A workaround would be to use a custom action which parses the INI file and sets installer properties.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bjk68
Posts: 55
Joined: Tue Dec 01, 2009 12:45 pm

Re: Search for INI files

cosmin wrote:A workaround would be to use a custom action which parses the INI file and sets installer properties.
Is there anybody who has already built such a custom action, because I need it too.
Noah
Posts: 4
Joined: Fri May 14, 2010 6:42 pm

Re: Search for INI files

I am going to write one. Ping me if you still need it.

Return to “Feature Requests”