From: Olivier M. <om...@ti...> - 2007-03-19 12:25:51
|
Le 19-mars-07 =E0 10:42, Paul Reeves a =E9crit : > Brad Lee wrote: >> I am trying to install Firebird Service on Windows Vista behind =20 >> the scenes >> using the following command: "instsvc i" and I receive the error =20 >> message >> listed >> below: >> >> Error occurred during "OpenSCManager". >> Access is denied. >> > > Using the binary installer Fb 1.5.4 and 2.0.1 both install fine for =20= > me. > I'm just installing as a regular admin user. > > On the other hand, if I open a command prompt and try this: > > instsvc stop > > I get the same error as you. So I suspect that you don't have the =20 > full > admin rights that you thought you had. I'm not sure if that should > prompt a :-) or a :-( Being "admin" is yet not enough to install a software. Windows Vista =20= does a special "elevation" ceremony which involves waving some =20 chickens and singing esoteric psalms when it sees the executable has =20 the word "setup" or "install" in it (more or less exact, please check =20= documentation for the full story). "instsvc" does not benefit from this obviously, while the official =20 installer has the right name. What's more if the installer is rebuild =20= with the latest InnoSetup version it will get special treatment to =20 ensure it does not fail installing. Try renaming instsvc.exe to svc-setup.exe or install-svc.exe, I don't =20= have a Vista anymore right here for now (I'm so happy!) but I think =20 it should work. (Not that this is a recommended solution). Of course there are other ways : we can embed a specific manifest =20 resource file in the executable requiring the elevation. All this stuff is only the equivalent thing as requiring the user to =20 type "sudo instsvc" on a linux system in order for instsvc to have =20 temporarily enough privileges to do its job. Unfortunately that =20 feels more complicated needlessly as always with Windows... --=20 Olivier Mascia |