View Single Post
  #8  
Old 15-12-2018, 21:07
kocchi96x's Avatar
kocchi96x kocchi96x is offline
Registered User
 
Join Date: Aug 2016
Location: USA
Posts: 29
Thanks: 14
Thanked 14 Times in 12 Posts
kocchi96x is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Not without rewriting bunch of code.

I think the fastest "workaround" would be to include records.ini to setup.exe and let it unpack to temp folder (or let setup.exe create a new one instead). Before archive unpacking starts, use SaveStringToFile function and change "Source=" to source dir (from where you install) and "Output=" to target dir (destination of the game or whatever).

I have not looked up the code, but all needed info should be in "procedure UltraArc".

This way records.ini will be stored and read from %temp% folder instead of source folder (so it's not directly visible to the users).

The complicated way is to use ISArcExtract
Code:
if not ArcExtract(100,'Archive.arc') then break;
But for this much more code changing is needed.
After some trial and error i got it working thanks for the lead their and thanks for the script.
Reply With Quote