|
|
|
#1
|
|||
|
|||
|
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;
begin
itd_init;
#ifdef directx
itd_addfile('https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe',expandconstant('{app}\_Redist\dxwebsetup.exe'));
#endif
itd_downloadafter(wpInstalling);
#ifdef directx
Exec2(ExpandConstant('{app}\_Redist\dxwebsetup.exe'),'',true);
#endif
end;
Code:
#define directx I integrated into the script the iss file and module: Code:
#include "Resources\Modules\itd\it_download.iss" ![]() 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 |
| Sponsored Links |
|
#2
|
|||
|
|||
|
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:
|
| The Following User Says Thank You to pincoball For This Useful Post: | ||
Masquerade (02-06-2020) | ||
|
#3
|
|||
|
|||
|
Quote:
On testing though, things get a little nasty: ![]() 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..). Last edited by Masquerade; 02-06-2020 at 07:10. |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
||||
|
||||
|
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 UNICODE type PChar = PAnsiChar; #endif The FTP, HTTP and HTTPS protocols are supported. |
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Masquerade (03-06-2020) | ||
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
||||
|
||||
|
Quote:
![]() Look on how the CRCPage was created. This should guide you in the right direction
__________________
Haters gonna hate
|
| The Following User Says Thank You to KaktoR For This Useful Post: | ||
Masquerade (03-06-2020) | ||
|
#8
|
||||
|
||||
|
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
S: String;
function GetFileLines(const FileName: string; out Items: string): Boolean;
var
FileLines: TArrayOfString;
LineIndex: Integer;
begin
Result:= LoadStringsFromFile(FileName, FileLines);
if Result then
for LineIndex:=0 to (GetArrayLength(FileLines)-1) do
Items:= FileLines[LineIndex];
end;
Combobox1:= TComboBox.Create(WizardForm);
with Combobox1 do
begin
Parent:=WizardForm;
SetBounds(left, Top, Width, Height);
Style:=csDropDown;
Color:=clWhite;
if GetFileLines(ExpandConstant('{src}\Text.ini'), S) then
Items.Add(S);
end;
Last edited by bunti_o4u; 19-06-2020 at 09:12. |
|
#9
|
||||
|
||||
|
Quote:
Code:
procedure GetFileLines(const FileName: string; var Combo: TComboBox);
var
FileLines: TArrayOfString;
LineIndex: Integer;
begin
if LoadStringsFromFile(FileName, FileLines) then
for LineIndex := 0 to GetArrayLength(FileLines) - 1 do
Combo.Items.Add(FileLines[LineIndex]);
end;
Combobox1:= TComboBox.Create(WizardForm);
with Combobox1 do
begin
Parent := WizardForm;
SetBounds(left, Top, Width, Height);
Style := csDropDown;
Color := clWhite;
GetFileLines(ExpandConstant('{src}\Text.ini'), Combobox1)
end;
|
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
bunti_o4u (19-06-2020) | ||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |