An embedded UI handler cannot call custom actions directly. The Session object 
you get in the IEmbeddedUI.Initialize() handler is only a limited session which 
lets you get/set properties and not much else (there's no database either). The 
limitations are imposed by MSI's embedded UI design, not DTF. But I'm afraid 
MSI embedded UI is not very well-documented on MSDN.

-Jason-

-----Original Message-----
From: Cristian Gherghinescu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 14, 2008 5:43 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Please help with: 'session.Database.CodePage' threw an 
exception of type 'Microsoft.Deployment.WindowsInstaller.InvalidHandleException'

Hi,

I'm trying the Embedded UI and I get an
Microsoft.Deployment.WindowsInstaller.InvalidHandleException.


I added a dll in the Binary table and tried to read it in the class
that implements IEmbeddedUI :

  object result = session.Database.ExecuteScalar("select Data from
Binary where Name = '{0}'", "CustomDialogs");

and I get an Microsoft.Deployment.WindowsInstaller.InvalidHandleException.
>From what I saw in the debugger, this exception appears in
Database.CodePage. Looking in the source file for DTF it goes to
Database.Export(string table, string exportFilePath) . It seams that
the Handle is closed.


The same happends if I try to call a custom action from the class that
implements IEmbeddedUI :

session.DoAction("MyCustomAction"); // throws InvalidHandleException


Did anyone encounterd this exception also ?

Thanks,
Cristian

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

Reply via email to