[WiX-users] Searching text files
I have a global property that I'd like to initialize to a value found within a line of text, in a text file. This file is close to an ini-file format, except that it doesn't have section headers, so I'm not sure that I can use IniFileSearch (the compiler keeps complaining about a null or missing section header). Also, are there any methods to parse/split strings? I have a line such as: naming.provider.url=xxx://127.0.0.1:1099 , where I want to be able to retrieve the text 127.0.0.1. - 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
Re: [WiX-users] Searching text files
Craig Ward wrote: I have a global property that I'd like to initialize to a value found within a line of text, in a text file. This file is close to an ini-file format, except that it doesn't have section headers, so I'm not sure that I can use IniFileSearch (the compiler keeps complaining about a null or missing section header). If it's not .ini format, IniFileSearch won't work. The underlying functionality requires section names. You'd need a custom action. Also, are there any methods to parse/split strings? No, there's nothing like that built in to MSI. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Searching text files
Not only that, but IniLocator/AppSearch can only search INI files in the WindowsFolder directory. It's about the most useless pattern I've ever seen. What Windows Installer really needs is a built in XmlLocator and RegExLocator patterns. I guess the chances of that are slim to none however... Bob Arnson [EMAIL PROTECTED] wrote: Craig Ward wrote: I have a global property that I'd like to initialize to a value found within a line of text, in a text file. This file is close to an ini-file format, except that it doesn't have section headers, so I'm not sure that I can use IniFileSearch (the compiler keeps complaining about a null or missing section header). If it's not .ini format, IniFileSearch won't work. The underlying functionality requires section names. You'd need a custom action. Also, are there any methods to parse/split strings? No, there's nothing like that built in to MSI. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users