Меню

Внутренняя ошибка an attempt was made to expand the app constant before it was initialized

Thanks for helping, the problem got solved!

Before the user reaches the ‘Select Destination Location’ the {app} variable is not set.
My DeInitialize-Procedure looked like this:

procedure DeinitializeSetup();
var
  SettingsPath: String;
begin   
    SettingsPath := ExpandConstant('{app}')
    DelTree(SettingsPath + 'bin', True, True, True);
end;

What I did is I created a Boolean variable at the beginning:

[Code]
var appIsSet: Boolean;

I set it to false at initializing:

function InitializeSetup(): Boolean;
begin
//    interesting code
appIsSet := False;
end;

… and set it to ‘true’ after the user has reached ‘wpSelectDir’ in nextButtonClick (see code snippet below:)

begin
if CurPageID = wpSelectDir then
begin
    appIsSet := True;

The last step is to check in the Deinitialize-Procedure if the boolean variable is set. If so, he can access on it, if not — do nothing:

procedure DeinitializeSetup();
var
    SettingsPath: String;
begin
if appIsSet then begin
    SettingsPath := ExpandConstant('{app}')
    DelTree(SettingsPath + 'bin', True, True, True);
end;
end;

Old

1st November 2009, 04:06 AM

Default
Installation failure (INNO?) of DCU only


Hi

NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe

Fails with
Runtime Error (at 114:1140):

Internal error: An attempt was made to expand the «app» constant before
it was initialized.


TIA
Dan

Old

1st November 2009, 10:18 AM

Eivind Bakkestuen [NDD]

 

Default
Re: Installation failure (INNO?) of DCU only


> Internal error: An attempt was made to expand the «app» constant
> before it was initialized.

Strange, I can’t reproduce here; perhaps its a dud download?


Eivind Bakkestuen [NDD]
Nexus Database Systems

Old

1st November 2009, 07:51 PM

Default
Re: Installation failure (INNO?) of DCU only


Eivind Bakkestuen [NDD] wrote:

> > Internal error: An attempt was made to expand the «app» constant
> > before it was initialized.

>
> Strange, I can’t reproduce here; perhaps its a dud download?

Hi Eivind

Do you really think so?

NexusDB_3.0101_(DCU_Only)_for_D2006.zip 6,602 KB Compressed
(zipped) Folder 01/11/2009 2:42 AM
NexusDB_V3.02_DCU_Only_for_Delphi_2006(3).zip 6,816 KB Compressed
(zipped) Folder 01/11/2009 2:41 AM
NexusDB_V3.02_DCU_Only_for_Delphi_2006(2).zip 6,816 KB Compressed
(zipped) Folder 01/11/2009 1:45 AM
NexusDB_V3.02_DCU_Only_for_Delphi_2006.zip 6,816 KB Compressed
(zipped) Folder 01/11/2009 1:08 AM
nxEnterpriseManager_3.02.zip 5,230 KB Compressed
(zipped) Folder 01/11/2009 1:07 AM
nxServer_3.02.zip 2,578 KB Compressed
(zipped) Folder 01/11/2009 1:07 AM
nxRecover_3.01.zip 895 KB Compressed
(zipped) Folder 01/11/2009 1:06 AM
NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe 6,837 KB Application
06/10/2009 3:09 PM

I use 7-zip to extract the exe from the zip and it worked for
NexusDB_3.0101_(DCU_Only)_for_D2006.zip

To me it seems that the only reason for zipping is attaching a password
as the exe and zip is about the same size.

NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe 6,837 KB Application
06/10/2009 3:09 PM
CRC32: 1EF4CE3C
MD5: 40500794DA3855B301DA07FE49FD2FB4
SHA-1: 64EC62D36E977D9C92C1066AE02C83B66615896E


TIA
Dan

Old

3rd November 2009, 01:02 AM

Default
Re: Installation failure (INNO?) of DCU only


dan wrote:

> Eivind Bakkestuen [NDD] wrote:
>
> > > Internal error: An attempt was made to expand the «app» constant
> > > before it was initialized.

> >
> > Strange, I can’t reproduce here; perhaps its a dud download?

