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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 29-02-2020, 08:14
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Sorry, Mr. BlackFire69
I wrote a Script project and compressed it into data.cab and then mistakenly deleted the script file and I don't know how to get it.
what should I do now? There is a way to extract data.cab.
__________________
Search and Find
Reply With Quote
Sponsored Links
  #2  
Old 02-03-2020, 02:55
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by ADMIRAL View Post
Sorry, Mr. BlackFire69
I wrote a Script project and compressed it into data.cab and then mistakenly deleted the script file and I don't know how to get it.
what should I do now? There is a way to extract data.cab.
yes.

Code:
[Files]
Source: "pckr.dll"; Flags: dontcopy;

{Code]
var Init: Boolean;

function PInit(const Name, Password: PAnsiChar; Debug: Boolean):Boolean;
  external 'PInit@{tmp}\pckr.dll stdcall delayload';
procedure PExtractFile(const FName, Dest: PAnsiChar);
  external 'PExtractFile@{tmp}\pckr.dll stdcall delayload';

function InitializeSetup(): Boolean;
var
  S:string;
begin
  S:=ExpandConstant('{src}');
  ExtractTemporaryFile('pckr.dll');
  Init:=PInit(S+'\Data.cab','PASSWORD',True);
  if Init then begin
  PExtractFile('Script.iss',S+'\Script_EXTRACTED.iss');
  end;

  if FileExists(S+'\Script_EXTRACTED.iss') then MsgBox('Script.iss extracted.',mbInformation,MB_OK);
  Result:=False;
end;
copy data.cab to Output folder and try. (Requires the password which you used)
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (03-03-2020), Harsh ojha (02-03-2020), joker85 (03-07-2025)
  #3  
Old 03-03-2020, 07:01
ADMIRAL's Avatar
ADMIRAL ADMIRAL is offline
Registered User
 
Join Date: Oct 2019
Location: iran
Posts: 92
Thanks: 568
Thanked 40 Times in 34 Posts
ADMIRAL is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
yes.

Code:
[Files]
Source: "pckr.dll"; Flags: dontcopy;

{Code]
var Init: Boolean;

function PInit(const Name, Password: PAnsiChar; Debug: Boolean):Boolean;
  external 'PInit@{tmp}\pckr.dll stdcall delayload';
procedure PExtractFile(const FName, Dest: PAnsiChar);
  external 'PExtractFile@{tmp}\pckr.dll stdcall delayload';

function InitializeSetup(): Boolean;
var
  S:string;
begin
  S:=ExpandConstant('{src}');
  ExtractTemporaryFile('pckr.dll');
  Init:=PInit(S+'\Data.cab','PASSWORD',True);
  if Init then begin
  PExtractFile('Script.iss',S+'\Script_EXTRACTED.iss');
  end;

  if FileExists(S+'\Script_EXTRACTED.iss') then MsgBox('Script.iss extracted.',mbInformation,MB_OK);
  Result:=False;
end;
copy data.cab to Output folder and try. (Requires the password which you used)
Thanks Friend
__________________
Search and Find
Reply With Quote
Reply

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
ASIS: Advanced Simple Installer Script KaktoR Conversion Tutorials 1477 20-05-2026 10:52
INNO TROUBLESHOOT - Questions Here REV0 Conversion Tutorials 1565 29-11-2024 09:51
Source Codes Giveaway altef_4 Conversion Tutorials 19 16-10-2020 02:38
Please test the acceleration unpack NBB Conversion Tutorials 18 19-12-2015 08:25
Dungeon Siege: Throne Of Agony codes wolfsrain PSP Games 1 13-05-2008 10:49



All times are GMT -7. The time now is 16:21.


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