Register exe file - Advanced Installer Community
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Register exe file

Hello,

How to auto register exe in AI?

Regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Register exe file

Hello Swati,

In the Registration Tab from the file properties you can set the registration options for the related file.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Register exe file

Hello

It works fine with dll.
But if I try to register vb6.0 exe, it gives error 'The selected file could not be register'

Regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Register exe file

Hi Swati,

Can you please tell us if the related file needs to be registered?
Can you register it outside the installation package from command line e.g. using regsvr32.exe?

Best regards.
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Register exe file

Hello

Yes, I want my vb6.0 exe to be register. It works with regsvr32.exe.
I am giving my application to third party users, and we can not tell them to manually register the exe.
That is why I want my application to auto register dll and exe's.

It means there is no other way to register exe automatically!!!

Regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Register exe file

Hi Swati,

I'm not sure why the support for registering the .EXE is not working. In order to further investigate this, please send us the .AIP (project file) and the related file that cannot be registered to support at advancedinstaller dot com. If it contains confidential information you can send us a small test project which reproduce this behavior.

Please note that you can also use a custom action to register the .EXE file. For this, please follow the steps from the Auto register DLL not working forum thread.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Register exe file

Hello Dan

I got confused about exe registration using regsvr32.exe. It wont register exe using regsvr32.exe. :?
Sorry for the inconvenience.

In brief:
I have an old application created using VB6 and one of the files is an ActiveX EXE. How do I self register this file.
I am trying to use Edit File -> Registration -> Auto Register File (DLL, OCX, etc) for an EXE file and I get and error dialog saying the "Selected file could not be registered".

So my question is how do I have the installation self register these activeX EXE files.

regards
Swati
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Register exe file

Hello

Any update?

regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Register exe file

Hi Swati,

Does the behaviour persist when using the Self register native library option from the Registration Tab to register the related file?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Register exe file

Hello

Yes. It gives the same error 'Selected file could not be registered' for any of the Auto Register File option.

regards
Swati
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Register exe file

Hi Swati,

This may happens if the .exe file does not export the DllRegisterServer function. Please note that a self registrable native library should export the DllRegisterServer function. If this function is not exported, you cannot use the registration support from Advanced Installer.

By the way, can you please tell us the steps that you perform to manually register the .EXE file?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”