Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //check if there are no dlls in current directory
- DirectoryInfo dinfo = new DirectoryInfo(Application.StartupPath);
- if (dinfo.GetFiles("*.dll").Any(fileInfo => String.Compare(fileInfo.Name, "d3dcompiler_47.dll", StringComparison.CurrentCultureIgnoreCase) != 0 &&
- String.Compare(fileInfo.Name, "d3dcompiler_47_x64.dll", StringComparison.CurrentCultureIgnoreCase) != 0 &&
- String.Compare(fileInfo.Name, "GFSDK_VXGI_x64.dll", StringComparison.CurrentCultureIgnoreCase) != 0 &&
- String.Compare(fileInfo.Name, "GFSDK_VXGI_x86.dll", StringComparison.CurrentCultureIgnoreCase) != 0))
- {
- MessageBox.Show("There are DLLs in application directory. Check installation.");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement