Search found 6 matches

Go to advanced search

by matthewshorten
Thu Apr 18, 2024 5:04 pm
Forum: Building Installers
Topic: Wrong version of "Call Method from .Net Assembly" CA executed during upgrade
Replies: 1
Views: 1052
 
Jump to post

Wrong version of "Call Method from .Net Assembly" CA executed during upgrade

Hello I'm struggling with the upgrade of a product that uses several "Call Method from .Net Assembly" Custom Actions in both the install phase and the uninstall phase. The methods called are in assemblies that are copied to the target folder during install. All works perfectly when product...
by matthewshorten
Wed Feb 14, 2024 12:12 pm
Forum: Sample Projects
Topic: Handle .NET assembly custom action built to target Any CPU architecture of .Net Runtime
Replies: 2
Views: 43949
 
Jump to post

Re: Handle .NET assembly custom action built to target Any CPU architecture of .Net Runtime

Note: it is possible on an x64 platform to find both the .NET x86 Runtime and the .NET x64 Runtime installed. So I'd recommend that the conditions attached to each version of your custom action be as follows: CallDotNetMethod_x86: ( NET7_X86 ) AND ( NOT NET7_x64 ) CallDotNetMethod_x64: NET7_x64 Othe...
by matthewshorten
Wed Feb 14, 2024 10:46 am
Forum: Building Installers
Topic: "Call method from .NET assembly" CAs on 32/64 bit platform
Replies: 3
Views: 13982
 
Jump to post

Re: "Call method from .NET assembly" CAs on 32/64 bit platform

Daniel Thanks for the response and the linked article which makes it clear. May I suggest an enhancement to AI's "Call method from .Net Assembly" wrapper? It could execute the the registry search you've described, decide for me which .Net runtimes are available and use the appropriate one....
by matthewshorten
Fri Feb 09, 2024 6:13 pm
Forum: Building Installers
Topic: "Call method from .NET assembly" CAs on 32/64 bit platform
Replies: 3
Views: 13982
 
Jump to post

"Call method from .NET assembly" CAs on 32/64 bit platform

I have an AI project that calls 11 custom actions on install, and 5 on uninstall. All of these CAs are "Call method from .NET assembly". All assemblies are compiled for "AnyCPU" so can work with whichever .NET Runtime (i.e. 32 or 64bit) is installed on the target computer. Howeve...
by matthewshorten
Thu Jan 18, 2024 4:54 pm
Forum: Building Installers
Topic: How to trigger rollback of an install from within a .Net Custom Action
Replies: 3
Views: 14234
 
Jump to post

Re: How to trigger rollback of an install from within a .Net Custom Action

Hello Catalin - great to be here! The deferred custom action is coded to trap any exceptions and, if this happens, it returns value ERROR_INSTALL_FAILURE (aka 1603) to Windows Installer to tell it that something went wrong. So far, so good. But then ... Windows Installer then pops up a warning messa...
by matthewshorten
Wed Jan 17, 2024 3:34 pm
Forum: Building Installers
Topic: How to trigger rollback of an install from within a .Net Custom Action
Replies: 3
Views: 14234
 
Jump to post

How to trigger rollback of an install from within a .Net Custom Action

What is the best practice to trigger rollback of an install from within a .Net Custom Action? I have tried using the CA's return value, setting it to 1603 (ERROR_INSTALL_FAILURE). But this triggers a message box to appear saying "Error 2869. The dialog ErrorDlg has the error style bit set, but ...

Go to advanced search