View Single Post
  #11  
Old 29-09-2018, 08:37
K4miKaZe's Avatar
K4miKaZe K4miKaZe is offline
Registered User
 
Join Date: Sep 2018
Location: Spain
Posts: 146
Thanks: 177
Thanked 235 Times in 84 Posts
K4miKaZe is on a distinguished road
Mmmm i cant edit my last message, i actually fixed it myself. There is a small error on the code on the Script.iss file. All redists sections are checking if redist1 is enabled, so if number 1 is disabled no other works. Here is the code, its easy to fix, just changing the number for every redist on the script.

Code:
#if Redist2 == "1"
    if (CurStep = ssPostInstall) then begin
      if Redist1CB.Checked then begin
      #if UltraARC == "1"
        WizardForm.ProgressGauge.Hide;
      #endif
        WizardForm.StatusLabel.Caption := ExpandConstant('{cm:InstallingRedist2}');
        if not IsWin64 then begin
          Exec2(ExpandConstant('{#Redist2Exe32}'),'{#Redist2Param}',true);
        end else
          Exec2(ExpandConstant('{#Redist2Exe64}'),'{#Redist2Param}',true);
          Exec2(ExpandConstant('{#Redist2Exe32}'),'{#Redist2Param}',true);
      end;
    end;
As you can see in the red part the redist2 is checking for redist1, the same happens to all others. Just change 2 for 2, 3 for 3 and so on.
Reply With Quote
The Following 2 Users Say Thank You to K4miKaZe For This Useful Post:
Jawahir95 (29-09-2018), KaktoR (29-09-2018)