|
-
April 8th, 2003, 10:44 PM
#1
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?
-
April 9th, 2003, 02:47 AM
#2
Well...where do you need this path? From inside your application? In this case you can just get the application path itself by using 'GetModuleFileName()' as described in this FAQ, assuming that you are Windows...
-
September 19th, 2008, 12:19 AM
#3
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
Last edited by L.Tony; September 19th, 2008 at 12:21 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|