mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[setup16]
check if setup.lst file exists svn path=/trunk/; revision=56121
This commit is contained in:
parent
e39b9f7f45
commit
e756ef1774
1 changed files with 6 additions and 0 deletions
|
@ -83,6 +83,12 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||
wcscpy(szFileName, szSetupPath);
|
||||
wcscat(szFileName, L"setup.lst");
|
||||
|
||||
if (GetFileAttributes(szFileName) == INVALID_FILE_ATTRIBUTES)
|
||||
{
|
||||
MessageBoxW(0, L"Cannot find Setup.lst file", L"Error", MB_OK | MB_ICONERROR);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* read information from setup.lst */
|
||||
GetPrivateProfileStringW(NT_PARAMS, L"CabinetFile", NULL, szCabFileName, MAX_PATH, szFileName);
|
||||
GetPrivateProfileStringW(NT_PARAMS, L"TmpDirName", NULL, szTempDirName, 50, szFileName);
|
||||
|
|
Loading…
Reference in a new issue