Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

To get directory where the MSI is placed

0 views
Skip to first unread message

Hitz

unread,
May 8, 2008, 8:30:52 AM5/8/08
to
I am creating a MSI in Visual Studio 2003 and in that the custom
actions are carried out by dll. The function in the dll which is the
entry point contains the Handle to the MSI.To extract the folder where
the MSI is placed i had used SourceDir property and before that i i
had called "ResolveSource" property. But when I am retriving the value
of SourceDir i am getting ERROR_INVALID_HANDLE error. So can any one
guide me for this.

Phil Wilson

unread,
May 8, 2008, 12:45:34 PM5/8/08
to
You might be better off using the OriginalDatabase property. This kind of
thing is tricky. I'm guessing that you want to get hold of some other files
in the same place as the MSI for some reason, but you need to be careful
that you conditon things right. If an uninstall demanded the CD image
because of your ResolveSource that would be rather unfriendly.
--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972


"Hitz" <hitesh_i...@yahoo.co.in> wrote in message
news:838a1156-5daa-4b23...@q27g2000prf.googlegroups.com...

0 new messages