From 9aaa7ecbf25cb37f78e78b20056ca631066c705a Mon Sep 17 00:00:00 2001 From: jsmorley Date: Tue, 11 Aug 2009 19:00:49 +0000 Subject: [PATCH] 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