Hi,

I am sorry to botter you but I have a question concerning wix.

I want to call a DLL 

I created a wxs file containing the following lines 

<InstallExecuteSequence>
<Custom Action="MyCustomAction" Sequence="1" />
</InstallExecuteSequence>
<Binary Id="MyCustomAction.dll" SourceFile="C:\Developpement\wix
tutorial\InstallationTarget\CustomAction1\bin\Debug\CustomAction1.CA.dll
" />
<CustomAction Id="MyCustomAction" BinaryKey="MyCustomAction.dll"
DllEntry="CustomAction1" Execute="deferred" />


and I have my C# class as the following


using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Deployment.WindowsInstaller;
using System.Windows.Forms;

namespace CustomAction1
{
public class CustomActions
{
[CustomAction]
public static ActionResult CustomAction1(Session session)
{
session.Log("Begin CustomAction1");

System.Windows.Forms.MessageBox.Show("Passe dans customAction1");

return ActionResult.Success;
}
}
}


but it wont show my message box when I execute the msi. Could you please
tell me what is wrong in my way of doing things.
Help will be appreciated.
Tanks in advance 

Joanne Paul

-------------------------------------------------------------------------
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-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to