Access Viaolation related with "app" constant

44 views
Skip to first unread message

Ertan Küçükoglu

unread,
Dec 23, 2025, 3:13:01 AM (11 days ago) 12/23/25
to innosetup
Hello,

I am using InnoSetup 6.6.0 right now. However this issue might be one of the recent versions. There were frequent updates and I immediately installed them on my side. I do not know how I can identify the exact InnoSetup used in my compiled executable.

Problem I am having is I get two exception messages. Both are from the temporary executable (forked one I think)

First exception:
Runtime error (at 30:1897):
Access Violation at address 00E016BC in module 'xxxUpdateSetup.tmp' (offset 1B16BC). Read of address 0000001C

Second exception:
Runtime error (at 54:148):
Internal error: An attempt was made to expand the "app" constant before it was initialized.

I do not remember that I changed anything in my script file. I am maintaining them. So, I am not sure if there is any change in the way InnoSetup handles its initial run staging or something.

When I check the script I see nothing at the InitializeSetup that uses APP constant.

Any help is appreciated.

Thanks & Regards,
Ertan

Eivind Bakkestuen

unread,
Dec 23, 2025, 4:45:50 PM (10 days ago) 12/23/25
to inno...@googlegroups.com
Have you tried running the installer with /LOG to see if any details are logged?

Have you tried locating where in the script execution the errors occur? Eg, debugging, inserting "show message dialog", etc?

Have you reviewed all use of the APP constant in your scripts?

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/5fabd0ba-3014-4138-8213-735bd32f299bn%40googlegroups.com.

Ertan Küçükoglu

unread,
Dec 23, 2025, 5:44:48 PM (10 days ago) 12/23/25
to inno...@googlegroups.com
Hello,

Thanks for your reply.
There is already a log file. I didn't check its contents before though.
Below is what I see close to the error.

2025-12-24 01:39:27.128   Before Creating custom form...
2025-12-24 01:39:27.135   Custom form created.
2025-12-24 01:39:27.135   Before Creating label...
2025-12-24 01:39:27.136   Before positioning custom form...
2025-12-24 01:39:27.136   InitializeSetup raised an exception (fatal).
2025-12-24 01:39:27.136   Exception message:
2025-12-24 01:39:27.136   Message box (OK):
                          Runtime error (at 30:2215):
                         
                          Access violation at address 007D16BC in module 'ZEntegre_eMM_UpdateSetup.tmp' (offset 1B16BC). Read of address 0000001C.
2025-12-24 01:39:27.944   User chose OK.
2025-12-24 01:39:27.944   Deinitializing Setup.
2025-12-24 01:39:27.944   DeinitializeSetup raised an exception.
2025-12-24 01:39:27.944   Exception message:
2025-12-24 01:39:27.944   Message box (OK):

                          Runtime error (at 54:148):
                         
                          Internal error: An attempt was made to expand the "app" constant before it was initialized.
2025-12-24 01:39:28.493   User chose OK.
2025-12-24 01:39:28.496   Log closed.


I have below script code in my iss file for relevant log lines above
    Log('Before positioning custom form...');
    { Center on WizardForm. Without this call it will still automatically center, but on the screen }
    dlgWait.FlipAndCenterIfNeeded(True, WizardForm, False);

    Log('Before showing custom form...');


So, it is failing in InitializeSetup at line below
dlgWait.FlipAndCenterIfNeeded(True, WizardForm, False);

However, I have no idea why.

What I was doing is to display a form for the user to wait while services are shutdown.

Thanks & Regards,
Ertan

Eivind Bakkestuen <eivind.b...@gmail.com>, 24 Ara 2025 Çar, 00:45 tarihinde şunu yazdı:
You received this message because you are subscribed to a topic in the Google Groups "innosetup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/innosetup/vu6XYsCZ5FA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/CAH4EOO7HU5tYfyCevuJffpH%3DvA0V9c3sTGxFTY5o8sLj4RzabA%40mail.gmail.com.

Martijn Laan

unread,
Dec 24, 2025, 6:00:58 AM (10 days ago) 12/24/25
to inno...@googlegroups.com
Hi,

This shows you’re accessing WizardForm in InitializeSetup, but it doesn’t exist until InitializeWizard, so it’s nil. You then tell dlgWait to center on WizardForm, but since WizardForm is nil, you get an access violation.

It also looks like you’re using {app} in DeinitializeSetup without accounting for fatal errors that could occur before {app} is initialized: you’re still accessing {app} while it hasn’t been set, which isn’t allowed, so you get the internal error.

Greetings,
Martijn

-------- Original Message --------
Reply all
Reply to author
Forward
0 new messages