all groups > dotnet setup > may 2006 >
You're in the

dotnet setup

group:

Strange Custom Action Behavior


Strange Custom Action Behavior dln
5/1/2006 11:37:07 AM
dotnet setup:
I'm running into a problem with my custom action and, being a complete newb
when it comes to creating and using custom actions, I was hoping someone
could help me out with it. Basically I have VS.Net 2005 Deployment Project
created that uses a "Commit" custom action. The custom action is in the
form of a .Net Installer assembly which defines a class that inherits from
System.Configuration.Install.Installer and the class has overridden the
"Commit" method.

When I first created this assembly, I added a single line in the Commit
method that displayed a message box that said "here", just to indicate that
I was in the method. So I've gone ahead and removed the message box line of
code and added some code that does some real work but when I rebuild my
Deployment Project, the custom action is still using the assembly in its
original form - it just displays that one message box that says "here", even
though that line of code was removed.

So, I'm stumped; it doesn't appear as though the assembly is being updated
with the latest and greatest build when I build my Deployment Project. How
do I force my Deployment Project to update the installer assembly - it seems
to me that it should do this automatically, but maybe I'm missing something?

Thanks,

dln

Re: Strange Custom Action Behavior dln
5/1/2006 12:22:07 PM
Found the problem - I had an old copy of the assembly kicking around from an
install that didn't get cleaned up. Thanks anyway.

[quoted text, click to view]

AddThis Social Bookmark Button