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!

DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

registering COM through an .exe File

Hello,

I am having a problem getting an .exe to run and register a COM component.

I have an .exe file that does all the work of registering a component all i need to do is execute it.

I tried i few ways but only one worked and its exactly clean.
The way i got it to work was add that .exe to the temporary files, select the option to not delete and creating a custom action to execute it on "Finish Button Pressed".
I don't like it this way since the .exe is still there after of course.


The others ways i tried it was using your Auto Register File (DLL, OCX,..) and using option "Extract registration info from native library" and Synchronization: Enabled.
I don't really get how this i supposed to work since the file is registered when i build the project in Advanced Installer, but not when i run the installer which is what i need.
Maybe i'm in the wrong section.


Then i went to the COM registering section but since my .exe does all the work to register my .OCX file in the system i think this is also not correct way for me.


Can i run my .exe in any other than the one i did?
I tried running it without being in temp folder but i get an error when the file is executed "MSI6F86.temp is not registered to...." something like that.
When sometimes the installer just doesn't run it and return an error saying attached or installer file could not run or something similar.

If you have any questions about what i just asked please do say.


Thank You for Your Help.


Sincerely,
Diego.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: registering COM through an .exe File

Hi Diego,

In order to run an EXE file during the installation and not let the file on the user's machine after the installation, you can use the "Launch attached file" predefined custom action. You can add that custom action "without sequence" if you want to place it on a dialog button.

However, please note that if that executable needs administrator rights to register your COM component, you should add your custom action "with sequence" and check the "deferred" with "no impersonation" options for it or check the "Run as administrator" option from the "Install Parameters" page of your project.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Re: registering COM through an .exe File

Hello,

Ok Thank You very much for your reply.

I'm going to try that.

Have a Good Day.

Sincerely,
Diego.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: registering COM through an .exe File

You're welcome Diego.

Just let us know if you need more help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”