According to the docs IniFile/@Directory "or any other property representing a full path." So you should be able to simply set a property in your custom action.
Neil -----Original Message----- From: Michael Scheepers [mailto:mscheep...@tool-links.de] Sent: 05 June 2012 08:23 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] String manipulation I try to explain. I want to change a third party ini file, which is located some where on the users machine and I like to use IniFile. The Directory attribute of the IniFile element must not be only a path as plain text string, but it requires the Id of a Directory element specified by a Directory tag or by a DirectorySearch. The only way to get the Directory in that case is a DirectorySearch. Unfortunally that 3rd party app doesn't store it's installpath to the registry but only an exec command with parameters. Is there a way to create "the result" of a directory search from inside of a custom action, so that IniFile Directory attribute can handle the path? Regards, Michel Am 04.06.2012 23:09, schrieb Rob Mensching: > Note: Compiler/Binder Extensions run at build time, not at install time. > I'm confused which you are attempting to do. > > On Mon, Jun 4, 2012 at 2:41 AM, Michael Scheepers > <mscheep...@tool-links.de>wrote: > >> Hi Bob, >> >> thanks for reply. >> >> What I discovered seems to meet, what you are writing. I can't >> interrupt AppSearch with a custom action. >> >> Thats the point where I started thinking about a WixExtension. >> >> What I like to do is some kind of (imagine all xx are valid values): >> <Property Id='REGISTRY_SEARCH_RESULT'> >> <RegistrySearch Id='xx' Root='xx' Key='xx' Type'raw'/> >> </Property> >> >> <Property Id='DIRECTORY_SEARCH_RESULT'> >> <DirectorySearch Id='xx' AssingToProperty='yes' >> Path='$(manipulate([REGISTRY_SEARCH_RESULT])'/> >> </Property> >> >> So that the path provided for the directory search is adjusted in the >> maipulate function of an extension. I have to do this, because I'll >> get 'Some/Path/To/Executable.exe -param' from the registry search but >> I only need the part 'Some/Path/To' in the directory search. >> >> Is there a way to do this at all? >> >> Regards, Michel >> >> Am 03.06.2012 19:13, schrieb Bob Arnson: >>> On 01-Jun-12 10:09, Michael Scheepers wrote: >>>> Now I think a small extension is what I need, but I am not sure if >>>> the extension is packaged to the msi or is only used at compile >>>> time (when calling candle / light) or also at runtime when it is required. >>> It can be both but nothing will allow you to add behavior to >>> built-in MSI functionality. You can't interrupt AppSearch with a custom >>> action. >>> >> >> >> --------------------------------------------------------------------- >> --------- >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. >> Discussions will include endpoint security, mobile security and the >> latest in malware threats. >> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> > > > -- Michael Scheepers Grüner Weg 46 41468 Neuss Tel.: +49 (2131) 133 48 30 Fax: +49 (2131) 133 48 32 Mobil: +49 (173) 318 320 5 eMail: mscheep...@tool-links.de Der Inhalt dieser Email, inklusive seiner Anhaenge, ist vertraulich und ausschließlich für den bezeichneten Empfaenger bestimmt. Wenn Sie nicht der vorgesehene Empfaenger dieser Email oder dessen Vertreter sind, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe unzulaessig ist. Wir bitten Sie in diesem Fall, sich mit dem Absender dieser Email in Verbindung zu setzen. This e-mail is intended exclusively for the individual or entity to which it is addressed and may contain confidential or legally privileged information, which may not be disclosed under current legislation. Any form of disclosure, copying or distribution of this e-mail is strictly prohibited. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users