[wix-users] how to call a c# custom action from a dll which is installed along with the product

MANO MANO mano.n.s75 at gmail.com
Mon Nov 16 09:12:38 PST 2015


dont get me wrong, i think you misunderstood my scenario, I don't have an
exe, i have  a c# dll that i needs to be deployed in the machine. There is
one CA i needed to execute from it and since this dll CA requires
supporting dlls i cant put this dll in the binary table and execute. Is is
possible, can you provide any sample code or any way to do it, it will be
much helpful.

On Mon, Nov 16, 2015 at 10:35 PM, Hoover, Jacob <Jacob.Hoover at greenheck.com>
wrote:

> You can run an exe at the end of your install, but if the exe is modifying
> machine state then you might want to reconsider.  If you are doing your
> changes outside of the InstallExecute sequence, or via custom actions, you
> risk breaking the transactional nature of a Windows Installer package.
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of MANO MANO
> Sent: Monday, November 16, 2015 10:40 AM
> To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
> Subject: Re: [wix-users] how to call a c# custom action from a dll which
> is installed along with the product
>
> my installer has this c# dll, the code require some supporting dlls to me
> present at the same location in order to work. I was trying to see how to
> do it. Obviously i have seen how to run an exe that is installed in the
> machine so i thought may be i can call a CA from a dll that was deployed by
> the product.
>
> On Mon, Nov 16, 2015 at 9:30 PM, Hoover, Jacob <Jacob.Hoover at greenheck.com
> >
> wrote:
>
> > It's not impossible to do, but it would be a challenge.  You would
> > have to create a custom app domain to be able to load an assembly from
> > an arbitrary location. It would also have to be setup to run very late
> > in the installation process, and it would be difficult to get it right
> > (as far as roolback/uninstall).
> >
> > Is there a reason you can't have a stand-alone CA assembly?
> >
> > -----Original Message-----
> > From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On
> > Behalf Of MANO MANO
> > Sent: Saturday, November 14, 2015 10:14 AM
> > To: wix-users at lists.wixtoolset.org
> > Subject: [wix-users] how to call a c# custom action from a dll which
> > is installed along with the product
> >
> > Hello,
> >
> > i am trying to call a c# function from a C# dll which is installed
> > along with the product. Can anyone help me in guiding me how to do it?
> > Everywhere i could see the dll is being referenced by adding it to the
> > binary table, but in my case i wanted to call the managed code custom
> > action from the dll which is deployed along with the product.
> >
> > thanks in advance
> >
> > --
> > *regards,*
> > *Mano*
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
> > ____________________________________________________________________
> > WiX Toolset Users Mailing List provided by FireGiant
> > http://www.firegiant.com/
> >
>
>
>
> --
> *regards,*
> *Mano*
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>



-- 
*regards,*
*Mano*


More information about the wix-users mailing list