PDA

View Full Version : Vista and UAC elevation



NewsArchive
12-31-2006, 06:04 AM
Friedrich,

Todd Carlson pointed me to this article showing how to create an
application manifest that lets an app run as an administrator. I don't
know if this will have any bearing on the whole issue of install
permissions, but may be it's worth a look:

http://softlogger.com/5588/most-popular-post/windows-vista--demand-uac-elevation-for-an-application-by-adding-a-manifest-using-mt-exe.aspx
--

Dave


Clarion Magazine: http://www.clarionmag.com
In-depth Clarion articles, news, tips & tricks, printed books and e-books

Source Code Library: http://www.clarionmag.com/cmag/sourcelib.html

Clarion blog: http://www.clarionmag.com/blog/
Personal blog: http://www.knobblegrud.com/

NewsArchive
12-31-2006, 06:04 AM
Hi Dave,

Thank you for the link.

But SetupBuilder 6.0 already supports the Vista-aware manifest ;-) The
SetupBuilder 6 compiler can even embed a Vista manifest into your Clarion
application (replaces the "standard" Clarion XP manifest) so your Clarion,
VS2005, or whatever app can request an execution level.

Thanks again,
Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

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

NewsArchive
12-31-2006, 06:04 AM
BTW, using the new "#embed Vista manifest" compiler function in SB6 we were
able to classify our own SetupBuilder 6 IDE (developed with Clarion 6.3) as
Mixed User Application - it can run as a Standard User or Administrator on
Vista!

This function embeds a Vista-aware manifest into your Clarion app (replaces
the Clarion XP manifest).

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

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

NewsArchive
12-31-2006, 06:05 AM
> But SetupBuilder 6.0 already supports the Vista-aware manifest

I'm not surprised - I kinda skimmed some of the previous discussion or
I'd have know that!

--

Dave


Clarion Magazine: http://www.clarionmag.com
In-depth Clarion articles, news, tips & tricks, printed books and e-books

Source Code Library: http://www.clarionmag.com/cmag/sourcelib.html

Clarion blog: http://www.clarionmag.com/blog/
Personal blog: http://www.knobblegrud.com/

NewsArchive
12-31-2006, 06:05 AM
Hi

I found this really doesn't help much because you would get the popup
messages all the time and you would probably have to enter an admin password
as well.
The best way to avoid all problems is to just install into the local users
directory and only deal with it if you are doing a network install.

Greg Palmer

NewsArchive
12-31-2006, 06:05 AM
I did some small tests under Vista with my app signed with a digital
certificate but without the SB6 manifest included :

it install perfectly well - except that all my reg keys are simply not there
as I had them under LOCAL_MACHINE so I have to change all that but not a
single popup window ....

plus when I open my app for the first time I call a lszip uncompress library
to load all demos from a zip file shipped and that did nothing ... no files
copied :(

I presume I must see all my reg keys before trying again ....

Thanks to SB6 signature no pbs of you are not allowed or this app is not
suitable etc ... MERCI FL

JP

--

Thank you

Jean-Pierre GUTSATZ

Best Regards

NewsArchive
12-31-2006, 06:05 AM
I am probably going to remove the manifest as well because I don't use one
in my application to begin with and it is changing the look of all my
buttons.

Greg

NewsArchive
12-31-2006, 06:05 AM
I use the Clarion one to get my 'look' and 'feel' and the SB one changes
that indeed ... BUT this pb seems to be linked to a 3rdparty template still
to be identified ....

JP

--

Thank you

Jean-Pierre GUTSATZ

Best Regards

NewsArchive
12-31-2006, 06:06 AM
Greg,

Yes, if you add a manifest (XP or Vista) then all controls are themed. A
manifest always enables (automatically) the XP/Vista Visual Styles.

But you can use the SetThemeAppProperties() Windows API in your application
to disable the Visual Styles (themed controls). Please note this function
is only available in XP and later.

Does this help?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

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

NewsArchive
01-03-2007, 12:46 AM
Hi

Do you have an example of using this function?

Thanks
Greg