[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

Strange Custom Action Behavior

DLN

5/1/2006 4:37:00 PM

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


1 Answer

DLN

5/1/2006 5:22:00 PM

0

Found the problem - I had an old copy of the assembly kicking around from an
install that didn't get cleaned up. Thanks anyway.

"dln" <dnadon_nospm@hotmail.com> wrote in message
news:u6Kc91TbGHA.488@TK2MSFTNGP04.phx.gbl...
> 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
>