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

Reply
 
Thread Tools Display Modes
  #1366  
Old 09-11-2019, 04:50
amin fear amin fear is offline
Registered User
 
Join Date: Feb 2012
Location: Inferno
Posts: 102
Thanks: 86
Thanked 57 Times in 30 Posts
amin fear is on a distinguished road
unarc.dll error code: -12 check sum error

I am getting "unarc.dll error code: -12 check sum error" at first percent/% of my setup decompression phase on SOME windows systems using below XTOOL command :

The decompression goes without error on most systems but on a few systems gives "unarc.dll error code: -12 check sum error" , anybody knows some solution for this ? increasing virtual memory does not help ! the system has 16GB Ram + CPU corei5 ,so the problem is not from computer resources , its very odd

Code:
xZLib+srep:m3f+4x4:b128mb:lzma:ultra:64m:bt4:fb273:lc8:mc1000000
__________________
Paint me white so i can invisibly fight in the light...paint me black so i can hide my tears in the shadow of your heart.
Reply With Quote
Sponsored Links
  #1367  
Old 09-11-2019, 06:28
Simorq's Avatar
Simorq Simorq is offline
Registered User
 
Join Date: Mar 2014
Location: Iran
Posts: 642
Thanks: 3,602
Thanked 1,303 Times in 464 Posts
Simorq is on a distinguished road
Quote:
Originally Posted by amin fear View Post
I am getting "unarc.dll error code: -12 check sum error" at first percent/% of my setup decompression phase on SOME windows systems using below XTOOL command :

The decompression goes without error on most systems but on a few systems gives "unarc.dll error code: -12 check sum error" , anybody knows some solution for this ? increasing virtual memory does not help ! the system has 16GB Ram + CPU corei5 ,so the problem is not from computer resources , its very odd

Code:
xZLib+srep:m3f+4x4:b128mb:lzma:ultra:64m:bt4:fb273:lc8:mc1000000
Use XTool 12_x86 for Decompression

and Edit CLS.ini
Code:
[SREP]
Bufsize=24m
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
Memory=512m
TempPath=.\
Reply With Quote
The Following User Says Thank You to Simorq For This Useful Post:
amin fear (10-11-2019)
  #1368  
Old 09-11-2019, 13:48
Andu21 Andu21 is offline
Registered User
 
Join Date: Feb 2016
Location: Impossible Planet
Posts: 114
Thanks: 179
Thanked 48 Times in 38 Posts
Andu21 is on a distinguished road
I'm having this error:
Code:
An error ocurred while unpacking: Unable to write data to disk!
Unarc.dll returned an error code: -11
ERROR: archive data corrupted (decompression fails)
What has me puzzled is that it occurs at random: 1%, 16.7%, 30%, sometimes even 40%, if the source was corrupted shouldn't it always fail at the same progress? I tried searching online and found a few methods(defrag, temp delete, increase page file, copy unarc.dll to game dir) with no success.
Reply With Quote
The Following User Says Thank You to Andu21 For This Useful Post:
Behnam2018 (31-01-2020)
  #1369  
Old 11-11-2019, 00:20
amin fear amin fear is offline
Registered User
 
Join Date: Feb 2012
Location: Inferno
Posts: 102
Thanks: 86
Thanked 57 Times in 30 Posts
amin fear is on a distinguished road
Quote:
Originally Posted by Simorq View Post
Use XTool 12_x86 for Decompression

and Edit CLS.ini
Code:
[SREP]
Bufsize=24m
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
Memory=512m
TempPath=.\
Thanks Simorq jan , the following error as i mentioned , resolved by pre-installing Visual C++ 2013 by using below CIU config :

Code:
[LauncherSettings]
------------------------------------------------------- 
InstallRedist=1

[Launch1]
Name=Visual C++ 2013
64Exe={src}\vcredist_x64_2013.exe
Argument=/q /passive
BeforeInstall=1
Checked=1
First installed Visual C++ 2013 , then unpacking data process started without any problem !

