PDA

View Full Version : Check for update fails under Vista



Larry Teames
04-18-2007, 11:39 AM
In the IDE, when I click on Help|Check for Updates while in SB6 (under Vista), the following occurs:

1. when logged in as a user with admin rights (with UAC on) - it eventually times out with connection error (999).

2. when logged in as a user with admin rights (with UAC off) - it succeeds.

3. when logged in as a Administrator (with UAC on) - it succeeds.

What might be the cause of this, and is it the expected behaviour?

linder
04-19-2007, 09:24 AM
Larry,

The User Account Control (UAC) security feature has an effect on Layered
Service Providers (LSP) writers as the Winsock functions to install and
remove LSP entries can only be called as an Administrator.

In SetupBuilder 6.0, wupdate.exe requests "asInvoker" execution privileges
under Vista. When logged in as user with admin rights, wupdate.exe can only
use the standard set of privileges to access the unprotected Vista areas.

In SetupBuilder 6.5, wupdate requests requireAdministrator privileges to
perform actions that required administrator execution level privileges.

Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

"point. click. ship" - that's SetupBuilder 6
Create Windows Vista ready installations in minutes

-- Official Comodo Code Signing and SSL Certificate Partner

Larry Teames
04-19-2007, 09:31 AM
Okay, so you're saying this will be changed in 6.5 to work as expected under Vista, right? When are you hoping to release 6.5?

BTW, as a longtime 3rd party vendor who prides himself on quality of support, let me say that I think you (and your people) set an example of support quality that all should follow. Congrats!

linder
04-19-2007, 09:42 AM
Larry,

Thanks so much for your kind words :)

Yes, the SB65 wupdate.exe should work as expected under Vista. What you can already try in SetupBuilder 6.0 is to recompile the wupdate.sb6 with requireAdministrator privileges.

1) Open wupdate.sb6 (located in the \Redist\1033 subfolder
2) General Information -> Generator Settings -> Request Execution Level -> Set to "requireAdministrator"
3) Recompile
4) Copy the resulting new wupdate.exe to the SetupBuilder 6 root folder. Check for update should work fine now (in Standard User mode). Of course, it will prompt for the admin password now.

If you would like to use this new wupdate.exe in your own projects, copy it to the \Lib folder and recompile your project.

SetupBuilder 6.5 will be available on next Monday.

Thanks,
Friedrich

Larry Teames
04-19-2007, 10:35 AM
Friedrich:

Thanks! That did the trick!

linder
04-19-2007, 10:48 AM
Larry,

Great, thank you.

Friedrich