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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 16-03-2015, 03:15
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Good work altef_4

PS: In example script (bp.iss) of "BASS Protect Plugin For Inno Setup" could add to line to script.

Code:
DeleteFile(ExpandConstant('{tmp}\')+fil);
Add green line in this script part:
Code:
#ifdef IS_ENHANCED
size_:=ExtractTemporaryFileSize(fil);
SetLength(Buffer,size_);
ExtractTemporaryFileToBuffer(fil,Cast{#defined UNICODE ? "Ansi" : ""}StringToInteger(Buffer));
#else
if not FileExists(ExpandConstant('{tmp}\')+fil) then ExtractTemporaryFile(fil);
FileSize(fil,size_);
SetLength(Buffer,size_);
LoadStringFromFile(ExpandConstant('{tmp}\')+fil,Buffer);
DeleteFile(ExpandConstant('{tmp}\')+fil);
#endif
If used Inno Setup Standard (Not Enhanced) delete the audio file after reading, not keeping it in the temporary folder.
Not protect, but hinders users from gaining access to the audio file.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
altef_4 (16-03-2015)
Sponsored Links
  #2  
Old 16-03-2015, 10:29
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by LuisCésar82 View Post
Good work altef_4

PS: In example script (bp.iss) of "BASS Protect Plugin For Inno Setup" could add to line to script.

Code:
DeleteFile(ExpandConstant('{tmp}\')+fil);
Add green line in this script part:
Code:
#ifdef IS_ENHANCED
size_:=ExtractTemporaryFileSize(fil);
SetLength(Buffer,size_);
ExtractTemporaryFileToBuffer(fil,Cast{#defined UNICODE ? "Ansi" : ""}StringToInteger(Buffer));
#else
if not FileExists(ExpandConstant('{tmp}\')+fil) then ExtractTemporaryFile(fil);
FileSize(fil,size_);
SetLength(Buffer,size_);
LoadStringFromFile(ExpandConstant('{tmp}\')+fil,Buffer);
DeleteFile(ExpandConstant('{tmp}\')+fil);
#endif
If used Inno Setup Standard (Not Enhanced) delete the audio file after reading, not keeping it in the temporary folder.
Not protect, but hinders users from gaining access to the audio file.
yes, this method will work.
Reply With Quote
The Following 3 Users Say Thank You to altef_4 For This Useful Post:
pakrat2k2 (16-03-2015), papas (04-10-2016), yasserdivar (16-09-2015)
Reply

Tags
inno seup, library

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
BlackBox v2 y_thelastknight Conversion Tutorials 567 11-03-2025 07:16
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
Useful Dll for Inno Setup users peterf1999 Conversion Tutorials 88 01-12-2017 16:00
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57



All times are GMT -7. The time now is 13:26.


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