Is "XTool 12_x86" still dependent to Visual C++ 2013 ?

*************************************************

"unarc.dll error code: -12 check sum error" was very deceiving !
Nobody can guess the cause at first glimpse !
__________________
Paint me white so i can invisibly fight in the light...paint me black so i can hide my tears in the shadow of your heart.

Last edited by amin fear; 11-11-2019 at 00:24.
Reply With Quote
The Following 2 Users Say Thank You to amin fear For This Useful Post:
Behnam2018 (31-01-2020), Simorq (13-11-2019)
  #1370  
Old 13-11-2019, 09:00
artexjay artexjay is offline
Registered User
 
Join Date: Nov 2019
Location: Canada
Posts: 4
Thanks: 1
Thanked 2 Times in 2 Posts
artexjay is on a distinguished road
Inno Uninshs issue

Hello all,

I'm quite new to inno setup and new here as well. I have been having trouble with one of inno's addons mainly the uninshs. It's supposed to modify the uninstaller so that it prompts the user if they want to modify, repair or remove the program.

So the issue I'm having is that when i try to uninstall it doesn't do anything it simply closes the uninstaller but no files are removed. I did my best to follow the readme for properly adding it to the inno setup.

My setup simply installs the default inno myprog.exe. Im trying to understand the addons better first. I haven't done any compression tests yet.

This is what i have so far in my code:

Code:
; Script generated by the Inno Script Studio Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{413F3F57-3FFB-4B22-B47C-1D9DE9772114}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={commonpf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=mysetup
Compression=lzma
SolidCompression=yes
DisableWelcomePage=False
ShowTasksTreeLines=True
WizardResizable = Yes

#define Use_UninsHs_Default_CustomMessages
#include "uninshs.iss"

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Components]
Name: main; Description: "Main"; Types: full compact custom; Flags: fixed

[Files]

Source: "C:\Users\artex\AppData\Local\Programs\Inno Setup 6\Examples\MyProg.exe"; DestDir: "{app}";
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: shellexec skipifdoesntexist nowait skipifsilent postinstall;           \
Check: UninsHs_IsInstallation();

[Codes] //change to [Code (in inno)]
{ RedesignWizardFormBegin } // Don't remove this line!
// Don't modify this section. It is generated automatically.
procedure RedesignWizardForm;
begin
  with WizardForm do
  begin
    AutoScroll := False;
    ClientHeight := ScaleY(366);
    ClientWidth := ScaleX(500);
  end;

  with WizardForm.NextButton do
  begin
    Left := ScaleX(388);
    Top := ScaleY(330);
  end;

  with WizardForm.ProgressGauge do
  begin
    Height := ScaleY(13);
  end;

  with WizardForm.CancelButton do
  begin
    Left := ScaleX(32);
    Top := ScaleY(330);
  end;

  with WizardForm.BackButton do
  begin
    Left := ScaleX(300);
    Top := ScaleY(330);
  end;

{ ReservationBegin }
  // This part is for you. Add your specialized code here.

{ ReservationEnd }
end;
// Don't modify this section. It is generated automatically.
{ RedesignWizardFormEnd } // Don't remove this line!

procedure InitializeWizard();
begin
  UninsHs_InitializeWizard();
  RedesignWizardForm;
end;

procedure CurPageChanged(CurPageID: Integer);
begin
  UninsHs_CurPageChanged(CurPageID);
end;

function ShouldSkipPage(CurPageId: Integer): Boolean;
begin
  Result := False;
  UninsHs_ShouldSkipPage(CurPageId, Result);
end;

function NextButtonClick(CurPageID: Integer): Boolean;
begin
  Result := True;
  UninsHs_NextButtonClick(CurPageID, Result);
end;

procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
  UninsHs_CancelButtonClick(CurPageID, Cancel, Confirm);
end;

function InitializeUninstall(): Boolean;
begin
  Result := True;
  UninsHs_InitializeUninstall(Result);
