FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   INNO TROUBLESHOOT - Questions Here (https://fileforums.com/showthread.php?t=93193)

amin fear 09-11-2019 04:50

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

Simorq 09-11-2019 06:28

Quote:

Originally Posted by amin fear (Post 483394)
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=.\


Andu21 09-11-2019 13:48

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.

amin fear 11-11-2019 00:20

Quote:

Originally Posted by Simorq (Post 483395)
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 !

artexjay 13-11-2019 09:00

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

mixtro 04-01-2020 09:28

Sometimes randomly whenever I repack games and extract/install, I receive this error from Lolz:

Can't open read file mapping

Masquerade 10-02-2020 11:12

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:

https://i.imgur.com/vqpLPCL.png

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.

mausschieber 11-02-2020 01:47

Quote:

Originally Posted by Masquerade (Post 484599)
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:

https://i.imgur.com/vqpLPCL.png

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 *)

KaktoR 11-02-2020 07:56

Quote:

Originally Posted by Masquerade (Post 484599)
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:

https://i.imgur.com/vqpLPCL.png

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

KaktoR 24-04-2020 06:46

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;


Cesar82 24-04-2020 07:14

Quote:

Originally Posted by KaktoR (Post 485447)
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.
https://i.imgur.com/5ZO5ImN.jpg

KaktoR 24-04-2020 07:30

Quote:

Originally Posted by Cesar82 (Post 485448)
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:D:p

KaktoR 24-04-2020 08:29

So, how to delete the shortcuts after uninstall?

IS help tells me to do this through [UninstallDelete], but how?

DiCaPrIo 24-04-2020 10:10

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;

KaktoR 24-04-2020 11:09

Thanks. Will look into this later :D

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



All times are GMT -7. The time now is 08:27.

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