Hello List! :) I have a quick question about the <IniFile> element.
The documentation for the Directory attribute says this: "Name of a property, the value of which is the full path of the folder containing the .ini file. Can be name of a directory in the Directory table, a property set by the AppSearch table, or any other property representing a full path." ...but the "any other property representing a full path" part doesn't seem to hold true. I've tried it using custom properties set using a Type 51 custom action, and I've tried it using system folder properties such as [WindowsFolder] and [ProgramFilesFolder], but both generate the same light error (e.g. "Unresolved reference to symbol 'Directory:WindowsFolder' in section 'Fragment:'"). It will work if I add a <Directory> element for the folder property, but from the Windows Installer documentation it seems it should work for properties too. For example, if I use this: <IniFile Id="INIRemove" Action="removeLine" Directory="ProgramFilesFolder" Name="abc.ini" Section="MySection" Key="RemoveThis"/> ...it will only work if there is a corresponding entry like this: <Directory Id="ProgramFilesFolder" Name="ProgramFilesFolder"> According to the docs, though, it should work even without that directory entry. Am I missing something, or is this a bug? (Is light just forgetting to look in the property table after it can't find the identifier in the directory table?) Interestingly, light.exe already seems to deal with square brackets just fine -- for example I tried using MYPROPERTY and [MYPROPERTY] and both produced the same error message, with the brackets removed, so it seems to be parsing the identifier correctly, it just isn't doing enough with that information. :) - Lorne Laliberte ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users