Error Message when the Installer has a Long Full Name

193 views
Skip to first unread message

Ahmed Hesham

unread,
Jul 5, 2022, 4:32:46 AM7/5/22
to innosetup
I get this error:

error.png
when I start the installer in a long path (installer name included).

After some testing, I noticed that the limit is 110 characters.

Jernej Simončič

unread,
Jul 5, 2022, 6:20:00 AM7/5/22
to Ahmed Hesham on [innosetup]

On Tuesday, July 5, 2022, 10:32:46, Ahmed Hesham wrote:


when I start the installer in a long path (installer name included).

Are you using any [Code] in your installer, specifically, calling any external DLL functions? Inno Setup is written in Delphi, so it doesn't use ucrtbase.dll anywhere.

 

-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


If two wrongs don't make a right, try three.
       -- Nixon's Rule

Ahmed Hesham

unread,
Jul 6, 2022, 2:58:06 AM7/6/22
to innosetup
Only this:

[code]
function DotNet4NotInstalled: Boolean;
begin
  Result := not IsDotNetInstalled(net4Full,0);
end;

Wilenty

unread,
Jul 6, 2022, 4:31:54 PM7/6/22
to innosetup
Hello,
I created example script based on the [code] you shared (attached).
And I used long path, for example:
c:\OutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutputOutput
over 110 characters.
The script compiled correctly, and executed correctly, so I don't see any problem with that part.

Please create and share minimum working example that causes the error, so we can compile and check it.
Short explanation:
https://minimalworkingexample.com/
Long explanation:
https://tex.meta.stackexchange.com/questions/228/ive-just-been-asked-to-write-a-minimal-working-example-mwe-what-is-that
Also, please provide information what a version of InnoSetup you used to compile the script.

Long explanation does not apply to the InnoSetup, so, please include only essential files in the script without direct paths, for example:

bad:
x:\MyPath\my.file

good:
.\MyPath\my.file
OR
good:
MyPath\my.file

And all files needed to compile the script have to be in the same location as the main script.

Probably you will not include your minimum working example with files here, so, please compress them into one archive and upload it on any file sharing hosting and paste the link to the share in the message.

Greetings,
Wilenty
Long_path_test.iss

Jernej Simončič

unread,
Jul 7, 2022, 9:17:21 AM7/7/22
to Ahmed Hesham on [innosetup]

On Wednesday, July 6, 2022, 08:58:05, Ahmed Hesham wrote:


Only this:

In that case, it's probably something on your computer injecting a library into the process, which is then causing the failure. I have tested one of my installers in a deep path, and as long as the full path + installer executable name did not exceed 260 characters, the Setup worked without problems.

 

-- 
< Jernej Simončič ><><><><>< https://eternallybored.org/ >


To beat the bureaucracy, make your problem their problem.
       -- Principle of Displaced Hassle
Reply all
Reply to author
Forward
0 new messages