Google Calendar Sync Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Version check problem

The problem with this app, or at least one of them is that it checks the OS version before trying to install. It obviously does not get back what it needs from the Crossover bottle so it refuses to install.

Two fixes are either Crossover should return a version it needs or it should be coded to ignore or have a cmdline switch to ignore version checking of the host OS.

crossover -does- return OS version information - you can
also change what OS version it identifies itself as by
using winecfg. Be aware, it might not be checking OS
version at all - the inverse of what some websites do
when they say they're detecting your browser version,
but they're actually checking for OS instead. The only
place you could put a cmdline switch to do as you say,
would be in the google installer itself, not in CX...

What is this winecfg? cant find it on my system and neither can apt-cache search?

Also, I dont think its being told that its Windows as the OS. Because it says "This program only works on Windows Xp or above" - interestingly if I do a "winver" command from my winxp bottle I get a Wine popup and version. Shouldnt it be telling me I'm running Windows XP?

PS - i meant that the app should be coded with a cmdline switch :) I still think its not because of version numbers but rather that its not being told "windows xp" when doing a version request, for whatever reason.

There's something more going on.

I have a full Windows XP vm that I went ahead and installed this on, and then copied the install over to my Crossover Bottle.

It then fails saying that it can't install because it "doesn't have Administrative privileges".

Seems to me that this application is doing something rather esoteric to determine OS version and whether it has the proper rights to run, probably stemming from the fact that it "Only supports Windows XP and Windows Vista" - and making sure that 2000, 2003, 7, and 2008 aren't the OS. They probably also are doing it to prevent the whole "lie about my OS version" thing that most Windows OS' can do now.

I'm going to look over the registry of my VM, see if I can gather some clues.

I believe I've worked this out. Do the following:

Create your Office 2007 bottle.
Set up your exchange account, verify mail and calendars are functioning as they should. Also, make sure you have a local copy of the bottle and not a managed one. You might want to make a safe copy of the bottle at this time in case you screw up. :)

Close Outlook.

Make sure the following directory exists and is writable by you:

~/.cxoffice/Office2007/dosdevices/c:/Documents and Settings/(yourdomainusernamehere)/Local Settings/Temp

That is VERY important. Don't overlook it!!!

In the Office 2007 bottle, launch regedit.

Make the following alterations:

Google Calendar Sync Registry Edits:


HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}
    (Default)    REG_SZ = "Google Calendar Sync"
HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}\InprocServer32
    (Default)    REG_SZ = "C:\Program Files\Google\Google Calendar Sync\GoogleCalendarSync.dll"
HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}\VersionIndependentProgID
    (Default)    REG_SZ = "Google.GoogleCalendarSync"
HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}\ProgID
    (Default)    REG_SZ = "Google.GoogleCalendarSync.1"

HKEY_CLASSES_ROOT\Google.GoogleCalendarSync
    (Default)        REG_SZ = "Google Calendar Sync"
HKEY_CLASSES_ROOT\Google.GoogleCalendarSync\CLSID
    (Default)        REG_SZ = "{737469AC-C562-482D-8EAD-006EBDF582F8}"
HKEY_CLASSES_ROOT\Google.GoogleCalendarSync\CurVer
    (Default)        REG_SZ = "Google.GoogleCalendarSync.1"

HKEY_CLASSES_ROOT\Google.GoogleCalendarSync.1
    (Default)        REG_SZ = "Google Calendar Sync"
HKEY_CLASSES_ROOT\Google.GoogleCalendarSync.1\CLSID
    (Default)        REG_SZ = "{737469AC-C562-482D-8EAD-006EBDF582F8}"

HKEY_CURRENT_USER\Software\Google
    (Default)        REG_SZ = (value not set)
HKEY_CURRENT_USER\Software\Google\Autoupdate-calsync
    (Default)        REG_SZ = (value not set)
    AppPath            REG_SZ = "C:\DOCUME~1\you\LOCALS~1\Temp\" <- Where "you" is your domain username.
    InstalledVersion     REG_SZ = "0.9.3.5"
    NextUpdate        REG_DWORD = 0x4b75e70e
    UpdateURL        REG_SZ = https://tools.google.com/service/update

