From: Brad L. <leg...@ea...> - 2007-03-10 14:15:33
|
I am trying to install Firebird Service on Windows Vista behind the scenes using the following command: "instsvc i" and I receive the error message listed below: Error occurred during "OpenSCManager". Access is denied. The Windows Vista User has full administrator rights. I seem to be stumped with this problem. Does anyone know what the solution is to this problem? Any help will be greatly appreciated. Sincerely, Brad |
From: Paul R. <pr...@ib...> - 2007-03-19 09:42:45
|
Brad Lee wrote: > I am trying to install Firebird Service on Windows Vista behind the scenes > using the following command: "instsvc i" and I receive the error message > listed > below: > > Error occurred during "OpenSCManager". > Access is denied. > > The Windows Vista User has full administrator rights. I seem to be stumped > with this problem. Does anyone know what the solution is to this problem? > Any help will be greatly appreciated. > Using the binary installer Fb 1.5.4 and 2.0.1 both install fine for 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 full admin rights that you thought you had. I'm not sure if that should prompt a :-) or a :-( The new faux security in Vista is infuriating. There is probably a setting somewhere to turn it off, but luckily I only have to use it in a VMWare session, so I can live with it for now. Paul -- Paul Reeves http://www.ibphoenix.com Supporting users of Firebird and InterBase |
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 |
From: Olivier M. <om...@ti...> - 2007-03-19 12:51:55
|
Le 19-mars-07 =E0 13:26, Olivier Mascia a =E9crit : > Being "admin" is yet not enough to install a software. Windows =20 > Vista does a special "elevation" ceremony which involves waving =20 > some chickens and singing esoteric psalms when it sees the =20 > executable has the word "setup" or "install" in it (more or less =20 > exact, please check documentation for the full story). This page introduces some related topics: http://technet.microsoft.com/en-us/windowsvista/aa905108.aspx --=20 Olivier Mascia |
From: Paul R. <pr...@ib...> - 2007-03-21 09:43:27
|
Olivier Mascia wrote: > > This page introduces some related topics: > > http://technet.microsoft.com/en-us/windowsvista/aa905108.aspx > Thanks for the link. There is some interesting reading there. One thing I noticed is that some of the UAC defaults differ depending on whether the Vista version is for the home or business. That is going to make for some head scratching. I still get the feeling that MS have produced a crappy solution to a problem that they created for themselves. And, as usual, it has a complexity level designed to bamboozle about 99.9% of the population. BTW, in case anyone missed it, here is an amusing article about the quality of MS developer documentation: http://www.regdeveloper.co.uk/2007/03/08/msdn_gloom/ Paul -- Paul Reeves http://www.ibphoenix.com Supporting users of Firebird and InterBase |
From: Olivier M. <om...@ti...> - 2007-03-21 10:22:05
|
Le 21-mars-07 =E0 10:43, Paul Reeves a =E9crit : > I still get the feeling that MS have produced a crappy solution to a > problem that they created for themselves. And, as usual, it has a > complexity level designed to bamboozle about 99.9% of the population. Oh yes, crappy solutions. Go try to find one official, politically =20 correct directory where an installed program might want to create, =20 read and write files that will be shared by all users who will run =20 that application... There somehow is one which is CSIDL_COMMON_APPDATA, but the access =20 rights are such that a standard user (w2k, winxp, vista) won't be =20 able to write there. The only provided solution is to have the =20 installer update the rights of that location. Which all softwares I =20 have seen doing so, do wrongly, trashing some other special rights. =20 Adding more crap to the crappy crap. There might come a day when poor Windows subjects will have to pray =20 Bill The Great before clicking the Start button... ;-) Really so much time and money to get to *that* (vista)? And people still think they get access to a masterpiece of the 21st =20 century technology? Bah... > BTW, in case anyone missed it, here is an amusing article about the > quality of MS developer documentation: > > http://www.regdeveloper.co.uk/2007/03/08/msdn_gloom/ Along the same line, the documentation for the Win32 API DeleteFile =20 which you can read here (http://msdn2.microsoft.com/en-us/library/=20 aa363915.aspx) in its newest version still gives invaluable advices =20 to developers, advices I could not live without: "To prevent loss of data, close files before you attempt to delete =20 them." Yeah sure. Thanks Mom. --=20 Olivier Mascia |