Hi All,
 
I am working on Wix DTF. Generated a C# dll that gets the name of all
the folders available in a parent folder and sends the result to a Wix
CA Property.
I am getting the following error
I am getting this error during installation. 

Error 1723. There is a problem with this Windows Installer package. A
DLL required for this install to complete could not be run. Contact your
support personnel or package vendor. Action LanguagesCA, entry:
SampleCSharpMethod, library: C:\WINDOWS\Installer\MSI7.tmp 


Please let me know how I should access a C# dll from Wix. 

<Property Id="FOLDERLIST"></Property>
<CustomAction Id="LanguagesCA" BinaryKey="Languages"
DllEntry="SampleCSharpMethod"/>

<Custom Action="LanguagesCA" Before="InstallFinalize"></Custom>

<Binary Id="Languages"
SourceFile="$(sys.SOURCEFILEDIR)..\WIXInstaller\Language.dll" />

------------------------------------------------------------------------
------------------------------------------------------------------------
--------------------------

[CustomAction]

public static ActionResult SampleCSharpMethod(Session session)

{

string[] folders = System.IO.Directory.GetDirectories(@"Languages\");

StringBuilder folderList = new StringBuilder();

foreach (string folder in folders)

{

string[] split = folder.Split('\\');

folderList.Append(split[1] + ";");

}

session["FOLDERLIST"] = folderList.ToString();

return ActionResult.Success;

}

Thanks and Regards,

Surekha Vuchuru

-------------------------------------------------------------------------
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

Reply via email to