>
> Hi Eivind
>
>
> I use 7-zip to extract the exe from the zip and it worked for
> NexusDB_3.0101_(DCU_Only)_for_D2006.zip
>
> NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe 6,837 KB
> Application 06/10/2009 3:09 PM
> CRC32: 1EF4CE3C
> MD5: 40500794DA3855B301DA07FE49FD2FB4
> SHA-1: 64EC62D36E977D9C92C1066AE02C83B66615896E

Hi Eivind

I have now downloaded it at least 10 times.
On XP SP3 on both a desktop AMD3200+ and an HP Laptop Intel T7400 I get
the same error.
However, on my Vista Business SP2 AMD Desktop it works flawlessly.
All machines have enough diskspace and >2GB RAM.

Also NexusDB_3.0101_(DCU_Only)_for_D2006.zip worked fine on the XP
Desktop. I am going to try it on the Laptop now.

The irony is that you need some manual tricks to make BDS2006 register
on Vista whilst it flies through on XP.


tia
dan

Old

3rd November 2009, 09:44 AM

Eivind Bakkestuen [NDD]

 

Default
Re: Installation failure (INNO?) of DCU only


> On XP SP3 on both a desktop AMD3200+ and an HP Laptop Intel T7400 I
> get the same error.
> However, on my Vista Business SP2 AMD Desktop it works flawlessly.
> All machines have enough diskspace and >2GB RAM.

That is indeed strange. Is there anything common to the machines, eg,
have both machines where its failing had NexusDB installed before,
while those where it works have never had, or something like that?


Eivind Bakkestuen [NDD]
Nexus Database Systems

Old

3rd November 2009, 02:36 PM

Eivind Bakkestuen [NDD]

 

Default
Re: Installation failure (INNO?) of DCU only


> On XP SP3 on both a desktop AMD3200+ and an HP Laptop Intel T7400 I
> get the same error.

Is there a chance, that on the above machines, you have not yet
installed Delphi, or at least never started Delphi under the windows
user account you are logged into when running the installer?

The installer expects certain things to be present in the windows
registry, which only running Delphi at least once will create.


Eivind Bakkestuen [NDD]
Nexus Database Systems

Old

4th November 2009, 11:31 PM

Default
Re: Installation failure (INNO?) of DCU only


Eivind Bakkestuen [NDD] wrote:

> > On XP SP3 on both a desktop AMD3200+ and an HP Laptop Intel T7400 I
> > get the same error.

>
> Is there a chance, that on the above machines, you have not yet
> installed Delphi, or at least never started Delphi under the windows
> user account you are logged into when running the installer?
>
> The installer expects certain things to be present in the windows
> registry, which only running Delphi at least once will create.

A) To get over this impasse:
If I have NexusDB_V3.02_DCU_Only_for_Delphi_2006 installed somewhere
can I copy its DCU’s over the installation of
NexusDB_3.0101_(DCU_Only)_for_D2006?

B) In Answer to your question:
Work Laptop Intel T7400 +3GB RAM XP SP3 :
BDS2006 Installed for 2 years but not much used.
Normally part of domain but was part of home workgroup network during
installation problems.
Uses Sophos AV managed by IT dpt
Installs NexusDB_3.0101_(DCU_Only)_for_D2006.zip with no problems
when installing NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe
it fails with
Runtime Error (at 114:1140):
Internal error: An attempt was made to expand the «app» constant before
it was initialized.

Home Desktop 1: AMD 3200 +2GB RAMXP SP3 :
BDS2006 Installed for 3 years and used over weekends.
Part of home workgroup network
Uses AVG 9 Professional
Installs NexusDB_3.0101_(DCU_Only)_for_D2006.zip with no problems
when installing NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe
it fails with
Runtime Error (at 114:1140):
Internal error: An attempt was made to expand the «app» constant before
it was initialized.

Home Desktop 2: AMD 6600 +4GB RAM Vista Business SP2:
BDS2006 Installed for 3 years and used over weekends.
Part of home workgroup network
Uses AVG 9 Professional
Installs NexusDB_V3.02_DCU_Only_for_Delphi_2006.exe cleanly.

Thx
Danny

Old

5th November 2009, 08:21 AM

