You are here

RunAsAdminXP issue with PA Launcher 2.2

9 posts / 0 new
Last post
Ken Herbert
Ken Herbert's picture
Offline
Last seen: 6 hours 53 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
RunAsAdminXP issue with PA Launcher 2.2

Didn't want to mark it as a bug just yet in case it is something wrong with what I am doing that I just am not seeing.

I have the following code in my launcher.ini for Pencil Project dev test 4:
[Launch]
ProgramExecutable=Pencil\pencil.exe
DirectoryMoveOK=yes
WaitForEXE1=xulrunner.exe
RunAsAdmin=force
RunAsAdmin2000=none
RunAsAdminXP=none
RunAsAdmin2003=none

But on XP I am getting an error when running it as follows:
Error: invalid value 'none' for [Launch]:RunAsAdminXP. Please refer to the Manual for valid values.

As far as I can tell, I am doing everything right there in reference to the launcher.ini docs, so is this a bug or have the docs not been updated with a change from 2.1 to 2.2?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
No value

See the styling in the [Launch]:RunAsAdminXP documentation:

Values: force / try / none
Default: none
Optional.

Note the difference between "force", "try" and "none". force and try are values, but none signifies the omission of any value. (Sorry, it has always seemed to me to be clear in the documentation, but apparently it is not so. Perhaps it should be made italic.) As it stands, there is no way to override for a specific value, specifying no value.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 6 hours 53 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Ahh

Thanks for that.

I had semi-noticed the styling difference but had not equated it to actually meaning something different.

As for overriding, the last paragraph under RunAsAdmin states that for apps requiring admin on modern Windows, you should specify RunAsAdmin=force and then override for 2000, XP and 2003 with none. Are the docs incorrect regarding this?

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 23 hours 40 min ago
DeveloperModerator
Joined: 2008-07-24 18:46
Looks like it

I took a look at PAL's source, and it looks like the docs are indeed incorrect.

With that said, I think I've got a way to enable what you want. I'll test it, then send it to Chris or Aluisio for adding to PAL.

Ken Herbert
Ken Herbert's picture
Offline
Last seen: 6 hours 53 min ago
DeveloperModerator
Joined: 2010-05-25 18:19
Thanks, although it may not

Thanks, although it may not be necessary. The issue can be worked around by setting the older OSes to 'try', it just depends on how much of a time/resource hit it is to check for admin privileges with 'try' as opposed to not checking at all.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 5 months ago
Joined: 2007-04-15 21:08
Oh dear...

Did I really do that?

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 23 hours 40 min ago
DeveloperModerator
Joined: 2008-07-24 18:46
change in documentation warranted?

Maybe a change in documentation is needed for this case, and any others that are similar?

Something like:

Values: force / try
Default: not set
Optional

Aluísio A. S. G.
Offline
Last seen: 8 years 4 months ago
DeveloperTranslator
Joined: 2010-11-09 17:43
LGTM

That should make it more obvious.

Previously known as kAlug.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 23 hours 40 min ago
DeveloperModerator
Joined: 2008-07-24 18:46
Uploaded
Log in or register to post comments