HKEY_CURRENT_USER\Software\Google\Google Calendar Sync
    (Default)        REG_SZ = (value not set)
    LastFullFetchTime    REG_BINARY = "da 07 02 00 02 00 09 00 0f 00 32 00 0d 00 ed 00"
    LastSyncTime        REG_BINARY = "da 07 02 00 05 00 0c 00 0a 00 20 00 18 00 d8 03"

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\Google.GoogleCalendarSync
    (Default)        REG_SZ = (value not set)
    CommandLineSafe        REG_DWORD = 0x00 (0)
    Description        REG_SZ = "Google Calendar Sync"
    FriendlyName        REG_SZ = "Google Calendar Sync"
    LoadBehavior        REG_DWORD = 0x08 (8)

HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam
    (Default)        REG_SZ = "your host name here"
    BagMRU Size        REG_DWORD = 0x00001388 (5000) <- just enter 5000 decimal

HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache
    (Default)        REG_SZ = (value not set)
    C:\Program Files\Google\Google Calendar Sync\GoogleCalendarSync.exe    REG_SZ = "Google Calendar Sync"

HKEY_LOCAL_MACHINE\SOFTWARE\Google
    (Default)        REG_SZ = (value not set)
HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Calendar Sync
    (Default)        REG_SZ = (value not set)
    Install_Dir        REG_SZ = "C:\Program Files\Google\Google Calendar Sync"    

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Google Calendar Sync
    (Default)        REG_SZ = (value not set)
    DisplayName        REG_SZ = Google Calendar Sync
    NoModify        REG_DWORD = 0x00000001 (1)
    NoRepair        REG_DWORD = 0x00000001 (1)
    UninstallString        REG_SZ = "C:\Program Files\Google\Google Calendar Sync\uninstall.exe" <-INCLUDE THE QUOTES!!!

The following were auto-populated to match their corresponding entries in HKEY_CLASSES_ROOT:


HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Google.GoogleCalendarSync
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Google.GoogleCalendarSync.1

The following were auto-populated to match their corresponding entries in HKEY_CURRENT_USER


HKEY_USERS\YOUR-SID-HERE\Software\Google
HKEY_USERS\YOUR-SID-HERE\Software\Microsoft\Office\Outlook\Google.GoogleCalendarSync
HKEY_USERS\YOUR-SID-HERE\Software\Microsoft\Windows\ShellNoRoam\MUICache

Once you've made these changes, copy Program Files/Google from a working machine to your wine bottle's Program Files folder.

Finally, open a terminal, and do the following (paths are on my install on Ubuntu with bottle named Office2007):


export  CX_ROOT="/opt/cxoffice"
export  CX_BOTTLE="Office2007"
export  WINEPREFIX="/home/youraccount/.cxoffice/Office2007"
export  LD_LIBRARY_PATH="/opt/cxoffice/lib"
export  WINEDLLPATH="/opt/cxoffice/lib/wine"
export  LD_PRELOAD=""
export  WINELOADER="/opt/cxoffice/bin/wineloader"
export  WINESERVER="/opt/cxoffice/bin/wineserver"
export  WINEDEBUG="+seh,+cxreboot,+cxassocscan,-cxassoc,+menubuilder,-cxmenu,+debug,+all"
export  CX_DEBUGMSG="+seh,+cxreboot,+cxassocscan,-cxassoc,+menubuilder,-cxmenu"
export  DISPLAY=":0.0"

cd ~/.cxoffice/Office2007/dosdevices/c:/windows/system32
wine regsvr32 "C:\Program Files\Google\Google Calendar Sync\GoogleCalendarSync.dll"

You should now get a message that says "DllRegisterServer in C:\Program Files\Google\Google Calendar Sync\GoogleCalendarSync.dll succeeded."

Re-Launch Outlook 2007, go to Tools -> Trust Center, and in the left pane click "Add-ins". You will see that Google Calendar Sync is set to "Inactive". Highlight it, then click the "Go..." button at the bottom of the window. Enable Google Calendar Sync, click OK, and take yourself back out to the main mail view.

From inside Crossover Configuration -> Manage Bottles, select your Office2007 bottle, and click "Configure". then go to the "Control Panel" tab and "Run..."

Browse to the Program Files/Google/Google Calendar Sync/GoogleCalendarSync.exe and run it. Enter your information and enjoy! :D

Sorry for the mouthful up there. I would write up a script or a .reg or something to automate it, but I honestly just don't have time. :(

Would someone please fix this up for me?

Just as an FYI - there appears to be an issue that is not unique to Crossover, but I've not been able to work around it.

The COM Plug-in does not want to load "On Demand". That is controlled via:

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\Google.GoogleCalendarSync

