相关疑难解决方法(0)

在Inno Setup中确定Windows版本

我正在使用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版本吗?

windows inno-setup pascalscript

4
推荐指数
3
解决办法
2万
查看次数

标签 统计

inno-setup ×1

pascalscript ×1

windows ×1