View Single Post
  #1466  
Old 08-06-2021, 07:41
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 3,583
Thanks: 943
Thanked 5,848 Times in 2,159 Posts
KaktoR is on a distinguished road
Try like this

Code:
  if LowResourceCB.Checked then begin
    ExtractTemporaryFile('low_ARC.ini');
    ExtractTemporaryFile('low_CLS.ini');
    RenameFile(ExpandConstant('{tmp}\low_ARC.ini', '{tmp}\Arc.ini'));
    RenameFile(ExpandConstant('{tmp}\low_CLS.ini', '{tmp}\Cls.ini'));
  end else begin
    ExtractTemporaryFile('ARC.INI');
    ExtractTemporaryFile('CLS.INI');
  end;
This code has to be placed BEFORE archive unpacking begins.
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
GaMEr_2077 (08-06-2021), Prince4 (08-06-2021)