Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

MSI - custom Action

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jaisabari - 05 Jan 2006 11:32 GMT
How to call .net DLL function in MSI.
What are the tables that required entries for calling the function from .dll

Signature

Regards
Jaisabari

Phil Wilson - 05 Jan 2006 16:48 GMT
In a setup project, all you need is an Installer class custom action in the
Dll and VS will do the rest. But you're talking about tables, and that makes
me think you mean MSI tables that you want to edit to do the call. The short
answer is that you can't really do that because you cannot call a .NET Dll
directly. VS adds a shim, InstallUtilLib.Dll, that gets called, then that
uses reflection to instantiate your Installer class methods. There's a lot
going on in there.
The easiest way to call a .NET Dll is to write a .NET executable, call it as
a custom action passing any parameters in the command line, then have that
exe call the .NET assembly.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> How to call .net DLL function in MSI.
> What are the tables that required entries for calling the function from
> .dll

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.