Today I installed the latest Desktop Manager, 4.5, and encountered multiple errors. They all had to do with the failure to register GW.dll, GWApi.dll, desktopsetup_pb.dll, and syncae_pb.dll. The error messages read like this:
Quote:
|
Error 1904.Module C:\Program Files\Research In Motion\BlackBerry\IS71 Connectors\ISGroupWise6.5.X\GW.dll failed to register. HRESULT -2147220473. Contact your support personnel.
|
The cause of the problem has to do with the Windows Registry not having permission to to register the files. This is not a terribly hard problem to fix. Here are the steps.
1. Download the
SubInACL tool and install it. By default it will install to c:\Program Files\Windows Resource Kits\Tools
2. If you are running Windows Vista, click on the Start menu, choose All Programs, then Accessories, then right-click on the item named Command Prompt and choose Run as administrator
3. If you are running an OS other than Windows Vista, go to the Start menu, choose Run, type cmd and click OK
4. Type notepad reset.cmd and click yes to create a new file named reset.cmd
5. Copy and paste the following contents into reset.cmd and then save and close it (or download it from
this location and rename it from reset.cmd.txt to reset.cmd):
cd /d "%programfiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=%USERNAME%=f /setowner=administrators > %temp%\subinacl_output.txt
subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=%USERNAME%=f /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subdirectories %SystemDrive%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
6. Type reset.cmd and press enter to run the SubInACL tool. This tool will take several minutes to run, and it requires that the user account you are using has administrator privileges on the system. This is why it is necessary to run it from an elevated cmd prompt on Windows Vista. Step 2 above can be used to start an elevated cmd prompt on Windows Vista.
7. After reset.cmd completes, we can manually register the failed DLL files.
Navigate to the directory that the DLL files are in and register them.
Type cd C:\Program Files\Research In Motion\BlackBerry\IS71 Connectors\ISGroupWise6.5.X\ and hit enter.
Type regsvr32 gw.dll and hit enter
Type gwapi.dll and hit enter
Type cd C:\Program Files\Research In Motion\BlackBerry\IS71 Desktop Setup\ and hit enter
Type regsvr32 DesktopSetup_pb.dll and hit enter
Type C:\Program Files\Research In Motion\BlackBerry\IS71 Action Engine\ and hit enter
Type regsvr32 SyncAE_pb.dll and hit enter
That's it. When you run Desktop Manager, you may need to reset the Synchronization configuration (as I had to).
Anyone have any corrections to this guide please let me know.
These instructions were copied and modified (step 7) from
Aaron Stebner's WebLog : Solving setup errors by using the SubInACL tool to repair file and registry permissions