I'm not sure if you can do this in vbscript, you can definitely do what you are asking in c++.
On Thu, Jul 31, 2008 at 12:18 PM, Zane Zeeh <[EMAIL PROTECTED]> wrote: > Ok, so by custom action do you mean one that would call a vb script to > retrieve these values and set the properties or is there some other sort of > CA that I can use? > > Thank you for responding > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Dana Gutride > Sent: Thursday, July 31, 2008 11:52 AM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] RegistrySearch on a REG_MULTI_SZ > > Looks like retrieving a reg_multi_sz using the RegLocator table during > AppSearch is not a great way of doing this. Plenty of places on the web > document this oddity. I think you might just want to use a custom action > instead of a registry search to retrieve this value and write it to a > property. > > dana > > On Thu, Jul 31, 2008 at 11:02 AM, Zane Zeeh <[EMAIL PROTECTED]> wrote: > > > I'm trying to get the default SQL Server Instance using the following: > > <Property Id="SQL_INS" <RegistrySearch Id="SQL_INS_SRC" > > Root="HKLM"Key="SOFTWARE\Microsoft\Microsoft SQL Server" > > Name="InstalledInstances" Type="raw"/></Property> > > This SHOULD return one or more values in the format > > ~InstanceName1~InstanceName2~InstanceName3. Mine however returns nothing, > > even though there is a value there. If I use this same Property against a > > string registry value it returns the single text string without a > problem. > > I'd like to be able to return the first value from this mutli string > > registry entry. How do I do that? > > Thanks, > > Zane > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users