This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Issues when trying install a self-registering assembly in Windows 7
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 03, 2010
01:49 AM
Issues when trying install a self-registering assembly in Windows 7
Hi,
I have a couple of self-registering dlls in a Component - mfc40.dll, mfc42.dll.
It throws the error:
The following files did not self-register or unregister:
c:\windows\system32\mfc40.dll
An event was unable to invoke any of the subscribers
1. Strangely this error comes only in Windows 7 and only for mfc40.dll
2. The target installation machine already has mfc40.dll in the system32 folder. The version is same as the one i am trying to install but last modified date is newer.
3. My installer will install this dll only when the version is higher and/or the date is newer.
4. Tried running the installer as an Administrator. Same error.
5. Manually regsvr32 the file. Got registered successfully. Tried running the installer again. Same error.
6. Tried checking if any dependency was missing using Depends 22. It did identify IEshmil.dll. Copied that file from c:\Program Files\Internet Explorer to system32. Ran my installer again. Same error.
It would be great if someone ran into the same issue and got it resolved. Did see a thread for the same problem but does not say if the error got resolved.
Thanks in advance
I have a couple of self-registering dlls in a Component - mfc40.dll, mfc42.dll.
It throws the error:
The following files did not self-register or unregister:
c:\windows\system32\mfc40.dll
An event was unable to invoke any of the subscribers
1. Strangely this error comes only in Windows 7 and only for mfc40.dll
2. The target installation machine already has mfc40.dll in the system32 folder. The version is same as the one i am trying to install but last modified date is newer.
3. My installer will install this dll only when the version is higher and/or the date is newer.
4. Tried running the installer as an Administrator. Same error.
5. Manually regsvr32 the file. Got registered successfully. Tried running the installer again. Same error.
6. Tried checking if any dependency was missing using Depends 22. It did identify IEshmil.dll. Copied that file from c:\Program Files\Internet Explorer to system32. Ran my installer again. Same error.
It would be great if someone ran into the same issue and got it resolved. Did see a thread for the same problem but does not say if the error got resolved.
Thanks in advance
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 04, 2010
04:02 PM
Are you running an MSI or EXE file?
If MSI, create an EXE.
When going to run the EXE, right click and 'run as administrator'. Not to be confused with being part of the administrators group, it's not the same thing.
Create an EXE version, right click and 'Run as administrator'. See if that helps. If that doens't solve your issue, please post again.
If MSI, create an EXE.
When going to run the EXE, right click and 'run as administrator'. Not to be confused with being part of the administrators group, it's not the same thing.
Create an EXE version, right click and 'Run as administrator'. See if that helps. If that doens't solve your issue, please post again.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2010
07:58 AM
Why are you installing Microsoft components into the system folder in your install in the first place? Can you use Microsoft merge modules instead? I would imagine the mfc files are covered by Windows File Protection on Windows 7.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 05, 2010
11:54 PM
Mumbles,
This is a Setup and i right click on Setup.exe Run As Admin. It didnt quite work out.
Kathy,
Any idea how i could find which merge module would contain mc40.dll. I think this file is under lockdown by the Windows 7 for some reason.
Interestingly, i changed my installer to manualy register the assembly through LaunchAppAndWait, that worked fine. But strangely do not see any registry entries for the same.
Also if you guys have worked extensively on windows7, any idea why it takes so long for the installer to install files on to a windows 7 machine ( i mean just copying them to the c:\program files folder) as against an XP machine?
Thanks!!!
This is a Setup and i right click on Setup.exe Run As Admin. It didnt quite work out.
Kathy,
Any idea how i could find which merge module would contain mc40.dll. I think this file is under lockdown by the Windows 7 for some reason.
Interestingly, i changed my installer to manualy register the assembly through LaunchAppAndWait, that worked fine. But strangely do not see any registry entries for the same.
Also if you guys have worked extensively on windows7, any idea why it takes so long for the installer to install files on to a windows 7 machine ( i mean just copying them to the c:\program files folder) as against an XP machine?
Thanks!!!