Hi together,

Thank you, now it works! I did the following things:

=> Install the newest WiX Toolset (3.5.2215.0)
=> Remove and recreate the visual studio WiX Custom Action project
=> Setting up the configuration file of the CustomAction.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0" />
        <!--<supportedRuntime version="v2.0.50727"/>-->
    </startup>
</configuration>

=> Test the msi setup and then checking the log (msiexec /i package.msi /l*v 
install.log):
MSI (s) (14:D4) [11:20:14:620]: Doing action: SetOperationMode
Aktion 11:20:14: SetOperationMode. Schalte Dienst in den Betriebsmodus
Aktion gestartet um 11:20:14: SetOperationMode.
MSI (s) (14:D4) [11:20:14:635]: Transforming table CustomAction.

MSI (s) (14:18) [11:20:14:667]: Invoking remote custom action. DLL: 
C:\WINDOWS\Installer\MSI79F.tmp, Entrypoint: SetOperationMode
SFXCA: Extracting custom action to temporary directory: 
C:\WINDOWS\Installer\MSI79F.tmp-\
SFXCA: Binding to CLR version v4.0.30319
Calling custom action XXXX!XXXX.Api.WiX.CustomActions.SetOperationMode
Starting SetOperationMode Action ...
End SetOperationMode Action.
Aktion beendet um 11:20:16: SetOperationMode. Rückgabewert 1.

=> Finished, everything works!

Supposition:
------------
I think the cause was, that I had an older WiX Toolst version installed before. 
And then I have probably spoiled the visual studio project file, while I was 
trying a lot.


If you like I upload my faulty visual studio project for you?
Thanks again

Thomas Mathis

BICA AG
Retail Solution Company
Buzibachstrasse 45
CH-6023 Rothenburg
Internet        www.WHATaPOS.com / www.lantzerath-group.com

-----Ursprüngliche Nachricht-----
Von: Blair [mailto:os...@live.com] 
Gesendet: Dienstag, 19. Oktober 2010 22:44
An: 'Windows Installer XML toolset developer mailing list'
Betreff: Re: [WiX-devs] [ wix-Bugs-3019443 ] .NET Custom Action fails onFW 4.0

This looks like a usage question, but to answer the question the logging does 
not show up when the custom action is called from a DoAction in the UI (due to 
the infamous limitation on custom actions called from DoAction successfully 
using the MsiProcessMessage API). To get logging, the custom action must be 
called from the sequence table.
[http://msdn.microsoft.com/library/aa368322.aspx]

There does not appear to be a way I have discovered to acquire a Session object 
from a DLL custom action (it seems to only be available from script custom 
actions).

-----Original Message-----
From: Ryan [mailto:rgrim...@gmail.com]
Sent: Tuesday, October 19, 2010 9:20 AM
To: wix-devs@lists.sourceforge.net
Subject: Re: [WiX-devs] [ wix-Bugs-3019443 ] .NET Custom Action fails on FW 4.0

<?remove some-text?>

I am unable to get the level of logging you posted.  Can you explain how you 
got this log?

Ryan
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/wix-Bugs-30194
43-NET-Custom-Action-fails-on-FW-4-0-tp5642116p5651372.html
Sent from the wix-devs mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and 
Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run 
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to