PDA

View Full Version : Launch App Immediately After Install



NewsArchive
06-22-2017, 02:17 AM
Hi All

Is there a setting to get SB to launch the app immediately after it has
been installed?

Cheers
Andre

NewsArchive
06-22-2017, 02:18 AM
Hi Andre

Yes, there is a Run At End setting. See attached.
If this is not immediate enough, then add a Run in the wizard loop right after all
files installed.

JohnG

NewsArchive
06-22-2017, 02:18 AM
Excellent - thanks John.

Andre Labuschagne

NewsArchive
06-22-2017, 11:04 AM
Your question might benefit from a tad more nuance, Andre.

The challenge in running at the end of the installation is the user context.

Typically, your installation is requireAdministrator. Which means it is
using the installation user's admin token, not the normal execution token.
If you launch your app at the end, it will inherit that token... which is
usually not what you want. Drive mappings, registry access, etc. will
likely be different.
more: https://technet.microsoft.com/en-us/library/cc772207(v=ws.10).aspx

I'd suggest you do a search in the SB help for "non-elevated". As I recall,
Friedrich put a LOT of sweat in figuring out how to pull off that trick...
might as well use it ;-)

jf

NewsArchive
06-23-2017, 03:10 AM
> Your question might benefit from a tad more nuance, Andre.

I though long and hard about that and am testing with Launch
non-elevated under UAC - so far so good. This elevation nonsense is a
mine field. Friedrich has done an excellent job.

Andre Labuschagne