Subject Trouble with Windows 7: Installing and starting SuperServer 2.1.3 from ZIP package
Author Matthias Hanft
Hello,

I'm trying to adapt an older software (Delphi 7, FB SS 1.5) to
Windows 7 and FB SS 2.1.

I'm using (an older version of) InstallShield Express and the
ZIP distribution of FB.

During the installation ("setup.exe" from Installshield), all
files are copied to the destination's hard disk, then (my
Delphi 7) "FBInst.dll" is called which uses Window's "Create-
Process" in my function RunProgram:

myResult:=RunProgram('instreg.exe install');
myResult:=RunProgram('instsvc install -superserver -auto -guardian');
myResult:=RunProgram('instsvc start');
myResult:=RunProgram('instclient install gds32');

This was OK until Windows XP, but in Windows 7, it doesn't work
any more, even if I run "setup.exe" "As Administrator".

You can watch this manually by opening a command line in W7 by "cmd":

--- cut here ---

C:\Program Files\Firebird\Firebird_2_1\bin>instreg install
Firebird has been successfully installed in the registry.

C:\Program Files\Firebird\Firebird_2_1\bin>instsvc install -superserver -auto -guardian
Error occurred during "OpenSCManager".
Access denied

C:\Program Files\Firebird\Firebird_2_1\bin>instsvc start
Error occurred during "OpenSCManager".
Access denied

C:\Program Files\Firebird\Firebird_2_1\bin>instclient i gds32
Error 5 occurred during "CopyFile(FBCLIENT.DLL, WinSysDir\_FBCLIENT.DLL)".
Access denied

--- cut here ---

But if you run "cmd" "As Administrator", it seems to work:

--- cut here ---

C:\Program Files\Firebird\Firebird_2_1\bin>instreg install
Firebird has been successfully installed in the registry.

C:\Program Files\Firebird\Firebird_2_1\bin>instsvc install -superserver -auto -guardian
Service "Firebird Guardian - DefaultInstance" successfully created.
Service "Firebird Server - DefaultInstance" successfully created.

C:\Program Files\Firebird\Firebird_2_1\bin>instsvc start
Service "Firebird Guardian - DefaultInstance" successfully started.

C:\Program Files\Firebird\Firebird_2_1\bin>instclient install gds32
GDS32.DLL has been installed to the System directory.

--- cut here ---

Obviously, W7 "forgets" somewhere between setup.exe -> FBInst.dll ->
instsvc.exe that the user runs all this "As Administrator".

Any clue until here?

Then, even after successful "cmd-as-Admin" installation (when the
Guardian and the Server are registered as Windows services), I still
can't start any of them (via the Service Manager):

- Starting the Guardian tells me something like "Service "Firebird
Guardian - DefaultInstance" was started on "Local Computer" and
then stopped. Some services are stopped automatically when not
in use by other services or programs".

- Starting the Server itself tells me "Service "Firebird Server -
DefaultInstance" on "Local Computer" could not be started. Error
1053: The service didn't reply in time to the start or control
command".

Using EVENTVWR tells me "The registry information is missing.
Please run the Firebird Configuration Utilite to launch the server
thread. errno : 1053"

but REGEDIT shows me HKLM\SOFTWARE\Firebird Project\Firebird
Server\Instances\DefaultInstance = "C:\Program Files\Firebird\
Firebird_2_1\" - seems to be OK?

I'd *really* like to install FB from my InstallShield "setup.exe"
(as until now), without asking not-so-silly installation questions
to silly users :-) - but if all else fails, I'm just stuck to the
FB Windows EXE installer?! Is there some /SILENT option, at least?

Thank you,

-Matt



[Non-text portions of this message have been removed]