Registering DLLs and MergeMod in batch mode - Advanced Installer Community
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Registering DLLs and MergeMod in batch mode

Hello,

I moved to Windows 7 from WinXP and try to build my product on the new platform.
I have several DLLs, which are auto-registered during setup, using 'Extract registration info from native library' option with Synchronization at Buildtime.
When I run Advanced installer in normal mode, it build the package without errors, but DLLs are not registered.
When I run it in 'Run as administrator' mode they are registered correctly, but then I have another problem.

When I build the package via command line: AdvancedInstaller.com /build myproduct.aip
I'm receiving the following error:
'Exception - You do not have MergeMod COM server installed on your computer. Please read in Help how to install it.'

I've installed all possible SDKs, tried to register several different versions of mergemod.dll (they registered successfully), but nothing helped.

1. Do I really have to run AI in administrative mode?
2. How can I force it work in batch mode?

Thanks,
Mikhail Dormidontov
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registering DLLs and MergeMod in batch mode

Hello,

You can try this with Synchronization at Buildtime disabled see if that works.
Also, it is required to run AI in admin mode if the DLL registration fails.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Registering DLLs and MergeMod in batch mode

AI in admin mode works OK, Synchronization is done, all DLLs are registered.
But AI doesn't work in batch build mode, can't find mergemod.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registering DLLs and MergeMod in batch mode

Hello,
But AI doesn't work in batch build mode, can't find mergemod.
Please send us a sample project that accurately reproduces this. Include the .aip file and the file dependencies so we can build it on our machines an test this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Registering DLLs and MergeMod in batch mode

When I create a sample project it works fine.
I can't send you my working project with dependencies because it's too large.
And when I try to delete some files references from it, at some point AI starts building it properly.
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Registering DLLs and MergeMod in batch mode

I've managed to create a sample project and sent it to support.
Hope this helps.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registering DLLs and MergeMod in batch mode

Hello,

We have tested the sample on our machines. It is building fine. Please try reinstalling Windows Installer SDK and then retry.
Also, you might want to test this on another machine.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Registering DLLs and MergeMod in batch mode

Hello Gabriel,

Have you tried to launch batch file from command prompt, started via 'Run as Administrator' ?
If I start it in normal mode it runs OK, but it doesn't do synchronization of component registration information at buildtime...

The only solution for me is to build in IDE in administrator mode or to remove synchronization at buildtime, which I wouldn't like to do.

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registering DLLs and MergeMod in batch mode

Hello,

We are still investigating this issue and will get back to you when we reach a conclusion.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
gvasko
Posts: 33
Joined: Mon Jun 07, 2010 7:11 pm

Re: Registering DLLs and MergeMod in batch mode

Hi,

have you reached some conclusion yet?

We are using the latest (7.7) version of AI and experiencing a similar problem, even from IDE with a very simple sample installer (see attached if necessary).
Windows 7, 64 bit, Windows SDK for Windows 7 and .NET Framework 3.5 SP 1.

Could you help, please?

Thank you in advance,
Gabor Vasko
Attachments
MModTest.zip
(118.4 KiB) Downloaded 847 times
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Registering DLLs and MergeMod in batch mode

Hi,

After a lot of headache with building on Windows 7 we returned to building installers on Windows XP...
Maybe somebody from support team will be able to help using your test projects...

Thanks,
Mikhail
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Registering DLLs and MergeMod in batch mode

Hi Mikhail,

- Make sure you have Windows 7 SDK installed
- open an admin command prompt
- navigate to C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin
- use "regsvr32 mergemod.dll" to register the mergemod.dll found there
- try building your project again, it should work
- if it does not, also register the mergemod.dll found at C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x64

Let me know if it worked.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
gvasko
Posts: 33
Joined: Mon Jun 07, 2010 7:11 pm

Re: Registering DLLs and MergeMod in batch mode

Dear Gabriel,

On Win 7 32bit, it works. After I registered the MergeMod.dll, AI could build the installer.

On Win 7 64bit, I tried you mentioned, but it doesn't solve the problem.
[ DefaultBuild ]
Building package (en): C:\gvasko64\Tests\MModTest\MMSI\out\mmsi.msi
Reusing archives from cache... done.
Creating MSI database... done.
Inserting CAB file(s) into MSI... done.
Writing Summary Information... done.
error.
Exception - Reason: You do not have MergeMod COM server installed on your computer. Please read in Help how to install it.

Build finished because an error was encountered.
But it seems from the log that it almost finished the process, it seems the MSI is almost built.

Probably we will use the 32bit machine and try to switch to 64bit later.

Anyway, thanks for the answers all of you.

Best regards,
Gabor Vasko
mikd
Posts: 42
Joined: Fri Aug 15, 2008 6:09 pm

Re: Registering DLLs and MergeMod in batch mode

Hi,

After installing Windows 7.1 SDK nothing changed on my Windows 7 64 bit.
I've tried to register both mergemod.dll files, but had the same result:

"Exception - You do not have MergeMod COM server installed on your computer. Please read in Help how to install it."

Thanks,
Mikhail
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Registering DLLs and MergeMod in batch mode

Hi,

Did you install the 64-bit SDK? If you did and the problem persists, you can try installing the 64-bit package from this page and registering "mergemod.dll" again. It's an older version, but it should work.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”