CRM 4.0 Outlook Client - Fails to install

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:

Any ideas? I shall try on some other PC's and update you.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

partymarty84Author Commented:
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

partymarty84Author Commented:
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...
partymarty84Author Commented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jason C. LevineNo oneCommented:

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Enterprise Software

From novice to tech pro — start learning today.