You are here

launcher Q:

6 posts / 0 new
Last post
jedione
Offline
Last seen: 10 years 5 months ago
Joined: 2013-08-21 23:32
launcher Q:

I have seen many PAF files out their, were the compiled
.exe is elevated to run as addmin w/ the little Shield.
Using the launcher to make my exe, I have to right click
"runas".

Q:Is their a way to configure the Launcher to do this?
Q:How are these others built With other Compilers?

Thank for any info....Great place to learn. jedione.

darksabre76
darksabre76's picture
Offline
Last seen: 2 weeks 6 days ago
Developer
Joined: 2011-04-19 23:28
RunAsAdmin

In order for an application to be run as an administrator, you have to set RunAsAdmin (or one of the Windows version-specific variations) in the launcher. See the documentation for more details.

jedione
Offline
Last seen: 10 years 5 months ago
Joined: 2013-08-21 23:32
Thanks for the reply, I read

Thanks for the reply, I read the info but it just seams like
it's talking about RunAsAdmin needed for HKML, witch i understand.
some of my apps to start and run correctly i must still
"right click" run as admin, maybe because C++ and DX9.0 are integrated,
don't know.

the single goal im trying to accomplish is not having to right click,
because if i use like p-start from a thumb drive i cant elevate the app
so it does not work.

could be that some how its wright under my nose.

darksabre76
darksabre76's picture
Offline
Last seen: 2 weeks 6 days ago
Developer
Joined: 2011-04-19 23:28
Not just for HKLM

Needing RunAsAdmin is not just for HKLM permissions, it can also be for items that perform administrative functions like uninstallers and defragmenters. If you have that line in the launcher, it automatically prompts for admin privilege on run, saving you from needing to right click. This should be independent of how you run the launcher, whether it be manually, via the PA.c platform, or through PStart (which you prefer).

jedione
Offline
Last seen: 10 years 5 months ago
Joined: 2013-08-21 23:32
I now see that you are

I now see that you are wright. have tested on a app.

But what is weird is that i have a few personal apps were
[RunAsAdmin] does not fully cut it, for starting it all the way
and i still need to "right click" run as administrator.
don't know why, what i get is a "file such & such can not be opened.
An error occurred in the application.

Right click run as admin
and it opens perfect.

and it does have "RunAsAdmin=force" in the ini
strange.

It is obvious to me that the right click seems to have more admin power.

thanks for your input....

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
compile-force

For cases where RunAsAdmin=force may not work, also try the value compile-force which uses a different technique for elevation (specifying that it must be run elevated in its manifest rather than elevating after starting). It's designed for this sort of case (which I never did fully work out).

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

Log in or register to post comments