Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Launch non-elevated

Hybrid View

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

    Default Launch non-elevated

    Hi Friedrich,

    Is this option in the "Run Program" action safe to run the updated program
    after a web update under Vista/Win7 UAC? I.e. what I do in my program is
    that if an update exists I launch the web update and terminate my program.
    Question is if this option is safe to run my program at the end of the web
    update?

    Best regards,

    --
    Arnór Baldvinsson - Icetips Alta LLC
    Port Angeles, Washington
    www.icetips.com - www.buildautomator.com - www.altawebworks.com

    Icetips product subscriptions at http://www.icetips.com/subscribe.php

  2. #2

    Default Re: Launch non-elevated

    Hi Arnór,

    > Is this option in the "Run Program" action safe to run the updated program
    > after a web update under Vista/Win7 UAC? I.e. what I do in my program is
    > that if an update exists I launch the web update and terminate my program.
    > Question is if this option is safe to run my program at the end of the web
    > update?

    Yes, this option is safe! The "Launch non-elevated under UAC" Run option
    lets you launch the updated application in the context of the "original"
    Standard User. You can also use the option to start your app at the end of
    an installation.

    It is very common to start an application at the end of the installation.
    If you do not use the "non-elevated" Run option, the application is often
    started under the wrong user context because the elevated installer
    privileges are carried over to that application. "Launch non-elevated under
    UAC" solves this problem.

    Friedrich

  3. #3

    Default Re: Launch non-elevated

    > It is very common to start an application at the end of the installation.
    > If you do not use the "non-elevated" Run option, the application is often
    > started under the wrong user context because the elevated installer
    > privileges are carried over to that application. "Launch non-elevated under
    > UAC" solves this problem.

    Friedrich,

    Does that still function as expected on a non-UAC OS (or if the user has
    UAC disabled)?

    Or do we need to test for the OS and/or UAC condition?


    Charles



    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
    for Windows 7 and Vista!"
    www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
    www.setupcast.com - "A revolutionary new publishing system for software
    developers - enhanced for SetupBuilder users!"
    www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    www.clarionproseries.com - "Serious 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"
    -------------------------------------------------------------------------------------------------------

  4. #4

    Default Re: Launch non-elevated

    Hi Charles,

    > Does that still function as expected on a non-UAC OS (or if the user has
    > UAC disabled)?
    >
    > Or do we need to test for the OS and/or UAC condition?

    The "non-elevated" option does not have any effect on non-UAC aware systems
    or on systems that have UAC disabled.

    We do the following in the SB install image to launch the IDE at the end of
    the installation (see attached screenshot).

    Friedrich
    Attached Images Attached Images  

  5. #5

    Default Re: Launch non-elevated

    > The "non-elevated" option does not have any effect on non-UAC aware systems
    > or on systems that have UAC disabled.
    >
    > We do the following in the SB install image to launch the IDE at the end of
    > the installation (see attached screenshot).

    Thanks for the clarification and example!

    :-)

    Charles



    --
    -------------------------------------------------------------------------------------------------------
    Charles Edmonds
    www.clarionproseries.com - "Get ProPath, make your Clarion programs ready
    for Windows 7 and Vista!"
    www.ezchangelog.com - "Free ChangeLog software to manage your projects!"
    www.setupcast.com - "A revolutionary new publishing system for software
    developers - enhanced for SetupBuilder users!"
    www.pagesnip.com - "Print and Save the Web, just the way you want it!"
    www.clarionproseries.com - "Serious 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"
    -------------------------------------------------------------------------------------------------------

  6. #6

    Default Re: Launch non-elevated

    >
    > Thanks for the clarification and example!
    >

    :-)

    Friedrich

  7. #7

    Default Re: Launch non-elevated

    Hi Friedrich,

    >> Or do we need to test for the OS and/or UAC condition?
    >
    > The "non-elevated" option does not have any effect on non-UAC aware systems
    > or on systems that have UAC disabled.
    >
    > We do the following in the SB install image to launch the IDE at the end of
    > the installation (see attached screenshot).

    The code you show tests for Win_Vista. Does that mean that this does not
    work if I install on Vista, W2k8 or Win7 with UAC disabled? Is there a
    reason why SB doesn't simply handle this automatically so duplicated code is
    not needed???

    Best regards,

    --
    Arnór Baldvinsson - Icetips Alta LLC
    Port Angeles, Washington
    www.icetips.com - www.buildautomator.com - www.altawebworks.com

    Icetips product subscriptions at http://www.icetips.com/subscribe.php

  8. #8

    Default Re: Launch non-elevated

    Hi Arnór,

    >> We do the following in the SB install image to launch the IDE at the end
    >> of the installation (see attached screenshot).
    >
    > The code you show tests for Win_Vista. Does that mean that this does not
    > work if I install on Vista, W2k8 or Win7 with UAC disabled? Is there a
    > reason why SB doesn't simply handle this automatically so duplicated code
    > is not needed???

    It tests for "less than" Vista ;-) So it is only executed in "non-elevated
    mode" if the operating system is UAC-aware.

    But in fact, the conditional statement is not required because SetupBuilder
    handles this automatically. The function will work on machines with UAC
    disabled and a fallback mechanism kicks in if the operating system does not
    support UAC.

    Friedrich

  9. #9

    Default Re: Launch non-elevated

    Hi Friedrich,

    > But in fact, the conditional statement is not required because SetupBuilder
    > handles this automatically. The function will work on machines with UAC
    > disabled and a fallback mechanism kicks in if the operating system does not
    > support UAC.

    Ok, so, let me get this straight<g>

    I can just use:

    Run Program %SB_InstallDir%\MyProgram.exe (Always Install) [Non-Elevated]

    and not worry about if this is on Win98 or Win7?<g>

    Best regards,

    --
    Arnór Baldvinsson - Icetips Alta LLC
    Port Angeles, Washington
    www.icetips.com - www.buildautomator.com - www.altawebworks.com

    Icetips product subscriptions at http://www.icetips.com/subscribe.php

  10. #10

    Default Re: Launch non-elevated

    Hi Arnór,

    > Ok, so, let me get this straight<g>
    >
    > I can just use:
    >
    > Run Program %SB_InstallDir%\MyProgram.exe (Always Install) [Non-Elevated]
    >
    > and not worry about if this is on Win98 or Win7?<g>

    Yes ;-) And it even works on Win95 <g> (I just tested it).

    Friedrich

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
  •