| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Cannot Run TWGS v2.00 https://mail.black-squirrel.com/viewtopic.php?f=52&t=31648 |
Page 1 of 2 |
| Author: | JingLesh [ Mon Jun 06, 2011 1:31 pm ] |
| Post subject: | Cannot Run TWGS v2.00 |
I just downloaded TWGS v2.00 and installed it to C:\TWGS on a Windows 7 machine. When I tried to run the TWGS executable I got an error message indicating that "TWGS can only be run from an administrator account". The account that I both installed and ran from is part of an administrator group. I even tried right clicking and manually running as administrator to both install and run TWGS but had the same result. It's possible that there is something in the security policies for my machine that is causing this but I wanted to check here first. Has anyone else seen this issue or found a solution that resolves it? Thanks for any ideas! |
|
| Author: | John Pritchett [ Mon Jun 06, 2011 2:05 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
I'm almost certain that there are others who have installed the new version on Windows 7. I'm absolutely certain that some are running the old version on Windows 7, and I don't think anything has changed in relation to installation. I'm interest to see if anyone else is having this problem or if it's specifically related to your situation. Do you get this message when you start the installation, or do you complete the installation but get the message when you try to run the game? |
|
| Author: | rem0te [ Mon Jun 06, 2011 2:07 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
I've had the same issue at work, but since I was only checking the content and not really planning to start a server (IT would get on my case quickly, lol) I didnt look into it. I'll try on my home computer later today. |
|
| Author: | Singularity [ Mon Jun 06, 2011 2:10 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
You probably have to make the directory first, give your user permission to write to the directory, then install it. In windows 7, there's no automatic permissions... you're the user unless you explicitly run the program as admin. Now you could do that, run the install as admin, but then you might have trouble running the service afterwards. So config permissions first, then try to install. |
|
| Author: | JingLesh [ Mon Jun 06, 2011 2:18 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
I get this message when I try to run the game. Installation appears to complete successfully. I'll follow up with the administrator of the security policies for my machine to see if this is just a local issue. |
|
| Author: | John Pritchett [ Mon Jun 06, 2011 3:26 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
Ok, so it could be a problem with the way TWGS determines if you have admin rights. That's something I can fix if that's the problem. Let me look into it. The code that tests for admin rights is very old. Windows 7 wasn't even a twinkle in Bill Gate's eye when I put that in ;) |
|
| Author: | Singularity [ Mon Jun 06, 2011 3:38 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
Wait, is it windows or TWGS that's saying you don't have admin rights? |
|
| Author: | John Pritchett [ Mon Jun 06, 2011 4:02 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
It's definitely TWGS. I have a function that tests for admin rights and displays a dialog if it determines you're not running under admin. It uses several Win32 api functions to do this test. I don't pretend to understand any of that crap. I just grabbed this admin test code from somewhere. In fact, here's a copy of the code: http://www.swissdelphicenter.ch/torry/s ... php?id=189 I'll do some research to see what's changed with Windows 7 that's breaking this test. |
|
| Author: | John Pritchett [ Mon Jun 06, 2011 4:09 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
Ok, I found some more recent code for testing for admin access. It's even more complex than what I was using, but I can give it a try. http://www.delphipages.com/forum/showth ... p?t=209929 |
|
| Author: | Singularity [ Mon Jun 06, 2011 4:34 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
Interesting. Is there any particular reason why it has to have admin privs? I mean as long as it can read/write to the directory, read/write to the registry, and bind to the port, is admin actually needed? |
|
| Author: | John Pritchett [ Mon Jun 06, 2011 5:21 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
TWGS installs one-per-machine, so it's meant to run from admin rather than an individual user. I probably put it in just to avoid any odd behavior if it's run as a non-admin. I know I've dealt with problems all along because of this. There just isn't a simple way to determine if you're an admin :( |
|
| Author: | Singularity [ Mon Jun 06, 2011 5:50 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
John Pritchett wrote: TWGS installs one-per-machine, so it's meant to run from admin rather than an individual user. I probably put it in just to avoid any odd behavior if it's run as a non-admin. I know I've dealt with problems all along because of this. There just isn't a simple way to determine if you're an admin Couldn't the one-per-machine issue be handled via registery? If you've had problems all along because of this, why not drop the admin requirement all together and let us test what happens? |
|
| Author: | rem0te [ Mon Jun 06, 2011 6:50 pm ] | ||
| Post subject: | Re: Cannot Run TWGS v2.00 | ||
UPDATE: Im now at home, and I had no issue installing and starting TWGS 2.0 on Win7 64bit Edit: It might be because I made it in a single account system: The only real user IS the admin.
|
|||
| Author: | John Pritchett [ Mon Jun 06, 2011 7:48 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
I know the restriction was put in because of some issues. It's been so long ago I don't recall the details :( Certainly I don't want people to be unable to run the game because of this issue. Maybe just put a warning rather than a hard test. |
|
| Author: | Cruncher [ Mon Jun 06, 2011 9:08 pm ] |
| Post subject: | Re: Cannot Run TWGS v2.00 |
Years ago you used to post your revision notes. Do you plan on doing that again this time? |
|
| Page 1 of 2 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|