Yes, my project references Microsoft.Deployment.WindowsInstaller and I configured a postbuild script like this:
"C:\Program Files\Windows Installer XML v3\SDK\MakeSfxCA.exe" $(TargetDir)$(TargetName)Package.dll "C:\Program Files\Windows Installer XML v3\SDK\x86\SfxCA.dll" $(TargetDir)$(TargetFileName) $(ProjectDir)CustomAction.config "C:\Program Files\Windows Installer XML v3\SDK\Microsoft.Deployment.WindowsInstaller.dll" $(TargetDir)AccountHelperLib.dll (with AccountHelperLib.dll being a classlibrary, my CA depends on). As I said, the CA itself works like a charm. It retrieves and sets MSI properties and is able to return with the appropriate ActionResults. The only thing that doesn't work is popping up a dialog... Mit freundlichen Grüßen / Kind regards Christian Jacob Consultant ------------------------ TOP TECHNOLOGIES CONSULTING GmbH Buchenweg 11-13, 25479 Ellerau, Germany Fon: +49 (4106) 7777-220 Fax: +49 (4106) 7777-333 Mobil: +49 (172) 4217719 E-Mail: cja...@toptechnologies.de Internet: http://www.toptechnologies.de Amtsgericht Kiel, HRB 4026 NM Geschäftsführer: Michael Hannemann, Andreas Lübbers, Klaus Timm -----Ursprüngliche Nachricht----- Von: Christopher Painter [mailto:chr...@deploymentengineering.com] Gesendet: Dienstag, 16. Dezember 2008 21:40 An: General discussion for Windows Installer XML toolset. Betreff: 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