Break on
$appdata = ExpandEnvironmentVars(%appdata%)
$progfiles = ExpandEnvironmentVars(%programfiles%)
If Exist( ("\\server\share\G_Earth_Installed_" + @WKSTA + ".ini")
$alreadydetected = "yes"
Else
$alreadydetected = "no"
EndIf
If Exist( $appdata + "\Google\Google Earth\GoogleEarth.exe")
$rc = WriteProfileString("\\server\share\G_Earth_Installed_" + @WKSTA + ".ini", "AppData", @WKSTA, "Yes")
$rc = WriteProfileString("\\server\share\G_Earth_Installed_" + @WKSTA + ".ini", "AlreadyDetected", @WKSTA, $alreadydetected)
EndIf
If Exist ($progfiles + "\Google\Google Earth\GoogleEarth.exe")
$rc = WriteProfileString("\\server\share\G_Earth_Installed_" + @WKSTA + ".ini", "ProgramFiles", @WKSTA, "Yes")
$rc = WriteProfileString("\\server\share\G_Earth_Installed_" + @WKSTA + ".ini", "AlreadyDetected", @WKSTA, $alreadydetected)
EndIf