Outlook 2010 keeps asking to select profile when Google Calendar Sync starts

google-calendarmicrosoft-outlookmicrosoft-outlook-2010

In Outlook 2010, I have only one profile. I have selected always use this profile in the profile settings as described in this question.

Nevertheless, each time that Google Calendar Sync starts a synchronization, Outlook pops up the select profile dialog.

This question was asked on the Google support forum, but there was no definitive answer. Browsing through the answer, there seem to be three workarounds:

  • open outlook and keep it open (hidden or visible)
  • use a Windows keyboard macro to press Enter automatically each time the popup appears.
  • install iTunes and MobileMe.

All these solutions are hacks which might work, but certainly can't be recommended to other people having the same problem.

The last workaround obviously changes a setting somewhere that solves the problem. I was wondering if anyone knows which setting this might be, and how to change it manually, and consequently beat the Google forum providing the right answer.

Best Answer

This worked for me - it's not a fix but a workaround.

  1. Install AutoIt

  2. Paste the text below into a Notepad window and save it as outlookProfile.au3 (change the Save As Type dropdown to All Files)

    While 1  
    
        WinWait("Choose Profile")
        if (WinActivate("Choose Profile")) Then
          ControlClick("Choose Profile", "OK", "Button2")
        endif
    
    WEnd
    
  3. Double click the file.

  4. You may want to add a shortcut to your startup so that you don't have to run it each reboot. To make it run on startup you want to copy a shortcut of the file to the Startup folder in the Start Menu:

    %ALLUSERSPROFILE%\Start Menu\Programs\Startup
    
Related Question