Hi,
I'm afraid you cannot use a .Net Class Installer Action as you need to set public properties from your custom action, for this you can
use a Win32 DLL.
For locating the source file of the service you can use the options from Search page. The result of the search is stored in its name, which is actually a public property, so you can easily get it
in the Win32 DLL. After you parse the obtained path and you obtain the desired install path all you need to do is to set the property "APPDIR" to this path.
Please note that the custom action should be scheduled before the standard action "CostFinalize" from InstallExecuteSequence. Any changes of the install path after this standard action will be ignored
by the installation process.
Regards,
Bogdan
FOLLOW US
Get the latest news in Application Packaging