Look up the existence of a file to confirm product installation.

(Bug #166666, r=jbetak, sr=dveditz)
This commit is contained in:
curt%netscape.com 2002-11-06 01:46:45 +00:00
parent 3253d0e781
commit 3a74eb9a02

View File

@ -291,12 +291,10 @@ BOOL VerifyRestrictedAccess(void)
void SetInstallFilesVar(LPSTR szProdDir)
{
// MCP - Eventually we should make this check for a representative file
// instead of settling for the existence of the folder. That is why
// I left this as a function even though it is essentially a one-liner
// at the moment.
char szProgramPath[MAX_BUF];
if(FileExists(szProdDir))
wsprintf(szProgramPath, "%s%s", szProdDir, sgProduct.szProgramName);
if(FileExists(szProgramPath))
sgProduct.bInstallFiles = FALSE;
}