我正在使用Inno Setup来更改操作系统中的回收站.如果用户运行Windows 7或Windows XP,我需要做一些案例.我尝试使用:
if not FileExists(winDir + '\System32\imageres.dll') then
if not FileExists(winDir + '\System32\shell32.dll') then
installError(3);
Run Code Online (Sandbox Code Playgroud)
但它似乎无法找到,imageres.dll或者shell32.dll即使我已经证实它们存在.我究竟做错了什么?或者我可以用另一种方式检查Windows版本吗?