Error 1721 typically means that the program couldn't start for some reason. This is not really about the type of custom action or what's supported because Windows did try to start it. When you say none of them work, does that mean they all return error 1721?
When a program runs and fails in this context the most likely reasons are 1) that the program failed or 2) is returning a non-zero exit code and your custom action is configured to treat that as an error. Running a program from a cmd window is not the same as running it from Windows Installer, and the differences are usually related to whether it's running impersonated (the user's default registry hive is not loaded), running as the system account and doing something inappropriate, and other general issues like making file paths relative ("myfile.txt") instead of full ("C:\Program Files\Whatever\myfile.txt"). When a program fails to start (the most likely reason for 1721) the issue is often dependencies that are not available. With managed code that could be as simple as a missing framework or a missing dependent assembly that's expected to be in the GAC. Managed C++ might be missing C runtime support. The articles I've seen about vsdbcmnd indicate it has quite a list of dependencies, including a bunch of SQL Dlls. Phil Wilson -----Original Message----- From: ajay [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 10:57 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Invoking managed console application as Custom Action I have tried few approaches (Binary Key, File Key & then type 50). None of them seem to work. I haven't seen any samples of managed (.NET) console app being invoked thru CA. Hence request from this group to confirm if windows installer even supports this feature or not? -Thanks. Ajay cemiles wrote: > > Are you installing the console app w/ your package? Why not try a type 18 > w/ filekey/@execommand. > > Would that work in your case? > > On Thu, Oct 30, 2008 at 6:53 PM, ajay <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> I have managed console application which I am trying to invoke from >> custom >> action within WIX file (CA type 50). It always fails with Error 1721. I >> can >> run the the generated command (with args) from cmd window. >> >> Does Windows Installer even supports calling managed cmd line apps from >> CA? >> What are the alternatives? >> >> The managed app I am trying to invoke is vsdbcmd (cmd line tool that >> ships >> with VSTS DBPro and can be used to deploy/schema-compare databases). >> >> Thanks. >> Ajay >> >> -- >> View this message in context: >> http://n2.nabble.com/Invoking-managed-console-application-as-Custom-Action-tp1400828p1400828.html >> Sent from the wix-users mailing list archive at Nabble.com. >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> WiX-users mailing list >> WiX-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wix-users >> > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://n2.nabble.com/Invoking-managed-console-application-as-Custom-Action-tp1400828p1437939.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users