none
CRM 4 Outlook Client Auto update RRS feed

  • Frage

  • Hi all.

    I could really use some help trying to set up Auto Update. The MS documentation is vague as usual, and I'm stuck. What I did:

    downloaded rollup 6 for Outlook client to c:\ on CRM server
    extracted contents of file to C:\Program Files\Microsoft Dynamics CRM\Server\CRMWeb\crmpatches
    created update.xml file in C:\Program Files\Microsoft Dynamics CRM\Server\CRMWeb\

        <ClientPatches>
        <Create>
            <ClientPatchInfo>
                <PatchId>{7E83D1E5-7B7A-45D1-8930-4FEFB4123B57}</PatchId>
                <Title>CRM Client Rollup Patch 6</Title>
                <Description>Update Rollup 6</Description>
                <IsMandatory>true</IsMandatory>
                <IsEnabled>true</IsEnabled>
                <ClientType>OutlookDesktop,OutlookLaptop</ClientType>
            <LinkId>CRMv4.0-KB970148-i386-Client-ENU.exe</LinkId>
            </ClientPatchInfo>
        </Create>
        </ClientPatches>

    restarted IIS service on crmserver

    on a client machine created a STRING registry key in HKLM\software\microsoft\MSCRMClient    value = http://crmserver/crmpatches/
    opened outlook
    update window opens, and displays 1 update
    Click update - but get error message "Update Failed"

    As far as I can tell, I followed the docs exactly. Can anyone see what I did wrong?
    Dienstag, 8. September 2009 16:17

Antworten

