SelfRegModules fails or hangs - 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!

cpede
Posts: 3
Joined: Mon Apr 19, 2010 11:31 am

SelfRegModules fails or hangs

OK, I'm in total panic. Ready to release and just find out that my MSI DLL registrations does not work.

The problem originally started with my InstallShield Express project. Suddenly the installation crashed in msiexec, or sometimes continued but without registering most of my dlls.

Normally I would get an error when a dependency was missing or I made a bug in my DLLRegisterServer. But this is different.

I reduced my setup to a few files and the problem is reproducible. I contacted InstallShield but they kept directing my in the Extract COM information direction, instead of self registration of my dlls. However I do other stuff in my self registration and this has worked for many many years without any problem.
I ensured that there is no dependency problems etc. When the problem occurs I can do Dependency Walter and a manual registration using regsvr32 on the dll without any problems.

I then downloaded Advanced Installer to give that a try on my files. It also fails, but in this case I can get a log, that points me in the direction of the problem. And sure enough the problem lies in the self registration of my dlls.

Code: Select all

MSI (s) (B0:0C) [12:20:00:272]: Executing op: RegSelfReg(File=Common.Storage.dll,FileID=My.dll)
SelfRegModules: File: My.dll, Folder: C:\Program Files\My Company\MyTest\
Error 1904. Module C:\Program Files\My Company\MyTest\My.dll failed to register.  HRESULT -1073741819.  Contact your support personnel.
MSI (s) (B0:0C) [12:21:12:602]: Product: MyTest -- Error 1904. Module C:\Program Files\My Company\MyTest\My.dll failed to register.  HRESULT -1073741819.  Contact your support personnel.
And again when doing it manually it works.

I suspect some kind of service pack, policy, virus scanner, firewall to be the cause of this. Some must have experienced this also.

A colleague of mine is also struggling with a similar access problem, please see: http://forum.installsite.net/index.php? ... entry55012

PLEASE HELP If Advanced Installer can solve this problem I will change immedially!!

-cpede
cpede
Posts: 3
Joined: Mon Apr 19, 2010 11:31 am

Re: SelfRegModules fails or hangs

By the way. When the PCs showing the error is rebooted a Data Execution Prevention error dialog is displayed for the Windows Installer ?
Data Execution Prevention Dialog
Data Execution Prevention Dialog
DEP ISX 2.jpg (21.33 KiB) Viewed 6537 times
Followed by an exception from the msiexec.exe
msiexec.exe Exception
msiexec.exe Exception
DEP ISX 3.jpg (22.81 KiB) Viewed 6536 times
Does this help explaining my problem?

-cpede
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: SelfRegModules fails or hangs

Hi,

This behavior has never been met until now, but since it fails both on InstallShield and Advanced Installer mostlikely there is a
problem with the method you are using to register the files.

Here is a method of registering DLL files that we recommend when automatic registration fails.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cpede
Posts: 3
Joined: Mon Apr 19, 2010 11:31 am

CLOSED: SelfRegModules fails or hangs

You were right. I had a method that during the RegSelfReg/SelfRegModules in the Windows Installer hang the software, or the method did not return. This was somehow interpreted by the Windows Installer as an Permission Denied error ??

I expect the RegSelfReg/SelfRegModules method to have a build-in timeout, and this was called. The error code could in this case be better, which would have
pointed me to the problem much sooner.

Thanks for the help.

-cpede

Return to “Common Problems”