I'm not using DllImportAttribute.

I'm referencing Microsoft.SqlServer.ConnectionInfo.dll, which is not
packaged together with makesfxca.exe. It is the first time I hear about
makesfxca.exe. How should I use it?

And it still seems to me very confusing that if I just undo my changes
(which were just adding new custom action) all works perfectly well!

Best regards,
Natalia Gladkova 
-----Original Message-----
From: Heath Stewart [mailto:clubs...@gmail.com] 
Sent: Friday, April 10, 2009 6:43 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Error 1723. A DLL required for this install
tocomplete could not be run. C#

Are you using P/Invoke (DllImportAttribute) for any custom actions? If the
referenced DLL is not available in the system PATH environment variable you
will see this. This is common for native debug builds, but for managed CAs
you shouldn't see this unless you're referencing an assembly that you're not
packaging together with makesfxca.exe. And if you're not using
makesfxca.exe, that's likely the problem. Unless managed assemblies are
available in the GAC at install time, the Windows Installer service cannot
access them.

On Fri, Apr 10, 2009 at 6:10 AM, Natalia
<natalia.gladk...@arcadia.spb.ru>wrote:

>
> I know that using custom actions written in C# is not a very good idea,
but
> it happened we are using it in our project.
>
> I experience very exasperating problem with my dll. SOMETIMES, when I add
> new custom action to my cs-file, some custom action that worked good
> previously starts to return the error mentioned in the title: "A DLL
> required for this install to complete could not be run". Installer cannot
> find entry point.
>
> I suspected that there's something wrong with encoding, tried to open my
> cs-file in various editors, remove spaces between "[CustomAction]" and the
> function's definition... Sometimes it helped in miraculous way. But now I
> can do nothing about this, my custom action doesn't work.
>
> Maybe someone experienced the same thing and knows some way to fix it?
>
> I use Microsoft Visual Studio 2008 with Votive, WiX 3.0.5120.0.
> --
> View this message in context:
>
http://n2.nabble.com/Error-1723.-A-DLL-required-for-this-install-to-complete
-could-not-be-run.-C--tp2616125p2616125.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
>
>
>
----------------------------------------------------------------------------
--
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>



-- 
Heath Stewart
Deployment Technologies Team, Microsoft
http://blogs.msdn.com/heaths
----------------------------------------------------------------------------
--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to