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

Reply
 
Thread Tools Display Modes
  #91  
Old 30-11-2013, 05:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,099 Times in 2,295 Posts
Razor12911 is on a distinguished road
this is cool protection insanity. Awesome.
Reply With Quote
Sponsored Links
  #92  
Old 30-11-2013, 08:29
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
Altef, I was linked to your post #72 - any ideas on how I can implement just the gpu directX check in a desktop shortcut (see my short scenario here)? Thanks.
Reply With Quote
  #93  
Old 30-11-2013, 09:19
yener90 yener90 is offline
Registered User
 
Join Date: Nov 2008
Location: Away
Posts: 810
Thanks: 93
Thanked 1,093 Times in 217 Posts
yener90 is on a distinguished road
Quote:
Originally Posted by Smurf Stomper View Post
Altef, I was linked to your post #72 - any ideas on how I can implement just the gpu directX check in a desktop shortcut (see my short scenario here)? Thanks.
This check takes a while, so i wouldnt use it for starting an application

@altef ive got the same idea with dxdiag, unfortunately the creation takes a lot of time :/
Reply With Quote
  #94  
Old 30-11-2013, 09:38
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,099 Times in 2,295 Posts
Razor12911 is on a distinguished road
yep. Maybe you could add a form which reads, "Detecting Components, Please wait"
Reply With Quote
  #95  
Old 30-11-2013, 10:23
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,018 Times in 239 Posts
altef_4 is on a distinguished road
here is new example, without XML module, if you use IS 5.5.4, you can uncommend first line to make this example better
Code:
;#define InnoSetup5_5_4
[Setup]
AppName=Get_SYS_INFO
AppVersion=0.1b
CreateAppDir=no
VersionInfoDescription=altef_4
OutputBaseFilename=Get_SYS_INFO
OutputDir=.

[Icons]
Name: {userdesktop}\Far Cry 3 DX9; Filename: {app}\bin\FarCry3.exe; Parameters: -offline; WorkingDir: {app}\bin; Check: DX9;
Name: {userdesktop}\Far Cry 3 DX11; Filename: {app}\bin\FarCry3_D3D11.exe; Parameters: -offline; WorkingDir: {app}\bin; Check: DX11;

[Code]
var GetDXV:integer;
function DX9:boolean;
begin
  if GetDXV>=9 then Result:=True else Result:=False;
end;

function DX10:boolean;
begin
  if GetDXV>=10 then Result:=True else Result:=False;
end;

function DX11:boolean;
begin
  if GetDXV>=11 then Result:=True else Result:=False;
end;

function GetDX:Integer;
var
  dxv:string;
  buf:ansistring;
