Programmatically check if "Share iTunes Library XML with other applications" is disabled iTunes update (10.2.0.145) seems to have added new advanced feature "Share iTunes LIbrary XML with other applications" which if disabled no longers outputs the Music Library.xml. 

Our applications is highly depended on that file, which by this documentation states the file will be available. Anyone know how to set, or check if that preference is disabled? I have looked at the com.apple.iTunes.plist, but nothing there seemed to reflect that setting.
I have a solution for mac.
mac solution "ShareiTunesLibrary.applescript"

activate application "iTunes"
tell application "System Events"
    tell process "iTunes"
        keystroke "," using command down
        repeat until exists toolbar 1 of window 1
            delay 0.2
        end repeat
        tell window 1
            if title does not contain "Advanced" then
                click button "Advanced" of toolbar 1
            end if
            repeat until its title starts with "Advanced"
                delay 0.2
            end repeat
            tell checkbox "Share iTunes Library XML with other applications" of group 1
                if value is not 1 then
                    click it
                end if
            end tell
            click button "OK"
        end tell
    end tell
end tell


stuck in windows