We help IT Professionals succeed at work.

CRM 4.0 Outlook Client - Fails to install

partymarty84 asked
Medium Priority
Last Modified: 2013-11-24
Hi Guys,

I tried to install the outlook client for CRM 4.0 today, firstly i tried to upgrade from the CRM 3.0 Outlook client which it seemed to go ahead with (it gave the option to upgrade), but then failed when checked for the SQL instance for CRM.

Strangely enough, the new client had removed the SQL instance and was now trying to find it again......Bug?

2nd try, I removed all traces of SQL and Microsoft CRM by following Microsoft's KB article on manually removing CRM 3.0 Outlook client. I then ran the install, it installed the requirements plus the SQL instance and copied the files. Right near the end it started rolling back the actions and said the installation had failed. Another bug?

I followed this KB for removal: http://www.microsoft.com/dynamics/crm/using/deploy/removeclient.mspx

Any ideas? I shall try on some other PC's and update you.
Watch Question


Here is what the crm40setup.log showed:

Calling custom action Microsoft.Crm.Setup.Client!Microsoft.Crm.Setup.Client.ClientSetup.UpgradeDatabase
Searching for Database Files
Moving Database Files
Finished Database Actions
Assigning Permissions for S-1-5-21-484763869-1682526488-839522115-5220
C:\Program Files\Microsoft CRM\sql\v3_msde_mscrm.mdf 
    at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
   at System.Security.AccessControl.FileSystemSecurity..ctor(Boolean isContainer, String name, AccessControlSections includeSections, Boolean isDirectory)
   at System.Security.AccessControl.FileSecurity..ctor(String fileName, AccessControlSections includeSections)
   at System.IO.FileInfo.GetAccessControl()
   at Microsoft.Crm.Setup.Client.DatabaseInstaller.Upgrade(Session session)
   at Microsoft.Crm.Setup.Client.ClientSetup.UpgradeDatabase(Session session)
Action ended 11:51:13: InstallFinalize. Return value 3.
Action 11:51:13: Rollback. Rolling back action:
Rollback: UpgradeDb
Rollback: InstallHelpIndexAction
Rollback: EditSqlExpress
Rollback: EditMapi
Rollback: Copying new files
Rollback: Creating folders
Rollback: Updating component registration
Action ended 11:51:23: INSTALL. Return value 3.
Action ended 11:51:23: ExecuteAction. Return value 3.
Action 11:51:23: SetupCompleteError. 
Action start 11:51:23: SetupCompleteError.
Info 2898. For TahomaBold10 textstyle, the system created a 'Tahoma' font, in 0 character set, of 16 pixels height.
Action 11:51:23: SetupCompleteError. Dialog created
Action ended 11:52:39: SetupCompleteError. Return value 2.
Action ended 11:52:39: INSTALL. Return value 3.
=== Logging stopped: 29/01/2008  11:52:39 ===
MSI (c) (D4:74) [11:52:39:520]: Product: Microsoft Dynamics CRM 4.0 for Microsoft Office Outlook -- Installation failed.
MSI (c) (D4:74) [11:52:39:522]: Windows Installer installed the product. Product Name: Microsoft Dynamics CRM 4.0 for Microsoft Office Outlook. Product Version: 4.0.7333.3. Product Language: 1033. Installation success or error status: 1603.

Open in new window


Tried removing all files from the Outlook folders under application data for the user. This removed 'CRM' from the menu, which was greyed out anyway.

 Still does not work...
Good news!

All working for me now on 2 vista laptops. This solved both issues where the install would not complete and also the configuration problem.

To reiterate what I did:

 -  Uninstalled SQL completely and deleted the 'Microsoft SQL Server' folder under 'Program Files'

 -  Remove 'Microsoft Dynamics CRM' folder completely, if any files are locked, try using 'Unlocker 1.8.5' (Google it)  I did not have an option to remove the CRM client in Add/Remove Programs as it didn't install correctly, if you do, make sure you run the uninstall first.

 - Ran 'regedt32' and searched the registry for all keys/values/data for 'MSCRM' and removed all of them. Remember to backup your registry just in case! (I didn't)

 - Removed the Outlook profile from the user's application folder. First delete the profile by going to Control Panel > Mail > Profiles. Then remove the files. Don't forget to back up these files in case there is a .pst in there somewhere (i.e archive or personal folder). These will be in the following locations:

For Vista:


For XP - I'm pretty sure about these but not using XP right now so it's only from memory...

C:\Documents and Settings\<username>\Application Data\Microsoft\Outlook
C:\Documents and Settings\<username>\Local Settings\Application Data\Microsoft\Outlook

- Restart PC and run the install again.
Jason C. LevineDon't talk to me.


I'm glad you found your own solution.  You can now close this with the Delete Question link above and it will go to a Moderator for PAQ and Refund

Explore More ContentExplore courses, solutions, and other research materials related to this topic.