Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. //check if there are no dlls in current directory
  2. DirectoryInfo dinfo = new DirectoryInfo(Application.StartupPath);
  3.  
  4. if (dinfo.GetFiles("*.dll").Any(fileInfo => String.Compare(fileInfo.Name, "d3dcompiler_47.dll", StringComparison.CurrentCultureIgnoreCase) != 0 &&
  5. String.Compare(fileInfo.Name, "d3dcompiler_47_x64.dll", StringComparison.CurrentCultureIgnoreCase) != 0 &&
  6. String.Compare(fileInfo.Name, "GFSDK_VXGI_x64.dll", StringComparison.CurrentCultureIgnoreCase) != 0 &&
  7. String.Compare(fileInfo.Name, "GFSDK_VXGI_x86.dll", StringComparison.CurrentCultureIgnoreCase) != 0))
  8. {
  9. MessageBox.Show("There are DLLs in application directory. Check installation.");
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement