View unanswered posts | View active topics It is currently Wed May 15, 2024 2:43 pm



Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
 Cannot Run TWGS v2.00 
Author Message
Private 1st Class

Joined: Mon Jun 06, 2011 1:15 pm
Posts: 2
Unread post 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!


Mon Jun 06, 2011 1:31 pm
Profile
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post 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?

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Mon Jun 06, 2011 2:05 pm
Profile WWW
1st Sergeant
User avatar

Joined: Fri May 27, 2011 9:20 am
Posts: 45
Unread post 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.

_________________
-=[ rem0te ]=-
I'm an Insane-Cyber-Techno-Evil-Gothic-TradeWars-Freak
:mrgreen:

My TW Visual Map Helper


Mon Jun 06, 2011 2:07 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Mon Jun 06, 2011 2:10 pm
Profile ICQ WWW
Private 1st Class

Joined: Mon Jun 06, 2011 1:15 pm
Posts: 2
Unread post 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.


Mon Jun 06, 2011 2:18 pm
Profile
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post 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 ;)

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Mon Jun 06, 2011 3:26 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Cannot Run TWGS v2.00
Wait, is it windows or TWGS that's saying you don't have admin rights?

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Mon Jun 06, 2011 3:38 pm
Profile ICQ WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post 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.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Mon Jun 06, 2011 4:02 pm
Profile WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post 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

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Mon Jun 06, 2011 4:09 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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?

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Mon Jun 06, 2011 4:34 pm
Profile ICQ WWW
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post 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 :(

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Mon Jun 06, 2011 5:21 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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?

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Mon Jun 06, 2011 5:50 pm
Profile ICQ WWW
1st Sergeant
User avatar

Joined: Fri May 27, 2011 9:20 am
Posts: 45
Unread post 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.


Attachments:
User settings.png
User settings.png [ 97.8 KiB | Viewed 9342 times ]

_________________
-=[ rem0te ]=-
I'm an Insane-Cyber-Techno-Evil-Gothic-TradeWars-Freak
:mrgreen:

My TW Visual Map Helper
Mon Jun 06, 2011 6:50 pm
Profile ICQ
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 3150
Location: USA
Unread post 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.

_________________
John Pritchett
EIS
---
Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.


Mon Jun 06, 2011 7:48 pm
Profile WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: Cannot Run TWGS v2.00
Years ago you used to post your revision notes. Do you plan on doing that again this time?

_________________

BOTE 1998 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team


Classic Style Games Here:
telnet://crunchers-twgs.com:2002

Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
Discord: https://discord.gg/4dja5Z8
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Mon Jun 06, 2011 9:08 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 17 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.