begin
Result:=9;
while Not FileExists(ExpandConstant('{tmp}')+'\dxdiag.txt') do Sleep(100);
LoadStringFromFile(ExpandConstant('{tmp}')+'\dxdiag.txt',buf);
delete(buf,1,Pos('DDI Version: ',buf));
dxv:=Copy(buf,13,2);
StringChange(dxv,#13,'');
Result:=StrToIntDef(dxv,9);
end;

function InitializeSetup(): Boolean;
var
  res:integer;
begin
  Exec(ExpandConstant('{win}\system32\dxdiag.exe'),'/whql:off /t '+ExpandConstant('{tmp}')+'\dxdiag.txt',ExpandConstant('{tmp}'),0,ewNoWait,res)
  Result:=True;
end;
#ifdef InnoSetup5_5_4
procedure CurInstallProgressChanged(CurProgress, MaxProgress: Integer);
begin
  if CurProgress = MaxProgress-1 then GetDXV:=GetDX;
end;
#else
procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep=ssInstall then GetDXV:=GetDX;
end;
#endif

Last edited by altef_4; 01-12-2013 at 08:45.
Reply With Quote
  #96  
Old 30-11-2013, 11:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,099 Times in 2,295 Posts
Razor12911 is on a distinguished road
Altef, there's also DX 10.1 and I think DX 11.2;

Oh and, What about 9.0c or does it fall under 9?
Reply With Quote
  #97  
Old 30-11-2013, 12:09
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,018 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
Altef, there's also DX 10.1 and I think DX 11.2;

Oh and, What about 9.0c or does it fall under 9?
just little change code

Code:
;#define InnoSetup5_5_4
[Setup]
AppName=Get_SYS_INFO
AppVersion=0.1c
CreateAppDir=no
VersionInfoDescription=altef_4
OutputBaseFilename=Get_SYS_INFO
OutputDir=.

[Icons]
Name: {userdesktop}\Far Cry 3 DX9; Filename: {app}\bin\FarCry3.exe; Parameters: -offline; WorkingDir: {app}\bin; Check: DX9;
Name: {userdesktop}\Far Cry 3 DX11; Filename: {app}\bin\FarCry3_D3D11.exe; Parameters: -offline; WorkingDir: {app}\bin; Check: DX11;

[Code]
var GetDXV:string;

function DX9:boolean;
begin
  Case GetDXV of
    '9':    Result:=True;
    '9.0c': Result:=True;
    '10':   Result:=True;
    '10.1': Result:=True;
    '11':   Result:=True;
    '11.2': Result:=True;
  else
  Result:=False;
  end;
end;

function DX10:boolean;
begin
  Case GetDXV of
    '9':    Result:=False;
    '9.0c': Result:=False;
    '10':   Result:=True;
    '10.1': Result:=True;
    '11':   Result:=True;
    '11.2': Result:=True;
  else
  Result:=False;
  end;
end;

function DX11:boolean;
begin
  Case GetDXV of
    '9':    Result:=False;
    '9.0c': Result:=False;
    '10':   Result:=False;
    '10.1': Result:=False;
    '11':   Result:=True;
    '11.2': Result:=True;
  else
  Result:=False;
  end;
end;

function GetDX:string;
var
  dxv:string;
  buf:ansistring;
begin
Result:='';
while Not FileExists(ExpandConstant('{tmp}')+'\dxdiag.txt') do Sleep(100);
LoadStringFromFile(ExpandConstant('{tmp}')+'\dxdiag.txt',buf);
delete(buf,1,Pos('DDI Version: ',buf));
dxv:=Copy(buf,13,Pos(' ',buf));
StringChange(dxv,#13,'');
Result:=dxv;
end;

function InitializeSetup(): Boolean;
var
  res:integer;
begin
  Exec(ExpandConstant('{win}\system32\dxdiag.exe'),'/whql:off /t '+ExpandConstant('{tmp}')+'\dxdiag.txt',ExpandConstant('{tmp}'),0,ewNoWait,res)
  Result:=True;
end;
#ifdef InnoSetup5_5_4
procedure CurInstallProgressChanged(CurProgress, MaxProgress: Integer);
begin
  if CurProgress = MaxProgress-1 then GetDXV:=GetDX;
end;
#else
procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep=ssInstall then GetDXV:=GetDX;
end;
#endif

Last edited by altef_4; 30-11-2013 at 12:33.
Reply With Quote
The Following 3 Users Say Thank You to altef_4 For This Useful Post:
pakrat2k2 (01-12-2013), papas (14-10-2016), sentinelks (30-11-2013)
  #98  
Old 06-12-2013, 06:16
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,018 Times in 239 Posts
altef_4 is on a distinguished road
little preview
Attached Images
File Type: png img.PNG (267.3 KB, 204 views)
Reply With Quote
The Following 4 Users Say Thank You to altef_4 For This Useful Post:
HellRazor (09-12-2013), pakrat2k2 (13-12-2013), papas (14-10-2016), Razor12911 (06-12-2013)
  #99  
Old 06-12-2013, 06:56
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,099 Times in 2,295 Posts
Razor12911 is on a distinguished road
Nice one bro.
Reply With Quote
  #100  
Old 09-12-2013, 07:16
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
altef, I had a question for you in the gpu directX thread, please answer when you have time. Thanks!
Reply With Quote
  #101  
Old 13-12-2013, 02:04
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,018 Times in 239 Posts
altef_4 is on a distinguished road
Mini Designer demo

here is demo of my Mini Designer, please, check it
(necessary files are not included, so you can't create setup.exe and data.zip, just to know how it looks)
Attached Files
File Type: 7z Mini_Designer.7z (979.1 KB, 123 views)
Reply With Quote
The Following 3 Users Say Thank You to altef_4 For This Useful Post:
pakrat2k2 (13-12-2013), sentinelks (13-12-2013), y_thelastknight (13-12-2013)
  #102  
Old 13-12-2013, 09:47
sentinelks sentinelks is offline
Banned
 
Join Date: Jun 2013
Location: hjklò
Posts: 281
Thanks: 74
Thanked 319 Times in 156 Posts
sentinelks is on a distinguished road
Thumbs up

Design incomparable
Reply With Quote
The Following User Says Thank You to sentinelks For This Useful Post:
altef_4 (13-12-2013)
  #103  
Old 13-12-2013, 10:13
yener90 yener90 is offline
Registered User
 
Join Date: Nov 2008
Location: Away
Posts: 810
Thanks: 93
Thanked 1,093 Times in 217 Posts
yener90 is on a distinguished road
Quote:
Originally Posted by altef_4 View Post
here is demo of my Mini Designer, please, check it
(necessary files are not included, so you can't create setup.exe and data.zip, just to know how it looks)
Sexy.

German Translation:
Create Data.zip = Data.zip erstellen
Create EI.exe = EI.exe erstellen
Stop Operations = Aufgaben stoppen
Generate Pass = Passwort generieren
Password length = Passwortlänge
Animated Splashscreen = Animierte Splashanzeige
Simple Splashscreen = Einfache Splashanzeige
Custom Font = Eigene Schriftart
Text Shadows = Textschatten
Music = Musik
Button Sound = Tastenton !!! dont know exactly Translation
Textured Progressbar = Texturierte Progressbar
Progressbar Animation = Animierte Progressbar
Glass Borders = Glas Ränder !!! dont know exactly Translation
Taskbar Preview = Taskleisten-Vorschau
Slideshow = Diashow
Transparent Borders = Transparente Ränder
Transparent Effect = Transparente Effekte
Simple Button = Einfache Tasten
Animated Button = Animierte Tasten

Those i skipped are not necessary to translate

Last edited by yener90; 13-12-2013 at 10:27.
Reply With Quote
The Following 2 Users Say Thank You to yener90 For This Useful Post:
altef_4 (13-12-2013), pakrat2k2 (13-12-2013)
  #104  
Old 13-12-2013, 13:34
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,030 Times in 3,083 Posts
pakrat2k2 is on a distinguished road
Quote:
Originally Posted by altef_4 View Post
here is demo of my Mini Designer, please, check it
(necessary files are not included, so you can't create setup.exe and data.zip, just to know how it looks)
looks sweet, nice job
Reply With Quote
The Following User Says Thank You to pakrat2k2 For This Useful Post:
altef_4 (13-12-2013)
  #105  
Old 14-12-2013, 05:18
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,018 Times in 239 Posts
altef_4 is on a distinguished road
2.3.1.5 beta

new preview, finally i added support of Original Inno Setup 5.5.4 (all features still present) script code only 220 kb soon i will need help with translations, now work on languages section.

UPD: fixed version without bug
Attached Files
File Type: rar 2.3.1.5_fixed.rar (2.08 MB, 124 views)

Last edited by altef_4; 15-12-2013 at 09:09. Reason: huge bug detected
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
y_thelastknight (14-12-2013)
Reply

Tags
inno setup, installer, script, source code

Thread Tools
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
Conversion Designer/Installer Creator Razor12911 Conversion Tutorials 1614 03-10-2024 02:24
Carldric Installer (Compact Version) Carldric Clement Conversion Tutorials 4 20-01-2023 02:43
Game Installer Designer by altef_4 altef_4 Conversion Tutorials 236 28-05-2021 03:54
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
Tutorial using CI 8.0.0 yener90 Conversion Tutorials 424 21-10-2014 10:49



All times are GMT -7. The time now is 05:08.


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