- look first for the xml file in system32 then in current dir.
svn path=/trunk/; revision=25262
<?xml version="1.0"?>\r
<!DOCTYPE project SYSTEM "tools/rbuild/project.dtd">\r
-<installfile base="system32">apps.xml</installfile> \r
+<installfile base="system32">downloader.xml</installfile> \r
<module name="downloader" type="win32gui" installbase="system32" installname="downloader.exe">\r
<include base="downloader">.</include>\r
<include base="expat">.</include>\r
#include "resources.h"
#include "structures.h"
+#define XML_PATH "C:\\ReactOS\\system32\\downloader.xml"
+
HWND hCategories, hApps, hDownloadButton, hUpdateButton, hHelpButton;
HBITMAP hLogo, hUnderline;
WCHAR* DescriptionHeadline = L"";
HINSTANCE hInstance = GetModuleHandle(NULL);
// Parse the XML file
- if (ProcessXML ("apps.xml", &Root) == FALSE)
+ if (ProcessXML (XML_PATH, &Root) == FALSE)
return FALSE;
// Set up the controls
FILE* file = fopen(filename, "r");
if(!file)
{
- MessageBoxW(0,Strings[IDS_XMLERROR_1],0,0);
- return FALSE;
+ file = fopen("downloader.xml", "r");
+ if(!file)
+ {
+ MessageBoxW(0,Strings[IDS_XMLERROR_1],0,0);
+ return FALSE;
+ }
}
XML_Parser parser = XML_ParserCreate(NULL);