PDA

View Full Version : Windows 7 > UAC > wucheck.exe and wupdate.exe



NewsArchive
08-12-2011, 02:10 AM
Hi All,

1.) Windows 7 > UAC set at Default
2.) Using wucheck.exe and wupdate.exe from SB LIB folder
3.) Logged into Win 7 with Administrator account
4.) My application calls wucheck.exe when it is launched
5.) wucheck.exe reports newer version available
6.) Answer "Yes" on wucheck.exe screen to continue with update
7.) Windows displays UAC permission screen to run wupdate.exe

How in the world do I get wupdate.exe to execute and continue with the
update without the user having to give UAC permission? They already gave
me their permission when they clicked the "Yes" button on the
wucheck.exe screen.

Thanks a bunch for any assistance.

--
*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One
The Hurrier I Go The Behinder I Get

NewsArchive
08-12-2011, 02:11 AM
Not sure I understand the question.

You're saying you get TWO UAC permission screens?

I'd expect you just to get one.
wucheck does not run elevated.
But if there's an update, it needs to launch the update as an elevated
process, which brings up the UAC box.

jf

NewsArchive
08-12-2011, 02:11 AM
Hi Jane,

Thanks once again for your valuable feedback.

I believe you answered the question. Only one UAC permission screen is
presented when wupdate.exe is launched.

Due to the fact wucheck.exe informed the user a newer version is
available AND the user clicked "Yes" they wanted to install the update,
the user has, for the most part, has already given his consent to
install the update.

I was just hoping there was a way to avoid asking them for permission
*again* when wupdate.exe is launched from my non-elevated application.
Kind of wanting the best of both worlds so to speak.

My guess is there isn't a way.

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One
The Hurrier I Go The Behinder I Get

NewsArchive
08-12-2011, 02:12 AM
The user may have told YOU OK.
But he hasn't told Mr. UAC OK <g>\
And at some place in the process, that is required in order to jump from
standard execution level to elevated.

You could possibly switch your logic - If an update is available, maybe just
automatically launch wupdate. That will bring up the UAC box and the user
can make his decision at that point as to whether he wants to install it.
Of course, XP users won't get a "wanna" that way, they'll just get your
opening wizard screen.... so I think I'd suggest leaving it the way you
have it.

But if you think two "wanna do its" is a lot... be grateful you're not using
an MSI.

I wind up starting one of those things and walking away and maybe a couple
of minutes later it unpacks itself enough to pop up a UAC screen. And if
you aren't watching for it, the UAC window times out and self-destructs
after two minutes.

jf

NewsArchive
08-12-2011, 02:13 AM
I can *HOPE*, can't I?.....<g>

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One
The Hurrier I Go The Behinder I Get

NewsArchive
08-13-2011, 03:20 AM
Dangit.

You asked for it http://www.youtube.com/watch?v=xOZ1vuwc_D8

Now get that out of your skull<g>

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
08-13-2011, 03:21 AM
Nicely put.....

*Regards*,

Lee
www.cya2day.com
CYA - Don't Leave Home Without One
The Hurrier I Go The Behinder I Get