PDA

View Full Version : Restart after update



NewsArchive
10-27-2009, 02:33 AM
Friedrich,

What's the trick to restart an application that was just updated with
webupdate? It's a nice touch and I notice you do this with SetupBuilder.

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:34 AM
Have your update installer run the updated program it's just installed.

Don't forget the neat new trick in SB7 that lets you launch an app
unelevated from an elevated installer ("Launch non-elevated under UAC"
check box on the Run Program script element.)
This lets you safely do the "do you want to run it now?" thing at the end of
an install because if you run the installed program non-elevated you're also
using the invoker's profile, rather than the over-the-shoulder
administrator's.
(I have no clue how he coded this.... )

Jane Fleming

NewsArchive
10-27-2009, 02:35 AM
Once more, in English. <bg>

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:36 AM
Was ist mit der Englisch???? Vielleicht ein bild??? <g>

Jane Fleming

NewsArchive
10-27-2009, 02:37 AM
Ya. Bier bitte <g>

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:37 AM
Also... in the "Learning Setupbuilder" CHM that Friedrich distributes with
the SB7 example files, there's a reasonably extensive explanation of the
RunNonElevated.sb7 example file.

Jane Fleming

NewsArchive
10-27-2009, 02:38 AM
Parlez usted Ingles?

Jeff Slarve

NewsArchive
10-27-2009, 02:38 AM
Hi Russ,

> Once more, in English. <bg>

The problem is in Vista/WS2008/Win7 with UAC turned on, the installer is
elevated to administrator privileges and is no longer running in the user
profile that started the install. So if you run a non-elevated program from
the elevated installer it will inherit the profile from the admin user, not
the user who started the install. F. created some very cool technology that
allows elevated programs to run non-elevated programs without inheriting the
admin profile.

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

NewsArchive
10-27-2009, 02:40 AM
OK, found what you are talking about.

I think I placed it a bit too early as it restarted before I had the chance
to click Finish. Moved it down as the last line in the script.

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:41 AM
Or if your update doesn't require user intervention, you can skip the final
user dialog and loop wizard and just stick the Run function at the end
(non-elevated, of course).

Jane Fleming

NewsArchive
10-27-2009, 02:41 AM
That's what I do. I figure they were running it before updating, so what
changed in those few seconds? <bg>

BTW - that turned out to be a bug in my main install, so I've checked that
box too.

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:42 AM
Russ,

> BTW - that turned out to be a bug in my main install, so I've checked that
> box too.

Wait a minute, you mean Friedrich has a checkbox to fix bugs?

Why doesn't SV have one?!<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
10-27-2009, 02:42 AM
It's in the latest 8.3 beta <g>

Jane Fleming

NewsArchive
10-27-2009, 02:42 AM
Jane,

> It's in the latest 8.3 beta <g>

<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
10-27-2009, 02:43 AM
You DO actually have to check the box!

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:44 AM
Perfect.

Thanks!

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
10-27-2009, 02:44 AM
Hi Jane,

> Don't forget the neat new trick in SB7 that lets you launch an app
> unelevated from an elevated installer ("Launch non-elevated under UAC"
> check box on the Run Program script element.)
> This lets you safely do the "do you want to run it now?" thing at the end of
> an install because if you run the installed program non-elevated you're also
> using the invoker's profile, rather than the over-the-shoulder
> administrator's.
> (I have no clue how he coded this.... )

That is excellent news! I wasn't sure if F. had finished that, remembered
that he had talked about an idea, but wasn't sure if it had made it. What I
have done is check if the program is running on vista or higher and then I
don't restart it, but if it's XP or older I restart it.

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

NewsArchive
10-27-2009, 02:45 AM
> What I have done is check if the program is running on vista or higher and then I
> don't restart it, but if it's XP or older I restart it.

See attached screen shot for how to cover the restart on XP and above.

:-)

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