Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Platformsdk MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 03-15-2010, 06:55 PM   #1 (permalink)
Pariksheet
Guest
 
Posts: n/a
Default Calling Dll function from Custom Action

Hi All,

I am using MSI for installing my application.
I have created a custom action dll and added custom actions from it.
I want to call some functions of dll present in binary table from custom
actions.
Is it possible to do it? How can I achieve this?

If any one have idea about it, then please tell me.
Waiting for your reply.

Thanks & Regards,
Pariksheet.
  Reply With Quote
Old 03-15-2010, 06:55 PM   #2 (permalink)
Wilson, Phil
Guest
 
Posts: n/a
Default Re: Calling Dll function from Custom Action

There are APIs to extract data from binary tables, from which you can create
the Dll. I can only find this right now:

http://makemsi-manual.dennisbareis.c...stall_time.htm

which is VBScript, but there are equivalent Win32 calls.

Alternatively you could just install those Dlls to [TempFolder]. When your
custom action runs (if it's deferred and after files are installed) you
could do LoadLibrary of the Dlls in the temp folder and call functions. If
they have null ComponentIDs in theitr Components you can remove them later
without fear of restoring them from a repair.
--
Phil Wilson
The Definitive Guide to Windows Installer
http://www.apress.com/book/view/1590592972

"Pariksheet" <Pariksheet@discussions.microsoft.com> wrote in message
news:FC6F6084-D4B6-4E85-A801-C7A75E02E855@microsoft.com...
> Hi All,
>
> I am using MSI for installing my application.
> I have created a custom action dll and added custom actions from it.
> I want to call some functions of dll present in binary table from custom
> actions.
> Is it possible to do it? How can I achieve this?
>
> If any one have idea about it, then please tell me.
> Waiting for your reply.
>
> Thanks & Regards,
> Pariksheet.


  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:27 PM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com