end;
Any help would be appreciated. Thank you

Last edited by artexjay; 13-11-2019 at 09:08.
Reply With Quote
  #1371  
Old 04-01-2020, 09:28
mixtro mixtro is offline
Registered User
 
Join Date: Sep 2019
Location: Dubai
Posts: 15
Thanks: 7
Thanked 6 Times in 5 Posts
mixtro is on a distinguished road
Sometimes randomly whenever I repack games and extract/install, I receive this error from Lolz:

Can't open read file mapping

Last edited by mixtro; 04-01-2020 at 09:35. Reason: Fixed minor typo
Reply With Quote
The Following User Says Thank You to mixtro For This Useful Post:
Behnam2018 (08-01-2020)
  #1372  
Old 10-02-2020, 11:12
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,139
Thanks: 284
Thanked 1,316 Times in 599 Posts
Masquerade is on a distinguished road
Question BPK giving "Required Features Are Not Supported By DLL"

I have compressed an archive using Bink Pack (multiple .bik files). Compression is all good (no FreeArc errors) but whenever I feed it to my installer for decompression, I always get the following error:



As far as I know, CLS-BPK.DLL is the only way of decompressing files compressed using BPK (.exe). Not too sure what could be causing this error, I have tried recompressing the files, to no avail. I am using a standalone Arc CLI compressor with only BPK hooked up.

I am using Advanced Simple Installer Script v7.1.3 (if this helps).

If any more info is required I'll happily provide.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Behnam2018 (17-02-2020)
  #1373  
Old 11-02-2020, 01:47
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 3,449
Thanks: 5,422
Thanked 9,823 Times in 2,570 Posts
mausschieber is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
I have compressed an archive using Bink Pack (multiple .bik files). Compression is all good (no FreeArc errors) but whenever I feed it to my installer for decompression, I always get the following error:



As far as I know, CLS-BPK.DLL is the only way of decompressing files compressed using BPK (.exe). Not too sure what could be causing this error, I have tried recompressing the files, to no avail. I am using a standalone Arc CLI compressor with only BPK hooked up.

I am using Advanced Simple Installer Script v7.1.3 (if this helps).

If any more info is required I'll happily provide.
This feature isn't supported


