Yes, I am using DTF. I only discovered DTF yesterday so I'm a bit green. How
do you have DTF pack the DLL?

-----Original Message-----
From: Christopher Painter [mailto:chr...@deploymentengineering.com] 
Sent: Tuesday, December 16, 2008 1:40 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Problem with Custom Action

Are you using DTF?   ( I certainly hope so since it's the only way to fly
when writing managed CA's )

If so, you could just have DTF pack the DLL into your custom action and
resolve your reference that way.   Your MSI will be a little bit bigger but
shouldn't really hurt anything.



--- On Tue, 12/16/08, Steve Oliver <ste...@one-slip.com> wrote:

> From: Steve Oliver <ste...@one-slip.com>
> Subject: [WiX-users] Problem with Custom Action
> To: wix-users@lists.sourceforge.net
> Date: Tuesday, December 16, 2008, 1:45 PM
> I am writing a couple of managed custom actions. In the
> first action I need
> to access an assembly that is installed to the GAC via a
> merge file as part
> of the install. The problem is that the assembly does not
> seem to be
> available until the installer has completed.
> 
>  
> 
>     <InstallExecuteSequence>
> 
>       <Custom Action="CAConfigureTecSecEnv"
> After="InstallFinalize">Not
> REMOVE</Custom>
> 
>       <Custom Action="CAConfigureStorage"
> After="InstallFiles">Not
> REMOVE</Custom>
> 
>     </InstallExecuteSequence>
> 
>  
> 
> Before the method in the custom action executes I get the
> error, "Could not
> load file or assembly.". After the install completes I
> can see that the
> assembly has been successfully installed but can't
> access while the
> installer is running. 
> 
>  
> 
> In the second action I'm trying to read a configuration
> file that is
> installed as part of the installation and modify it and
> write it back to the
> install directory. I locate the file using.
> 
>  
> 
>    string pathAppConfig =
> Path.Combine(session.GetTargetPath("INSTALLDIR"),
> Util.Constants.APP_CONFIG);
> 
>  
> 
> which gives the path I'm expecting to see. The same
> kind of problem occurs
> as in the first. I get a "File not found." error.
> I've made the assumption
> that sequencing the action to run After InstallFiles means
> that all files
> have been installed to the target directory  and are
> available. It looks
> like that is not the case. So my question is this,
> 
>  
> 
> When do files and/or assemblies that are being installed
> become available to
> be used in a custom action?  
> 
>  
> 
> Thanks for the assistance.
> 
>  
> 
> Steve
> 
>    
> 
>
----------------------------------------------------------------------------
--
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in
> Las Vegas, Nevada.
> The future of the web can't happen without you.  Join
> us at MIX09 to help
> pave the way to the Next Web now. Learn more and register
> at
>
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


      

----------------------------------------------------------------------------
--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to