marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Issue with AI 7.5.2 + .NET Custom Action Framework 4.0

Hi There,

I have an installer that has been working for years, but now after I recompiled all my assemblies (including a .net CustomAction) targeting Framework 4.0 it seems that i cannot run the custom action.
after the install goes through, i get the following message when it tries to run the custom actions:


"Thedialog ErrorDlg has the error style bit set, but is not an error dialog."

This is the event generated:

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="MsiInstaller" />
<EventID Qualifiers="0">10005</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2010-03-24T17:35:00.000Z" />
<EventRecordID>1517860</EventRecordID>
<Channel>Application</Channel>
<Computer>mymachine.mydomain.com</Computer>
<Security UserID="S-1-5-21-1814117857-657019746-1392588124-7200" />
</System>
- <EventData>
<Data>Product: My Product Name -- Error 2869. The dialog ErrorDlg has the error style bit set, but is not an error dialog.</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data>(NULL)</Data>
<Data />
<Data />
<Binary>7B33324239323035302D323546432D343843322D424345342D3533344135303041323738347D</Binary>
</EventData>
</Event>

I have tried (with no success) to add V2 framework compatibility by adding this entry on the custom action config file:

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>


Can anyone help me to get this working again?

Thanks!
Marcelo
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Issue with AI 7.5.2 + .NET Custom Action Framework 4.0

Hello,

Unfortunately we could not reproduce this behavior.
You can try setting your custom action to "Deferred with No Impersonation" and try again.
If you are still experiencing the issue, please send us an install log to support at advancedinstaller dot com so we can further investigate.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Re: Issue with AI 7.5.2 + .NET Custom Action Framework 4.0

Hi Gabriel,

I'm afraid i cannot do that, Under Execution Options the only option available is Immediate Execution. All other options are disabled (grayed out).

This CA is under InstallExecuteSequence->InstallFinalize, since i want it to run only after everything else has finished.

Any other ideas?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Issue with AI 7.5.2 + .NET Custom Action Framework 4.0

Hello,

I still suggest you try moving it before InstallFinalize so "with no impersonation" is enabled. Just to see if it fixes it.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Issue with AI 7.5.2 + .NET Custom Action Framework 4.0

Hello,

I received your email containing the install log.
However it indicates you still placed the .net custom action after Install Finalize.
Please place it before this step and run it with no impersonation as I suggested in my previous posts.

If you still encounter the issue, please send your .aip project file to support at advancedinstaller dot com so we can further investigate the issue.

Let me know how this worked.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”