Hello All, I am creating an installer to install extensions to a service. The extensions are just assemblies and related files that are dropped in the same directory as the service executable. The service installation does not create any registry settings to indicate where the service is installed.
Given that, I am retrieving the path to the service executable by inspecting the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vsttagent And the value ImagePath Like this: <!-- Get the installation location for Visual Studio Team System Load Agent --> <Property Id='LOADAGENTSERVICEEXECUTABLE' Value=' '> <RegistrySearch Id='VstsLoagAgentInstallDir' Root='HKLM' Key='SYSTEM\CurrentControlSet\Services\vsttagent' Name='ImagePath' Type='file'/> </Property> Now, I need to compute the parent directory of the file path retrieved as the value of the property LOADAGENTSERVICEEXECUTABLE. Is there a specific way to do this? Directory search won't work because I would have to search from the root for all drives, which doesn't seem particularly efficient. Thanks, Vijai. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users