After you installed the game - install NoDVD (simply copy file from the archive and put it into Harry Potter and the Deathly Hallows: Part 2/pc folder, next to hp8.exe).
Also it is recommended to install DirectX from the disc (if you're using Windows 10 - enable DirectPlay, read this or this guide how to do it).
Install the game (if autorun doesn't work - simply launch the installation from Setup.exe inside the disc, run as administrator).
You will need the utility for mounting disc image files, like WinCDEmu, UltraISO, Alcohol 52%/Alcohol 120% or Daemon Tools Lite NoDVD for the game showed a lot of false positive warnings on VirusTotal, but it is safe to use The game with NoDVD has been tested on Windows 7 64-bit and Windows 10, works okay, the game supports widescreen and ultra-high resolutions up to 4k