Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 29-11-2013, 18:00
Smurf Stomper's Avatar
Smurf Stomper Smurf Stomper is offline
Registered User
 
Join Date: Feb 2007
Location: EU
Posts: 118
Thanks: 0
Thanked 10 Times in 8 Posts
Smurf Stomper is on a distinguished road
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
I would change it to something like this:

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
Adding the second line creates the option for a shortcut to the DX11-specific exe to be shortcutted on the desktop. What I need help with is setting some parameter in the two lines that only causes the appropriate one to be executed as the setup installs, based on the system's directX gpu capability.

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
the "isWin64" check is built in to inno setup, so I don't have to put a specific function in the CODE section. Unfortunately, no GPU directX check is built in that I'm aware of.

Anyone have a custom 'check' function already coded up that they'll share?
Reply With Quote
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 06:12.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com