Eivind Bakkestuen [NDD]

 

Default
Re: Installation failure (INNO?) of DCU only


> If I have NexusDB_V3.02_DCU_Only_for_Delphi_2006 installed somewhere
> can I copy its DCU’s over the installation of
> NexusDB_3.0101_(DCU_Only)_for_D2006?

Yes, that should work.


Eivind Bakkestuen [NDD]
Nexus Database Systems

Old

6th November 2009, 04:09 PM

Default
Re: Installation failure (INNO?) of DCU only


More on this issue,

Clean winXP install on a new laptop, updated with current XP patches,
RAD studio 2010, and again failure to install 3.02 DCU edition with the
Runtime Error (at 117:576): ‘An attempt was made to expand the ‘app’
constant before it was initialized’

Only other software installed is OpenOffice 3.1, Firefox 3.5.4, CBuilder
5 and Adobe Reader 9. All of which are also on the system that did
install with no issues.

So far the 2010 DCU has failed on 2 out of 3 systems for me.

Any update as to getting the DCU edition to work properly with the
CBuilder side of 2010? I’ll settle for a manual install that has
properly compiled files.

Eivind Bakkestuen [NDD] wrote:


>> If I have NexusDB_V3.02_DCU_Only_for_Delphi_2006 installed somewhere
>> can I copy its DCU’s over the installation of
>> NexusDB_3.0101_(DCU_Only)_for_D2006?

>
> Yes, that should work.
>
>

Old

6th November 2009, 09:45 PM

Eivind Bakkestuen [NDD]

 

Default
Re: Installation failure (INNO?) of DCU only


> Any update as to getting the DCU edition to work properly with the
> CBuilder side of 2010? I’ll settle for a manual install that has
> properly compiled files.

Can you please email to support at nexusdb dot com, include your
customer details, and I’ll send you a special version of the installer
that hopefully will allow me to figure out what goes wrong on your
system. Gotta be something I haven’t taken into account, and I’d sorely
like to know why so it doesnt happen again. (We’ll also get it properly
installed, naturally.


Eivind Bakkestuen [NDD]
Nexus Database Systems

CD runtime error — Windows ME — EarMaster Community

CD runtime error — Windows ME

Moderator: Quentin

Guest

CD runtime error — Windows ME

Hi, I have puchased earmaster 5 pro from a music shop on CD. When installing, I have the runtime error at 8:836… Internal error: An attempt was made to expand the app constant before it was initialized.
I note that Gus has posted this problem before but as I have not purchased through download, I don’t know what to do. I am running Windows ME

Regards
Paul Smith


User avatar

Hans

EarMaster.com
Posts: 278
Joined: May 24, 2005 12:54 am
Location: Denmark

Post

by Hans » Jun 09, 2005 1:55 am

Unfortunately this Windows 98/ME problem was also on the first CD’s we shipped. Please send an email with your serial number and mailing address to Sales (find the email address here: http://www.earmaster.com/about_us.htm), then we will ship a replacement CD for you.

To begin using EarMaster now, just download the installation program from this website.

Best regards,
Hans Jakobsen
EarMaster


Guest

Re: CD runtime error — Windows ME

Post

by Guest » Apr 01, 2006 12:46 pm

Anonymous wrote:Hi, I have puchased earmaster 5 pro from a music shop on CD. When installing, I have the runtime error at 8:836… Internal error: An attempt was made to expand the app constant before it was initialized.
I note that Gus has posted this problem before but as I have not purchased thrgh download, I don’t know what to do. I am running Windows ME

Regards
Paul Smith


User avatar

Hans

EarMaster.com
Posts: 278
Joined: May 24, 2005 12:54 am
Location: Denmark

Post

by Hans » Apr 02, 2006 11:36 pm

We will replace the CD no matter if you have purchased EarMaster online or through a store. Please send an email with your serial number and mailing address to Sales (find the email address here: http://www.earmaster.com/about_us.htm), then we will ship a replacement CD for you.

Best regards,
Hans Jakobsen
EarMaster


cron

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Внутренняя ошибка 501 личный кабинет машиниста
  • Внутренняя ошибка 500 яндекс