FREEARC_ERRCODE_NOT_IMPLEMENTED= -8; (* Requested feature isn't supported *)
__________________
It would be nice if you appreciate my work with the thanks Button
Reply With Quote
The Following User Says Thank You to mausschieber For This Useful Post:
Behnam2018 (17-02-2020)
  #1374  
Old 11-02-2020, 07:56
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,279
Thanks: 1,071
Thanked 6,853 Times in 2,585 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
I have compressed an archive using Bink Pack (multiple .bik files). Compression is all good (no FreeArc errors) but whenever I feed it to my installer for decompression, I always get the following error:



As far as I know, CLS-BPK.DLL is the only way of decompressing files compressed using BPK (.exe). Not too sure what could be causing this error, I have tried recompressing the files, to no avail. I am using a standalone Arc CLI compressor with only BPK hooked up.

I am using Advanced Simple Installer Script v7.1.3 (if this helps).

If any more info is required I'll happily provide.
Try to use another compressor with bpk
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Behnam2018 (17-02-2020)
  #1375  
Old 24-04-2020, 06:46
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,279
Thanks: 1,071
Thanked 6,853 Times in 2,585 Posts
KaktoR is on a distinguished road
I want to create shortcuts with CreateShellLink function, it works for {commondesktop} but not for {group} nor {userstartmenu} / {commonstartmenu}. Why?

I read the information directly from INI file.

Code:
if IniKeyNotEmpty('Executable', 'Exe') then
begin
  CreateShellLink(
  ExpandConstant('{commonstartmenu}\' + GetIniString('Executable', 'ExeName', '', ExpandConstant('{tmp}\Settings.ini')) + '.lnk'),
  GetIniString('Executable','ExeName','',ExpandConstant('{tmp}\Settings.ini')),
  GetIniString('Executable','Exe','',ExpandConstant('{tmp}\Settings.ini')),
  GetIniString('Executable','ExeParam','',ExpandConstant('{tmp}\Settings.ini')),
  '',
  '',
  0,
  SW_SHOWNORMAL
  );
end;
__________________
Haters gonna hate
Reply With Quote
  #1376  
Old 24-04-2020, 07:14
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 988
Thanks: 1,681
Thanked 2,132 Times in 723 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
I want to create shortcuts with CreateShellLink function, it works for {commondesktop} but not for {group} nor {userstartmenu} / {commonstartmenu}. Why?

I read the information directly from INI file.
Post a usage example [Executable] section.
Perhaps because the folder where you are going to create the shortcut does not exist.
Perhaps because the executable does not exist (But I think it should create such randomness).
The path to Exe must be expanded if you use constants like {app}...
If the shortcut destination contains a subfolder, create the folder before calling CreateShellLink using:
ForceDirectories(ExpandConstant( FolderName ));
Code:
if IniKeyNotEmpty('Executable', 'Exe') then
begin
  CreateShellLink(
  ExpandConstant('{commonstartmenu}\' + GetIniString('Executable', 'ExeName', '', ExpandConstant('{tmp}\Settings.ini')) + '.lnk'),
  GetIniString('Executable','ExeName','',ExpandConstant('{tmp}\Settings.ini')),
  ExpandConstant(GetIniString('Executable','Exe','',ExpandConstant('{tmp}\Settings.ini'))),
  GetIniString('Executable','ExeParam','',ExpandConstant('{tmp}\Settings.ini')),
  '',
  '',
  0,
  SW_SHOWNORMAL
  );
end;
Here created correctly.
Reply With Quote
  #1377  
Old 24-04-2020, 07:30
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,279
Thanks: 1,071
Thanked 6,853 Times in 2,585 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
The path to Exe must be expanded if you use constants like {app}...
This was the error.

Thanks!

For all the code I just overlooked this
__________________
Haters gonna hate
Reply With Quote
  #1378  
Old 24-04-2020, 08:29
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,279
Thanks: 1,071
Thanked 6,853 Times in 2,585 Posts
KaktoR is on a distinguished road
So, how to delete the shortcuts after uninstall?

IS help tells me to do this through [UninstallDelete], but how?
__________________
Haters gonna hate
Reply With Quote
  #1379  
Old 24-04-2020, 10:10
DiCaPrIo DiCaPrIo is offline
Registered User
 
Join Date: Apr 2017
Location: Don't Know
Posts: 50
Thanks: 90
Thanked 49 Times in 30 Posts
DiCaPrIo is on a distinguished road
try it it might delete
Quote:
[UninstallDelete]
Type: FilesAndOrDirs; Name: {app}
Type: Files; Name: {code:GetIconDir}
#define IconName ReadIni(SourcePath + "\Settings.ini", "Executable", "ExeName", "")

[Code]
function GetIconDir(Value:String):string;
begin
Result:=ExpandConstant('{commonstartmenu}\{#IconNa me}.lnk')
end;
Reply With Quote
The Following User Says Thank You to DiCaPrIo For This Useful Post:
KaktoR (24-04-2020)
  #1380  
Old 24-04-2020, 11:09
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,279
Thanks: 1,071
Thanked 6,853 Times in 2,585 Posts
KaktoR is on a distinguished road
Thanks. Will look into this later

Edit: It works but only for one icon (not for both). Not very smart because I have to create functions for both desktop and group icons ^^

However, I just did it this way until I find a better way

Code:
[UninstallDelete]
Type: files; Name: {userdesktop}\{#Shortcut1Name}.lnk
Type: files; Name: {userstartmenu}\{#Name}\{#Shortcut2Name}.lnk
__________________
Haters gonna hate

Last edited by KaktoR; 24-04-2020 at 14:59.
Reply With Quote
Reply

Thread Tools
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
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 09:34.


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