Executable Registration - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Heffer
Posts: 5
Joined: Sun Nov 28, 2010 1:46 pm

Executable Registration

Hello,

I need to register a (ActiveX) executable (*.exe). When i am using the "Auto register file"- option under "Files and Folders"
i get the error-message "The selected file could not be registered".

However, when I manually register the file (*.exe /regserver) it works.

Advanced Installer 8.0.1 under Windows 7

Best Regards
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Executable Registration

Hi,

The built-in registration option from the File and Folders page sometimes fail. I'm afraid we cannot determine the exact reason.

A workaround for you is presented by my colleague in the following forum post.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Heffer
Posts: 5
Joined: Sun Nov 28, 2010 1:46 pm

Re: Executable Registration

Hello Bogdan,

i try the "Custom Action" / Install / "New Custom Action" feature with regsvr32.exe to register a dll.

The msi-package fails with the error 0x80020009 from DllRegisterServer. This means unsufficend user rights.
When i put the register-command in a batch-file, i get the same error message. But when i run the batch file
"as Administrator" it works.

The msi-package runs under the normal user rights and can autoregister many dlls. I am using Windows 7 !

Best regards
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Executable Registration

Hi,

The solution is to set the custom action "Deferred with no impersonation". This will make it run with full admin rights under the SYSTEM account.

Please note that only custom actions scheduled between "InstallValidate" and "InstallFinalize" can use this setting.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”