I have a product that needs to install to multiple drives and directories, some of which can be customized. So I'm looking at how directories are changed at run-time in an InstallShield Basic MSI project. I see that the DestinationFolder
and InstallChangeFolder
dialogs work together to change the INSTALLDIR
directory using a SetTargetPath
event on the OK
button press of InstallChangeFolder
.
What I don't understand is why there is only one parameter to SetTagetPath
. The MsiSetTargetPath
function takes 2 parameters in addition to the installation handle, so I don't understand why the SetTargetPath
event only takes 1. I want to set a specified directory variable to refer to the specified directory. That requires two parameters. How are they getting by with just one parameter?
I have read the documentation on SetTargetPath
3 times and it still doesn't make sense.