LoadBehavior, as I mentioned above is 8, which is "On Demand". Setting that to 3 changes it to "On Load", which really means "When Outlook is started."

The crux is that it appears that the com plugin hangs outlook over and over again. As I mentioned, the problem is in no way unique to Crossover:

Google's "official" fix:
http://www.google.com/support/calendar/bin/answer.py?hl=en&answer=94022#

Further discussion:
http://www.google.com/support/forum/p/Calendar/thread?tid=20a80845eed6c647&hl=en

It appears that there is some sort of outside force within outlook that disables the com plugin. From what I'm seeing, it's as though Outlook sees it as a failure and just won't load it again after a single failure. Worse, setting LoadBehavior to 3 will work once, and only once, then Google Calendar Sync itself changes LoadBehavior back to 8.

So I was premature in saying this works - it's only as broken as the real thing... :P

Now, for extra credit, can someone describe how to troubleshoot the loading of GoogleCalendarSync.dll as a COM plugin, and help me hunt down why that's happening? :) Please?

I have not yet tested this (I don't have access to a Windows machine with Outlook at the moment), but for convenience here is a .reg file that can be imported though regedit. NOTE: You still have to change the two fields marked with "***" in the file:


REGEDIT4

[HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}]
@="Google Calendar Sync"

[HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}\InprocServer32]
@="C:\\Program Files\\Google\\Google Calendar Sync\\GoogleCalendarSync.dll"

[HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}\VersionIndependentProgID]
@="Google.GoogleCalendarSync"

[HKEY_CLASSES_ROOT\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}\ProgID]
@="Google.GoogleCalendarSync.1"

[HKEY_CLASSES_ROOT\Google.GoogleCalendarSync]
@="Google Calendar Sync"

[HKEY_CLASSES_ROOT\Google.GoogleCalendarSync\CLSID]
@="{737469AC-C562-482D-8EAD-006EBDF582F8}"

[HKEY_CLASSES_ROOT\Google.GoogleCalendarSync\CurVer]
@="Google.GoogleCalendarSync.1"

[HKEY_CLASSES_ROOT\Google.GoogleCalendarSync.1]
@="Google Calendar Sync"

[HKEY_CLASSES_ROOT\Google.GoogleCalendarSync.1\CLSID]
@="{737469AC-C562-482D-8EAD-006EBDF582F8}"

[HKEY_CURRENT_USER\Software\Google]

[HKEY_CURRENT_USER\Software\Google\Autoupdate-calsync]
"AppPath"="C:\\DOCUME~1\\***YOUR-USERNAME***\\LOCALS~1\\Temp\\"
"InstalledVersion"="0.9.3.5"
"NextUpdate"=dword:4b75e70e
"UpdateURL"="https://tools.google.com/service/update"

[HKEY_CURRENT_USER\Software\Google\Google Calendar Sync]
"LastFullFetchTime"=hex:da,07,02,00,02,00,09,00,0f,00,32,00,0d,00,ed,00
"LastSyncTime"=hex:da,07,02,00,05,00,0c,00,0a,00,20,00,18,00,d8,03

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Google.GoogleCalendarSync]

[HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins\Google.GoogleCalendarSync]
"CommandLineSafe"=dword:00000000
"Description"="Google Calendar Sync"
"FriendlyName"="Google Calendar Sync"
"LoadBehavior"=dword:00000008

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam]
@="***YOUR-MACHINE-NAME***"
"BagMRU Size"=dword:00001388

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\MUICache]
"C:\Program Files\Google\Google Calendar Sync\GoogleCalendarSync.exe"="Google Calendar Sync"

[HKEY_LOCAL_MACHINE\SOFTWARE\Google]

[HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Calendar Sync]
"Install_Dir"="C:\\Program Files\\Google\\Google Calendar Sync"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Google Calendar Sync]
"DisplayName"="Google Calendar Sync"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"UninstallString"="\"C:\\Program Files\\Google\\Google Calendar Sync\\uninstall.exe\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{737469AC-C562-482D-8EAD-006EBDF582F8}]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Google.GoogleCalendarSync]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Google.GoogleCalendarSync.1]

Just as an FYI, this problem remains more or less the same. The COM plugin simply will not stay loaded, thus the whole thing fails.

1 to 10 of 10

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzM2MzczNjgxLCJjc3JmX3Rva2VuIjoieVg1S0d5Skh6M1BWU2t4UiIsImdkcHIiOjB9