I need create a merge module. The component target directory of a merge module is changed dynamically in the DLL. DLL uses the MsiSetTargetPath(hInstall, "MyPath", "d:\hello") function. I’ve created the CA 1 (call function in a DLL) in the merge module. Then I’ve inserted this module to my installation projects and inserted the CA from the module after the InstallValidate action. But it doesn’t work. Nothing was installed.
But if I call the function of the DLL from installation project (no merge module) it works fine; of course I created the appropriate component in installation.
How can I call the DLL’s function from a merge module to change the target folder?
Can somebody help me, please?
Thanks in advance,