How to select files to copy as per operating system version in Inno Setup?

后端 未结 1 875
无人共我
无人共我 2021-01-16 06:53

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

相关标签:
1条回答
  • 2021-01-16 07:53

    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
    
    0 讨论(0)
提交回复
热议问题