Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Custom Action needs a dll to run
 

Custom Action needs a dll to run

I did a custom action that run a sql script, like "Alter table ...", following this tutorial (but i did in C# language)
However, the Database is PostgreSQL and I'm using Npgsql provider.
In the CustomAction Project, I added the reference to Npgsql.dll.

Nevertheless, when I run the setup.exe, it gives me an error saying the Npgsql.dll could not be found, and the installation fails.

How can I fix this problem?
Get a life. Go party!
JobaDiniz  Wednesday, September 02, 2009 7:48 PM
Adding a reference to a Dll in your C# custom action project may not mean it's deployedby your setup project. Can you see it in your setup project as a dependency that is installed?IsNpgsql.dll a COM Dll requiring COM registration?

Phil Wilson
PhilWilson  Thursday, September 03, 2009 6:49 PM
The Npgsql.dll is in "Detected Dependencies" on Setup Project.

I don't know if it is a COM dll or not, but I do know that it does not need registration.
Get a life. Go party!
JobaDiniz  Thursday, September 03, 2009 6:55 PM

You can use google to search for other answers

Custom Search

More Threads

• Multiple File copy to Web Server
• Running My EXE The Second and Subsequent Times Displays An Installer Popup
• Problems with .Net 2.0 application
• ClickOnce install not starting with beta 2
• click once? or maybe not
• Clickonce app keeps asking to install .Net 3.5
• Cannot install a new click once version.
• Can I prevent app from running if can't get update?
• Signtool can't timestamp through ISA Server
• Clickonce and windows 2000