Made a change to the way APPDATA was resolved due to a bug with the built in @AppDataDir macro in AutoIt on some systems.

Now using a function to get the DOS environment variable "APPDATA" instead of the AutoIt macro.

************
From:
************

If FileFindFirstFile("..\..\Rainmeter.ini") <> - 1 Then 
	$DataFolder = "..\..\"
ElseIf FileFindFirstFile(@AppDataDir & "\Rainmeter\Rainmeter.ini") <> - 1 Then
	$DataFolder = @AppDataDir & "\Rainmeter\"
Else
	MsgBox(48, "RainThemes Error", "Unable to locate Rainmeter.ini")
	Exit
EndIf

**************
To:
**************

$AppDataDir = EnvGet("APPDATA")

If FileFindFirstFile("..\..\Rainmeter.ini") <> - 1 Then 
	$DataFolder = "..\..\"
ElseIf FileFindFirstFile($AppDataDir & "\Rainmeter\Rainmeter.ini") <> - 1 Then
	$DataFolder = $AppDataDir & "\Rainmeter\"
Else
	MsgBox(48, "RainThemes Error", "Unable to locate Rainmeter.ini")
	Exit
EndIf
This commit is contained in:
jsmorley 2009-08-11 19:00:49 +00:00
parent cf8bb22e3a
commit 9aaa7ecbf2

Diff Content Not Available