ISSelfReg table
I have a vendor msi CaseWare IDEA 7.3 that fails to install when using a true system account. This is an install shield msi that does not require an ISScript. It fails on a custom action that runs an exe in the program files folder for the application with a /register switch. I think I have tracked down the issue to to some dll files that are setup to self register. Searching this site I found a post that states that self registering dlls are the work of Satan (I think I agree) It says to get rid of the ISSelfReg and SelfReg tables and populate the correct information in the correct tables. How do I do this in Orca? Or if I'm going down the wrong path let me know.
0 Comments
[ + ] Show comments
Answers (15)
Please log in to answer
Posted by:
joedown
16 years ago
I like Installwatch and use it frequently. I did a capture of registering the calcmanaged.dll. It looks like it produced over 100 changes to the registry in HKCR and HKLM Would this be correct? DLL registration is all new to me. So if I add all those registry entries to the Registry table in the MSI the dll will be registered upon installation? Why would someone use the self reg method if it is prone to problems? Or do lazy packagers do the devils work[:'(]
Posted by:
AngelD
16 years ago
Posted by:
joedown
16 years ago
On a workstation where I do the install as required by the vendor using a local administrator account I am able to register and unregister the different dlls without error. On the workstation where I install using a true system account and get the custom action error I am unable to register the dll manually.
Posted by:
joedown
16 years ago
Here is the registry entries captured during the manual registration of calcmanaged.dll
REGEDIT4
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode]
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode]
@="IDEACalcManagedCode Class"
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode\CLSID]
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode\CLSID]
@="{11F9AD1A-4C11-498D-8234-98719BFE04A3}"
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode\CurVer]
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode\CurVer]
@="IDEA.IDEACalcManagedCode.1"
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode.1]
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode.1]
@="IDEACalcManagedCode Class"
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode.1\CLSID]
[HKEY_CLASSES_ROOT\IDEA.IDEACalcManagedCode.1\CLSID]
@="{11F9AD1A-4C11-498D-8234-98719BFE04A3}"
[HKEY_CLASSES_ROOT\AppID\CalcManaged.DLL]
[HKEY_CLASSES_ROOT\AppID\CalcManaged.DLL]
"AppID"="{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}"
[HKEY_CLASSES_ROOT\AppID\{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}]
[HKEY_CLASSES_ROOT\AppID\{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}]
@="CalcManaged"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}]
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}]
@="IDEACalcManagedCode Class"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}]
"AppID"="{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\InprocServer32]
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\InprocServer32]
@="C:\\Program files\\idea\\calcmanaged.dll"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\InprocServer32]
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\ProgID]
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\ProgID]
@="IDEA.IDEACalcManagedCode.1"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\Programmable]
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\TypeLib]
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\TypeLib]
@="{6D75D4BF-D741-4E8B-9474-19C7C625688B}"
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\VersionIndependentProgID]
[HKEY_CLASSES_ROOT\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\VersionIndependentProgID]
@="IDEA.IDEACalcManagedCode"
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}]
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}]
@="IIDEACalcManagedCode"
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid]
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid]
@="{00020424-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid32]
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\TypeLib]
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\TypeLib]
@="{6D75D4BF-D741-4E8B-9474-19C7C625688B}"
[HKEY_CLASSES_ROOT\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\TypeLib]
"Version"="1.0"
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}]
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0]
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0]
@="CalcManaged 1.0 Type Library"
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\0]
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\0\win32]
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\0\win32]
@="C:\\Program files\\idea\\calcmanaged.dll"
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\FLAGS]
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\FLAGS]
@="0"
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\HELPDIR]
[HKEY_CLASSES_ROOT\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\HELPDIR]
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode]
@="IDEACalcManagedCode Class"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode\CLSID]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode\CLSID]
@="{11F9AD1A-4C11-498D-8234-98719BFE04A3}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode\CurVer]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode\CurVer]
@="IDEA.IDEACalcManagedCode.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode.1]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode.1]
@="IDEACalcManagedCode Class"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode.1\CLSID]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\IDEA.IDEACalcManagedCode.1\CLSID]
@="{11F9AD1A-4C11-498D-8234-98719BFE04A3}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\CalcManaged.DLL]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\CalcManaged.DLL]
"AppID"="{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AppID\{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}]
@="CalcManaged"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}]
@="IDEACalcManagedCode Class"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}]
"AppID"="{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\InprocServer32]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\InprocServer32]
@="C:\\Program files\\idea\\calcmanaged.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\InprocServer32]
"ThreadingModel"="Apartment"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\ProgID]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\ProgID]
@="IDEA.IDEACalcManagedCode.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\Programmable]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\TypeLib]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\TypeLib]
@="{6D75D4BF-D741-4E8B-9474-19C7C625688B}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\VersionIndependentProgID]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}\VersionIndependentProgID]
@="IDEA.IDEACalcManagedCode"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}]
@="IIDEACalcManagedCode"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid]
@="{00020424-0000-0000-C000-000000000046}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid32]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\ProxyStubClsid32]
@="{00020424-0000-0000-C000-000000000046}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\TypeLib]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\TypeLib]
@="{6D75D4BF-D741-4E8B-9474-19C7C625688B}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}\TypeLib]
"Version"="1.0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0]
@="CalcManaged 1.0 Type Library"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\0]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\0\win32]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\0\win32]
@="C:\\Program files\\idea\\calcmanaged.dll"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\FLAGS]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\FLAGS]
@="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\HELPDIR]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0\HELPDIR]
@=""
Posted by:
AngelD
16 years ago
Nothing wrong with the registry information except for duplication between HKCR and HKLM\SOFTWARE\Classes.
Remove the following keys & values and any subkeys:
SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}
SOFTWARE\Classes\AppID\{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}
SOFTWARE\Classes\AppID\CalcManaged.DLL
SOFTWARE\Classes\IDEA.IDEACalcManagedCode
SOFTWARE\Classes\IDEA.IDEACalcManagedCode.1
SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}
SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0
If you use InstEd you can import a .reg file to a specific component in the Components tab.
Just makes sure to start the .reg content with "Windows Registry Editor Version 5.00" instead of "REGEDIT4" and save it (.reg) as unicode.
As a last resort you can always contact the support at http://www.caseware.com/support/idea
Remove the following keys & values and any subkeys:
SOFTWARE\Classes\CLSID\{11F9AD1A-4C11-498D-8234-98719BFE04A3}
SOFTWARE\Classes\AppID\{4F97C7AD-A5CE-4B39-AF55-3DFA67C88525}
SOFTWARE\Classes\AppID\CalcManaged.DLL
SOFTWARE\Classes\IDEA.IDEACalcManagedCode
SOFTWARE\Classes\IDEA.IDEACalcManagedCode.1
SOFTWARE\Classes\Interface\{F44FC927-123E-401D-BD74-438D22C36253}
SOFTWARE\Classes\TypeLib\{6D75D4BF-D741-4E8B-9474-19C7C625688B}\1.0
If you use InstEd you can import a .reg file to a specific component in the Components tab.
Just makes sure to start the .reg content with "Windows Registry Editor Version 5.00" instead of "REGEDIT4" and save it (.reg) as unicode.
As a last resort you can always contact the support at http://www.caseware.com/support/idea
Posted by:
joedown
16 years ago
Posted by:
joedown
16 years ago
Posted by:
anonymous_9363
16 years ago
Posted by:
anonymous_9363
16 years ago
Posted by:
AngelD
16 years ago
Posted by:
AngelD
16 years ago
Posted by:
joedown
16 years ago
The installer fails near the very end with this custom action. If I remove the custom action for testing purposes I then receive an error 1904 Module C:\Program Files\Idea\CalcManaged.dll failed to register. If I try to register the dll manually I receive the following error. LoadLibrary C:\Program Files\IDEA\CalcManaged.dll failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. So that's why I started looking down this self reg path.
I have added part of the install log file that shows the custom action error.
I have added part of the install log file that shows the custom action error.
MSI (s) (E8:98) [11:10:55:437]: Doing action: IDEA_HL_Register
Action ended 11:10:55: InstallFinalize. Return value 1.
MSI (s) (E8:98) [11:10:55:453]: Note: 1: 1721 2: IDEA_HL_Register 3: C:\Program Files\IDEA\Idea.exe 4: /register
Action start 11:10:55: IDEA_HL_Register.
MSI (s) (E8:98) [11:11:13:203]: Product: IDEA 7.3 -- Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: IDEA_HL_Register, location: C:\Program Files\IDEA\Idea.exe, command: /register
MSI (c) (AC:B4) [11:10:55:468]: Font created. Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
Error 1721.There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: IDEA_HL_Register, location: C:\Program Files\IDEA\Idea.exe, command: /register
Action ended 11:11:13: IDEA_HL_Register. Return value 3.
Action ended 11:11:13: INSTALL. Return value 3.
Posted by:
WayneB
16 years ago
Hey Joe,
I'd be trying to capture the native dll registration with wisecomcapture.exe, but if you only have free tools available, you might have to resort to InstallWatch and Ian's (vbscab) favourite ProcMon on the native installation using the installshield script.
Once you install the app natively, try unregistering the dll manually, does it produce the same error? I'd be careful that the installation doesn't require the isscript (whatever version) to perform self repairs.
My last employ, we always deployed the isscript version for each app (modifying it to take care of dcom permissions) and we had some really unusual isscript apps.
Regards
Wayne
I'd be trying to capture the native dll registration with wisecomcapture.exe, but if you only have free tools available, you might have to resort to InstallWatch and Ian's (vbscab) favourite ProcMon on the native installation using the installshield script.
Once you install the app natively, try unregistering the dll manually, does it produce the same error? I'd be careful that the installation doesn't require the isscript (whatever version) to perform self repairs.
My last employ, we always deployed the isscript version for each app (modifying it to take care of dcom permissions) and we had some really unusual isscript apps.
Regards
Wayne
Posted by:
AngelD
16 years ago
What happens if you try to register it manually?
Just add a simple vbscript (msgbox "hello world") just before the "IDEA_HL_Register" custom action and when the message is displayed execute "C:\Program Files\IDEA\Idea.exe" /register.
Sounds like it's missing some dependency, which you should find out using depends (dependency walker).
Just add a simple vbscript (msgbox "hello world") just before the "IDEA_HL_Register" custom action and when the message is displayed execute "C:\Program Files\IDEA\Idea.exe" /register.
Sounds like it's missing some dependency, which you should find out using depends (dependency walker).
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.