Alle Antworten

  • Hi Alex,

    you have seen this artivle?
     

    http://blogs.msdn.com/crm/archive/2008/05/08/crm-client-autoupdate.aspx
     

    http://mscrm.m-seidl.com/2008/08/06/microsoft-crm-40-und-auto-update/
     

     


    Viele Grüße

    Michael Sulz
    axcentro GmbH
    MVP für Microsoft Dynamics CRM
    Dienstag, 8. September 2009 16:28
  • Hi Alex,

    in addition to the links provided by Michael, take a look at the AutoUpdate-Logfiles in your user profile. For Vista they are in the folders DriveName:\Users\{User}\AppData\Roaming\Microsoft\MSCRM\Logs and AutoUpdate
    Dienstag, 8. September 2009 16:47
  • Thanks for the quick answers...


    Michael, I read through both those articles, but neither one involves any additional steps compared to what I did. As far as I can tell, what I did matches both those articles exactly.

    Ckeller, we are running XP SP2. I did find a file called Autoupdate.log on my PC located in "C:\Documents and Settings\alex\Application Data\Microsoft\MSCRM\Logs" The file contains the following:

    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 :
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : ========== Starting AutoUpdate Tracing at 01/13/2009 15:47:30 ==========
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /Background flag set to True
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : AutoUpdateDisabled: False
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /Q flag set to False
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : OS is pre Vista. Nothing to update on the button.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Discovery Service Uri to be contacted will be http://crmsam/MSCRMServices/2007/AD/CrmDiscoveryService.asmx
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Outlook version being used is 11.0.8169
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Product Code is {539D63C6-4EF4-4B9E-9926-85053F119171} for Upgrade Code {B9D53805-50DD-4898-8B87-1B2891471F5A}
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Found 0 patches for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /N flag set to False
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : No patches were found on the server to be installed.

    I notice that the date is from January... so the file does not seem to contain information on my failed update attempts. Is there another file I should check?




    Some additional questions and information:

    I have local admin rights on my PC
    My CRM client for Outlook is ONLINE ONLY
    Since I extracted the file CRMv4.0-KB970148-i386-Client-ENU.exe contents to the crmupdates folder, do I need the parent file anymore?
    If I do need the parent file, in what folder on the crmserver should it be located?
    although I created the crmupdates folder on the crmserver, do I need to make any changes in IIS? What changes?


    Dienstag, 8. September 2009 17:42
  • Hi,

    although the log entry is old, it states your crm server is named crmsam. You have configured the update location as http://crmserver/crmpatches/. Only a copy/paste typo?

    It seems that the file MSCRM\Logs\AutoUpdate.log is not touched every time (I compared it with mine). Please take a look in the folder MSCRM\AutoUpdate. There should files with a created on/modified on date which corresponds with your failed update.
    Mittwoch, 9. September 2009 08:20
  • Hi Ckeller,

    Yes, it is a typo... sorry about that. My CRM server is in fcat called CRMSAM.

    today, my Autoupdate.log file is very different! I see error 404 all over the place, as though the http://crmsam/crmpatches/ page cannot be found. Is there something I am supposed to do in IIS?


    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 :
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : ========== Starting AutoUpdate Tracing at 09/09/2009 08:27:07 ==========
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /Background flag set to False
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /Q flag set to False
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : OS is pre Vista. Nothing to update on the button.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Discovery Service Uri to be contacted will be http://crmsam/MSCRMServices/2007/AD/CrmDiscoveryService.asmx
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Outlook version being used is 11.0.8169
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Product Code is {539D63C6-4EF4-4B9E-9926-85053F119171} for Upgrade Code {B9D53805-50DD-4898-8B87-1B2891471F5A}
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Found Patch {E391A291-FE41-42F9-A074-4CE5C471B7EC} installed for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Found Patch {B02776C6-5DF3-4ECE-B41E-9573777F54B3} installed for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Found Patch {004A7E60-5DB7-4F05-B7C1-1D2DD653A1A6} installed for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Found 3 patches for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Patch with Title CRM Clinet Rollup Patch 6 Id 7e83d1e5-7b7a-45d1-8930-4fefb4123b57 Depth 0 LinkId CRMv4.0-KB970148-i386-Client-ENU Mandatory False was retrieved from the server.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /IncludeOptional flag set to True
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked with /N flag set to False
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Found 1 patches to install.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updater invoked in full UI mode.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : User is an admin will continue with installation.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updating the status of Patch CRM Clinet Rollup Patch 6 as InstallInProgress
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Product Code is {539D63C6-4EF4-4B9E-9926-85053F119171} for Upgrade Code {B9D53805-50DD-4898-8B87-1B2891471F5A}
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Going to apply patch 7e83d1e5-7b7a-45d1-8930-4fefb4123b57 for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Url to be used to download patches is http://crmsam/crmpatches/
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Trying to download patch with LinkId CRMv4.0-KB970148-i386-Client-ENU
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Exception occurred in downloading the patch System.Net.WebException: The remote server returned an error: (404) Not Found.
       at System.Net.WebClient.DownloadFile(Uri address, String fileName)
       at System.Net.WebClient.DownloadFile(String address, String fileName)
       at Microsoft.Crm.Client.AutoUpdate.UpdateInstaller.DownloadPatch(String linkId)
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Response in the Web Exception is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <HTML><HEAD><TITLE>The page cannot be found</TITLE>
    <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
    <STYLE type="text/css">
      BODY { font: 8pt/12pt verdana }
      H1 { font: 13pt/15pt verdana }
      H2 { font: 8pt/12pt verdana }
      A:link { color: red }
      A:visited { color: maroon }
    </STYLE>
    </HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

    <h1>The page cannot be found</h1>
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    <hr>
    <p>Please try the following:</p>
    <ul>
    <li>Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.</li>
    <li>If you reached this page by clicking a link, contact
     the Web site administrator to alert them that the link is incorrectly formatted.
    </li>
    <li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
    </ul>
    <h2>HTTP Error 404 - File or directory not found.<br>Internet Information Services (IIS)</h2>
    <hr>
    <p>Technical Information (for support personnel)</p>
    <ul>
    <li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>404</b>.</li>
    <li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
     and search for topics titled <b>Web Site Setup</b>, <b>Common Administrative Tasks</b>, and <b>About Custom Error Messages</b>.</li>
    </ul>

    </TD></TR></TABLE></BODY></HTML>

    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : File download failed.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updating the status of Patch CRM Clinet Rollup Patch 6 as DownloadFailed
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Patch CRM Clinet Rollup Patch 6 with Id 7e83d1e5-7b7a-45d1-8930-4fefb4123b57 failed to install.
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Installation of patch CRM Clinet Rollup Patch 6 failed. Will halt the patch installation process.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Completed installation of all 1 patches. 0 patches installed sucesfully.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Installation completed. Failed = True
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : User is an admin will continue with installation.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updating the status of Patch CRM Clinet Rollup Patch 6 as InstallInProgress
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Product Code is {539D63C6-4EF4-4B9E-9926-85053F119171} for Upgrade Code {B9D53805-50DD-4898-8B87-1B2891471F5A}
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Going to apply patch 7e83d1e5-7b7a-45d1-8930-4fefb4123b57 for Product 539d63c6-4ef4-4b9e-9926-85053f119171
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Url to be used to download patches is http://crmsam/crmpatches/
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Trying to download patch with LinkId CRMv4.0-KB970148-i386-Client-ENU
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Exception occurred in downloading the patch System.Net.WebException: The remote server returned an error: (404) Not Found.
       at System.Net.WebClient.DownloadFile(Uri address, String fileName)
       at System.Net.WebClient.DownloadFile(String address, String fileName)
       at Microsoft.Crm.Client.AutoUpdate.UpdateInstaller.DownloadPatch(String linkId)
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Response in the Web Exception is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <HTML><HEAD><TITLE>The page cannot be found</TITLE>
    <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
    <STYLE type="text/css">
      BODY { font: 8pt/12pt verdana }
      H1 { font: 13pt/15pt verdana }
      H2 { font: 8pt/12pt verdana }
      A:link { color: red }
      A:visited { color: maroon }
    </STYLE>
    </HEAD><BODY><TABLE width=500 border=0 cellspacing=10><TR><TD>

    <h1>The page cannot be found</h1>
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    <hr>
    <p>Please try the following:</p>
    <ul>
    <li>Make sure that the Web site address displayed in the address bar of your browser is spelled and formatted correctly.</li>
    <li>If you reached this page by clicking a link, contact
     the Web site administrator to alert them that the link is incorrectly formatted.
    </li>
    <li>Click the <a href="javascript:history.back(1)">Back</a> button to try another link.</li>
    </ul>
    <h2>HTTP Error 404 - File or directory not found.<br>Internet Information Services (IIS)</h2>
    <hr>
    <p>Technical Information (for support personnel)</p>
    <ul>
    <li>Go to <a href="http://go.microsoft.com/fwlink/?linkid=8180">Microsoft Product Support Services</a> and perform a title search for the words <b>HTTP</b> and <b>404</b>.</li>
    <li>Open <b>IIS Help</b>, which is accessible in IIS Manager (inetmgr),
     and search for topics titled <b>Web Site Setup</b>, <b>Common Administrative Tasks</b>, and <b>About Custom Error Messages</b>.</li>
    </ul>

    </TD></TR></TABLE></BODY></HTML>

    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : File download failed.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Updating the status of Patch CRM Clinet Rollup Patch 6 as DownloadFailed
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Patch CRM Clinet Rollup Patch 6 with Id 7e83d1e5-7b7a-45d1-8930-4fefb4123b57 failed to install.
    Microsoft.Crm.Client.AutoUpdate.exe Error: 0 : Installation of patch CRM Clinet Rollup Patch 6 failed. Will halt the patch installation process.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Completed installation of all 1 patches. 0 patches installed sucesfully.
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : Installation completed. Failed = True
    Microsoft.Crm.Client.AutoUpdate.exe Information: 0 : All mandatory updates were installed sucesfully.
    Mittwoch, 9. September 2009 13:54
  • Hi,

    what happens if you open http://crmsam/crmpatches/CRMv4.0-KB970148-i386-Client-ENU.exe in your browser? You should be able to download the file.
    Mittwoch, 9. September 2009 14:05
  • Ckeller,

    I get an error 404, page not found.


    I found a workaround! But I don't know if this is the proper way to do it.

    I logged into the CRM server
    opened IIS
    expanded Websites
    right clicked on Microsoft Dynamics CRM
    Selected New > Virtual Directory from the context menu
    specified an alias "crmpatches"
    specified the path "c:\program files\.........\crmpatches
    left the default permissions of Read access


    Once complete, I can successfully patch an Outlook CRM client. I can also open the URL you suggested and download the file. I ask if this is the correct thing to do because NOWHERE is this documented...
    Mittwoch, 9. September 2009 14:15
  • It seems like you have (or had) an issue with the file/directory access rights. I created the folder crmpatches in a test environment and I am able to load any file from this directory without creating a vdir for it. Maybe you have a different configuration for your IIS.

    In general, the patch location doesn't need to be in the crmweb. You could store them at any location, where it is accessible for the clients via http. Or you can load the updates directly from Microsoft (which is the way we push it)
    Mittwoch, 9. September 2009 14:29
  • ckeller,

    Rather than have this potentially unsupported config, can you explain how you configure your clients to get updates from microsoft?
    Mittwoch, 9. September 2009 15:22
  • Hi,

    see the end of this blog post http://blogs.msdn.com/crm/archive/2009/05/14/update-rollup-4-for-microsoft-dynamics-crm-4-0.aspx

    You have to use the patch and link ids which are provided for Rollup 6 http://support.microsoft.com/kb/970148
    Mittwoch, 9. September 2009 16:21
  • ckeller,

    thanks for the info, much appreciated.

    I was just wondering if your CRM deployment was WEB facing? i.e. can users connect to it when outside the office (and without a vpn)? That might explain why you didn't have to create a virtual folder like I did...
    Mittwoch, 9. September 2009 17:24
  • I made my test in a local environment. No IFD enabled. But IMHO this should not be the point (if the firewalls, etc is configured correct).

    There may be an issue with the path which you can configure at the registry, because it differs for internal or external access. Perhaps I'll try out what will happen in this scenario.

    Mittwoch, 9. September 2009 18:30