![]() |
I have another question: I am trying to make an array of strings I have tried this but it doesn't work:
var MyArray: array [0..2] of string =('cat','dog','man'); Is it possible to declare and initialize an array of strings in such a way? |
Quote:
MyArray: array of string; begin MyArray := ['cat','dog','man']; |
Quote:
|
Quote:
https://www.tutorialspoint.com/pascal/ |
Anyone knows if there is SuspendProc for ISDone too?
Respectively to pause TimeStr2. |
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 |
Quote:
and Edit CLS.ini Code:
[SREP] |
I'm having this error:
Code:
An error ocurred while unpacking: Unable to write data to disk! |
Quote:
Code:
[LauncherSettings]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 ! |
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. |
Sometimes randomly whenever I repack games and extract/install, I receive this error from Lolz:
Can't open read file mapping |
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. |
Quote:
FREEARC_ERRCODE_NOT_IMPLEMENTED= -8; (* Requested feature isn't supported *) |
Quote:
|
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 |
Quote:
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') thenhttps://i.imgur.com/5ZO5ImN.jpg |
Quote:
Thanks! For all the code I just overlooked this:D:p |
So, how to delete the shortcuts after uninstall?
IS help tells me to do this through [UninstallDelete], but how? |
try it it might delete
Quote:
|
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] |
Quote:
But as the shortcut was created on installation in the code, you can remove this shortcut using the code in the: procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); Code:
if IniKeyNotEmpty('Executable', 'Exe') thenfunction InitializeUninstall (): Boolean; |
I did it this way too, but doesn't work.
My old code Code:
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);Edit: Quote:
|
1 Attachment(s)
Code:
[UninstallDelete]Using ISPP it is not possible to change the name of the shortcuts by changing any external ini after compiling the script |
Thanks Cesar.
But there seems to be a problem with this ispp code. I have this Code:
[Executable1]The shortcut on desktop and startmenu is always C:\bin\application.exe. I would like it read from INI: DefaultInstallDir={sd}\Games\{#Name} |
1 Attachment(s)
Quote:
@KaktoR, I changed the attachment. If you don't want to use tasks for the desktop shortcut, simply remove the [Tasks] section and also + "Tasks: desktopicon;" the shortcut line. If you do not want to use a URL, simply do not include the lines referring to the URL shortcut. |
Thanks, this works fine.
I just don't understand all of this ispp things... Will read about it some more. |
Quote:
In the example in the above file you are saving a preprocessed script. This file is used to visualize how the preprocessed code will look. If using ISPP it is not possible to use an external Settings.ini with settings for shortcuts. Using ISPP the settings.ini settings are "copied" to script.iss when compiling and cannot be changed afterwards. |
does the new inno 6.0.5 have Dark theme built-in ?
|
Unknown Type: PChar
Hello all, I have been adding the module ITDownload to my installer script, so redist files can be downloaded instead of me having to bundle them into the installer.
I currently have everything integrated, here is an example: Code:
procedure InstallRedists;Code:
#define directxI integrated into the script the iss file and module: Code:
#include "Resources\Modules\itd\it_download.iss"https://i.imgur.com/Ea67Y36.png Does anyone know what this error could mean? The error lies in the iss script for the ITDownlaod module and not in my installer script. I am using Inno Setup Unicode 6.0.3 |
Seems like the variable type PChar is not anymore compatible with Inno Setup 6.
https://jrsoftware.org/ishelp/index.php?topic=unicode Quoting: Quote:
Quote:
|
Quote:
On testing though, things get a little nasty: https://i.imgur.com/4wUj20w.png The progress bar is at 100% so the redist downloader process is began. Installing/Uninstalling works without checking redist box so the script still functions. Only with redist selected will cause this. Edit: the module is loaded, behind the buttons that the text for the module is there (the progress bar, eta etc..). |
I think that this module is pretty old and it might not support newer versions of Inno Setup thus the problem may arise from another incompatibility... but I think that something else can be done.
Have you tried translating the error message? I know that if you cannot copy and paste you should rely on OCR reading from the screenshot but I think you might give it a try if it says something relevant Also, does it give the same problem with both PAnsiChar and AnsiString? |
Quote:
I would like to analyze this. Another way to make Unicode and Ansi compatible is to just include this before the functions that PChar uses. Code:
#ifdef UNICODEThe FTP, HTTP and HTTPS protocols are supported. |
Quote:
|
Quote:
Look on how the CRCPage was created. This should guide you in the right direction :p |
Loading items in combobox from text file
I am trying to load the items in a combobox from a text file but whats it loading is the last line and not all the lines..
Pl help. Thnx in advance.. Code:
var |
Quote:
Code:
procedure GetFileLines(const FileName: string; var Combo: TComboBox); |
Quote:
Code:
procedure GetFileLines(const FileName: string; var Combo: TComboBox);I have second Combobox which is dependent on first combobox for its filename. Procedure is generating Combobox1.Items.Text as Line1Line2Line3(...).ini Pl tell me how to fix it.. Code:
Combobox2:= TComboBox.Create(WizardForm); |
Quote:
Code:
var |
1 Attachment(s)
Quote:
This code didn't work.. I am trying something else and I don't know whether it would fix it or not.. Pl have a look at the attached script.. |
| All times are GMT -7. The time now is 08:12. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com