Determine path of installation
How do i get the path specified by the user during the installation of the solution?
I believe the path information is stored in Windows installer directory database under TARGETDIR. Now how do i access this TARGETDIR property?
Is there any APIs for access?
Re: Determine path of installation
hey
where you want to get that property???inside any DLL???
then you can use the function:
UINT variable = MsiGetProperty (MSIHANDLE, TEXT("CustomActionData"), your buffer, DWORD cchValueBuf);
dont forget to add [TARGETDIR] in the setup program's corresponding DLL's ->properties->CustomActionData