PDA

View Full Version : Web Update / Rights



NewsArchive
03-18-2008, 03:27 AM
In Vista,

My software installs two programs, our EXE file which does not require
"Admin" rights and the web-update program does does require Admin (to use
the KHEY_LCOAL_MACHINE and to write files to the program directory).

In the installation I manifested the two EXE's to those requirements.

I have Vista users reporting the webupdate EXE is not running and the
"RUNCODE()" that is returned to the Clarion "RUN" command is #740.

My question is, I think, can a EXE running as "As Invoker" use the RUN
command to launch a progam that requires Admin per it's manifest.

I hate this stuff.

Mike

NewsArchive
03-18-2008, 03:28 AM
Howdy, Mike...

One of the things I documented in the Vista articles I wrote for clarionmag
is that RUN or CHAIN will fail silently if an asInvoker app tries to run a
requireAdministrator app.

There's an example app I included in the source files attached to this
article: http://www.clarionmag.com/cmag/v9/v9n04vista2b.html

It shows making it work and making it not work. (Hint: the applicable
topic heading in the article is "ShellExecute to the rescue". Compile the
two little apps and try them on Vista.

I wouldn't belabor this with just anyone... but you've had a number of
Vista-related issues, some of which we've discussed offilne. AFAIK, pretty
much all the ones you and I've discussed are addressed in those articles...
and you could have saved yourself a lot of headaches....

Madame Merlot.....

PS. Don't "hate this stuff". If this stuff were easy, a lot of us would
have to get real jobs. I'd hate that!

NewsArchive
03-18-2008, 03:29 AM
Mike,

Exactly what Jane said.

The Clarion "RUN" command makes use of the CreateProcess() Windows API. But
CreateProcess() will always fail if a non-elevated application attempts to
launch another application whose manifest requires elevation. GetLastError
will return 740 (ERROR_ELEVATION_REQUIRED) in this case.

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6.7
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
03-19-2008, 03:14 AM
lol

Jeff Slarve

>
>Madame Merlot.....

NewsArchive
03-19-2008, 03:15 AM
Ok.

I still hate this stuff. It was so much easier when I was selling Lotus
Templates in the early 1980's.

So the solution is "Read Jane's Article for a method of using Shell Execute"
?

Is that correct ?

Mike

NewsArchive
03-19-2008, 03:16 AM
Question....

I use RUN() and RUNCODE() so I can uses the EXE's exit code.

Is there a comparable technique for this using ShellExecute ?

michael d. brooks

NewsArchive
03-19-2008, 03:16 AM
> I use RUN() and RUNCODE() so I can uses the EXE's exit code.
> Is there a comparable technique for this using ShellExecute ?

Not sure if it is in the released version yet or not, but Arnor has a
solution in his IceTips Utilities that works and is rock solid.

I use it in SoftDefense to "wait" for certain interactions with other
programs and it works fine on both XP and Vista.


Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------

NewsArchive
03-19-2008, 03:18 AM
Hi Charles,

>Not sure if it is in the released version yet or not, but Arnor has a
>solution in his IceTips Utilities that works and is rock solid.
>
>I use it in SoftDefense to "wait" for certain interactions with other
>programs and it works fine on both XP and Vista.

It's not out yet as I have some other things to clean up:) I'm hoping
to get a release out there sometime next week.

Best regards,

ArnĂ³r Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
03-19-2008, 03:19 AM
>>Not sure if it is in the released version yet or not, but Arnor has a
>>solution in his IceTips Utilities that works and is rock solid.
>>
>>I use it in SoftDefense to "wait" for certain interactions with other
>>programs and it works fine on both XP and Vista.
>
> It's not out yet as I have some other things to clean up:) I'm hoping
> to get a release out there sometime next week.

Thanks for the confirmation.

I lose track sometimes of what part of the tools are released and what part
of them are something that we are kicking about in early access.

;-)

Charles


--
-------------------------------------------------------------------------------------------------------
Charles Edmonds
www.pagesnip.com - "Print and Save the Web, just the way you want it!"
www.clarionproseries.com - "Serious imaging tools for Clarion Developers"
www.ezround.com - "Round Corner HTML tables with matching Banners, Buttons
and Forms!"
www.lansrad.com - "Intelligent Solutions for Universal Problems"
www.fotokiss.com - "World's Best Auction Photo Editor"
-------------------------------------------------------------------------------------------------------