View Single Post
  #42  
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)