Hello dear guest!

Why not join our boot disk community? So do it. Life's short!

  - You get free access to our newsletter with all the interesting buzz about boot disks
  - We share publicity revenue with everyone who wishes to participate at the forums
  - Publicity is never, never, never displayed to members (along with many other cool things)
http://boot-land.net/register

Bug ID: 110 Title: Vista UAC - ensure wb run with administrator level
Project: WinBuilder.exe - Requests Status: Fixed (Severity: 2 - Fair)
Version: Assigned to: Not assigned

 Bug ID #110: Vista UAC - ensure wb run with administrator level
Nuno Brito
post Oct 15 2008, 08:26 PM


Platinum Member
******

Group: .script developer
Posts: 7,685
Joined: 13-July 06
From: Coimbra
Member No.: 1


Portugal


Hi.

At the moment, people using winbuilder under Vista might feel tempted to run the program without Administrative permissions, this would be fine but UAC prevents the HIVE load to take place and will render some project quite useless.

I suggest to add some routines to prevent winbuilder from running without these UAC permissions.

Found some code snippets in delphi
http://www.theabsolute.net/sware/delphivista.html#uac

Also, shellexecute is vulnerable to this situation and will call new processes with the client's permission (not necessarily admin) and this might also cause issues.

On the same page listed above is mentioned that shellexecute should use runas to ensure admin permissions - since wb is also being targeted to run under wine, I'd suggest that this runas parameter be used exclusively when a Vista OS is detected as host.


Hopefully this should avoid UAC troubles.

smile.gif


--------------------
Go to the top of the page
 

 

Replies

ctmag
post Nov 7 2008, 01:08 PM


Silver Member
****

Group: .script developer
Posts: 700
Joined: 19-May 08
Member No.: 15,320


Germany


hmm, the uac detection is a good idea...had some troubles with my testers.-))

bump


--------------------
Go to the top of the page
 
ctmag
post Nov 8 2008, 08:31 AM


Silver Member
****

Group: .script developer
Posts: 700
Joined: 19-May 08
Member No.: 15,320


Germany


here are some links and info to get this done...

the manifest should look similar to this

--
<?xml version="1.0" encoding="utf-8"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdminstrator" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
--

http://www.experts-exchange.com/Programmin...Q_23118347.html

also see the anser at the end

and

http://groups.google.com/group/borland.pub...546716971efe65d



--------------------
Go to the top of the page
 
ctmag
post Nov 17 2008, 06:29 AM


Silver Member
****

Group: .script developer
Posts: 700
Joined: 19-May 08
Member No.: 15,320


Germany


done in current nightly., will be in next beta...


--------------------
Go to the top of the page
 
ctmag
post Nov 17 2008, 06:29 AM


Silver Member
****

Group: .script developer
Posts: 700
Joined: 19-May 08
Member No.: 15,320


Germany


Updating status to: Fixed
Go to the top of the page