|
#1
|
||||
|
||||
|
Inno Setup - check GPU DirectX version?
I would like to add a check to my scripts that will determine if the currently installed GPU is DX 11 capable - which would then allow additional parameters in the script to be executed. For example, my current Far Cry 3 script has the following line:
Code:
[Icons]
Name: {userdesktop}\Far Cry 3; Filename: {app}\bin\FarCry3.exe; Parameters: -offline; WorkingDir: {app}\bin
Code:
[Icons]
Name: {userdesktop}\Far Cry 3; Filename: {app}\bin\FarCry3.exe; Parameters: -offline; WorkingDir: {app}\bin
Name: {userdesktop}\Far Cry 3; Filename: {app}\bin\FarCry3_D3D11.exe; Parameters: -offline; WorkingDir: {app}\bin
For example, when a setup has x64 specific files, I can designate the following check (using my Rage script as an example): Code:
[Icons]
Name: {userdesktop}\Rage; Filename: {app}\Rage.exe; WorkingDir: {app}\; Tasks: desktopshortcut; Check: not isWin64
Name: {userdesktop}\Rage (64-bit); Filename: {app}\Rage64.exe; WorkingDir: {app}\; Tasks: desktopshortcut; Check: isWin64
Anyone have a custom 'check' function already coded up that they'll share? |
| Sponsored Links |
|
#3
|
||||
|
||||
|
post #65 ( get sysinfo exe ) & post 72 ( xml code ) are the posts you need to look at specifically. ( For Razor's link )
|
|
#4
|
||||
|
||||
|
Last edited by altef_4; 30-11-2013 at 11:13. |
|
#5
|
||||
|
||||
|
altef, you the man. Thanks!!!!!
|
|
#6
|
||||
|
||||
|
Altef, one question: I'm using the code from your 'link ver. 2' in your post, and noticed how your listed out all the different directX versions (except for 11.1) that are out so far.
If a new version of directX is released in the future, say v12.0, and future gpus are at that version, will this code still work? It seems the code looks at specific directX versions, not doing a general GPU ability check, like this pseudocode idea: Quote:
Let me know.. thanks for your help! Last edited by Smurf Stomper; 08-12-2013 at 08:41. |
|
#7
|
||||
|
||||
|
Quote:
Code:
function DX12:boolean;
begin
Case GetDXV of
'9': Result:=False;
'9.0c': Result:=False;
'10': Result:=False;
'10.1': Result:=False;
'11': Result:=False;
'11.1': Result:=False;
'11.2': Result:=False;
'12': Result:=True;
else
Result:=False;
end;
end;
|
| The Following User Says Thank You to altef_4 For This Useful Post: | ||
pakrat2k2 (09-12-2013) | ||
|
#8
|
|||
|
|||
|
Hey,the exec2 function is not working for me.I have done everything to solve this but in vain.No files are executing and no error is occured.Please someone help me to solve this problem.
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mass Effect Collection - 5xDVD9 [3 GAMES + ALL DLCs + INNO SETUP + TRILOGY COMPAT. ] | REV0 | PC Games - CD/DVD Conversions | 13 | 01-12-2019 06:48 |
| The Amazing Spider-Man + DLC (2xDVD5 - Inno Setup) | Fabioddq | PC Games - CD/DVD Conversions | 8 | 28-07-2014 16:03 |
| Inno Setup Secure Installer | thilanka | Software | 0 | 21-01-2013 19:47 |
| Mass Effect Collection - 8xDVD5 [3 GAMES + ALL DLCs + INNO SETUP + TRILOGY COMPAT. ] | REV0 | PC Games - CD/DVD Conversions | 31 | 11-11-2012 12:22 |
| Dark Souls - Inno Setup - This is not a conversion, it's just custom installer | Fabioddq | PC Games - CD/DVD Conversions | 4 | 26-10-2012 19:48 |