Results 1 to 9 of 9

Thread: Web Update / Rights

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Web Update / Rights

    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

  2. #2

    Default Re: Web Update / Rights

    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!

  3. #3

    Default Re: Web Update / Rights

    lol

    Jeff Slarve

    >
    >Madame Merlot.....

  4. #4

    Default Re: Web Update / Rights

    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

  5. #5

    Default Re: Web Update / Rights

    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

  6. #6

    Default Re: Web Update / Rights

    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

  7. #7

    Default Re: Web Update / Rights

    > 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"
    -------------------------------------------------------------------------------------------------------

  8. #8

    Default Re: Web Update / Rights

    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

  9. #9

    Default Re: Web Update / Rights

    >>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"
    -------------------------------------------------------------------------------------------------------

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •