ckoch
Posts: 13
Joined: Thu Sep 04, 2014 12:46 am

Custom Action Dll FolderBrowserDialog

I have created a custom action to run a c# dll. I have one function working so I understand the concept of how to make it work. I added a new function to open a form with a FolderBrowserDialog. I have tested the dll independent of the installer and the dialog works perfectly.

But when I run it from the custom action in the installer, when the form loads and the user clicks the button to open the FolderBrowserDialog, the form hangs. The dialog never opens. There is a windows application log that talks about a security for the user. I am logged into the Windows Server 2012 machine as Administrator. I have tried running the installer as administrator. It only hangs when launched from the installer. The option to run under the localsystem account with full privileges is grayed out in professional. Is this the possible issue, since the dll works fine when not run from the installer?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Custom Action Dll FolderBrowserDialog

Hello,

Can you please move your custom action after "Install Execution Stage -> Preparing" actions group, enable the "When the system is being modified (deferred)" and "Run under the LocalSystem account with full privileges (no impersonation)" options and try again your installation scenario?

Please keep in mind that custom actions before "InstallInitialize" (Preparing actions group) and after "InstallFinalize" (Finish Execution actions group) can not be deferred and they must be Immediate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”