Slow Managed Custom Action Loading #9131
Unanswered
claybrooks
asked this question in
Questions
Replies: 1 comment 1 reply
-
Probably need to put a debugger on it. Or maybe you have a gazillion files included with the custom action and it's taking a long time to extract them all? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm seeing times upwards of 30 seconds to load a managed custom action. To keep it simple, my CA prints a timestamp as soon as it's executed and then returns Failure.
I've reproduced this on wix v4, v5, and v6.
I have logs from another installer I used to maintain and verified the managed CA execution time was only a couple seconds, so I know it's possible for loading times to be fast.
Any ideas on what to look out for that may cause this long delay in loading? I was thinking it may be environmental, like AV, but I would have expected the same issue on other installers I've maintained.
Here are the logs from the msi that is slow to load a managed CA:
MSI (c) (0C:1C) [11:32:04:259]: Doing action: CA.TestFail
MSI (c) (0C:1C) [11:32:04:259]: Note: 1: 2205 2: 3: ActionText
Action 11:32:04: CA.TestFail.
Action start 11:32:04: CA.TestFail.
MSI (c) (0C:84) [11:32:04:263]: Invoking remote custom action. DLL: C:\Users...\AppData\Local\Temp\MSI1806.tmp, Entrypoint: TestFail
MSI (c) (0C:80) [11:32:04:264]: Cloaking enabled.
MSI (c) (0C:80) [11:32:04:264]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (0C:80) [11:32:04:264]: Connected to service for CA interface.
SFXCA: Extracting custom action to temporary directory: C:\Users...\AppData\Local\Temp\MSI1806.tmp-
SFXCA: Binding to CLR version v4.0.30319
Calling custom action Pi.CustomActions!PostgresDialogActions.TestFail
11:32:45: CA Invoked!
CustomAction CA.TestFail returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 11:32:45: CA.TestFail. Return value 3.
Beta Was this translation helpful? Give feedback.
All reactions