How to select files to copy as per operating syste

2020-03-30 08:52发布

I have built an installer with Inno setup. Recently it was found that some applications do not work in Windows XP. These applications work fine with Windows 7 onward. I need to copy files as per Windows version user is installing on and create program menu shortcuts accordingly. How can I implement this?

标签: inno-setup
1条回答
我只想做你的唯一
2楼-- · 2020-03-30 09:35

All sections have MinVersion parameter, which you can use to limit a specific section entry to a specific minimal version of Windows:

[Files]
Source: "NeedsWin7.exe"; DestDir: "{app}"; MinVersion: 6.1

[Icons]
Name: "{group}\Needs Win 7"; Filename: "{app}\NeedsWin7.exe"; MinVersion: 6.1
查看更多
登录 后发表回答