MediaPortal Forums HTPC/MediaCenter

Sponsored Ads

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Improvement Suggestions

Notices

Improvement Suggestions Got idea how the TV-Server can be improved? Post it here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2008-03-31, 13:02   #1 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 20
Thanks: 2
Thanked 1 Time in 1 Post

Country:

My System

Default Vista UAC prompt manifest

Hi,

Can we add manifest files to the set-up control panels for both Mediaportal and TV-engine, so that instead of the ugly elevation prompt we get a more beautiful one?

.NET Security Blog : Adding a UAC Manifest to Managed Code

Windows Vista Application Development Requirements for User Account Control Compatibility
http://www.microsoft.com/downloads/d...displaylang=en
See Step Six: Create and Embed an Application Manifest with Your Application, p63

Quote:
Executable: IsUserAdmin.exe
Manifest:IsUserAdmin.exe.manifest
Sample application manifest file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0"
processorArchitecture="X86"
name="IsUserAdmin"
type="win32"/>
<description>Description of your application</description>
<!-- Identify the application security requirements. -->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrator"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
Attached Images
File Type: png uac panel.png (28.5 KB, 39 views)
JaLooNz is offline   Reply With Quote
Old 2008-03-31, 14:25   #2 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,244
Thanks: 30
Thanked 131 Times in 86 Posts

Country:

My System

Default

Looking into it now ... thanks for the tip
and-81 is online now   Reply With Quote
Old 2008-03-31, 16:35   #3 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,244
Thanks: 30
Thanked 131 Times in 86 Posts

Country:

My System

Default

The assemblies in question already have a manifest that requires administrator rights, but the difference is that they are considered "unidentified publisher" because they aren't digitally signed with a trusted certificate.

To change this we would have to buy a digital certificate and sign the assemblies ... and that's not likely to happen.

Cheers,
and-81 is online now   Reply With Quote
Old 2008-04-01, 12:13   #4 (permalink)
Portal Member
 
Join Date: Mar 2008
Posts: 20
Thanks: 2
Thanked 1 Time in 1 Post

Country:

My System

Default

I thought signing is a optional requirement, and mainly for driver level code?

Anyway I doubt the control panel requires admin access, and the reason why the TV-server config has the admin prompt is because it has "setup" in its' filename. Maybe you would want to change that in future, or embed a manifest that says it does not require administrator access.

Another thing I see with the builds is that sometimes the application attempts to write to Program Files, and because UAC is on it is redirected to...
C:\Users\Username\AppData\Local\VirtualStore\Progr am Files\Team MediaPortal\MediaPortal
This causes the version number display on starting Mediaportal to be that of a old version. Wiping out the directory will correct the version number. I cannot be sure if Mediaportal is running the old / new version when the directory is not wiped, maybe you would want to look into that.

Last edited by JaLooNz; 2008-04-01 at 12:21.
JaLooNz is offline   Reply With Quote
Old 2008-04-01, 12:22   #5 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,244
Thanks: 30
Thanked 131 Times in 86 Posts

Country:

My System

Default

Signing is not a requirement, but if you don't sign you don't get the nicer UAC prompt ... at least that's the information I have ...

For anything that needs admin rights we are already supplying a manifest file (not embedded) ... if we didn't supply the manifest you would start the application and it would run but as soon as you tried to do something that required admin privileges you would get a security exception.

The issue with files being redirected to a different location is being worked on at the moment ... the key is to not try to write to files that are stored in the Program Files folder... We're changing that as we speak, it's just that it will require a re-install so we're holding it off until the 1.0 Release Candidates start coming out.

If there's some trick we could be using to make this stuff better then let me know.

Cheers,
and-81 is online now   Reply With Quote
Old 2008-04-25, 12:10   #6 (permalink)
Portal User
 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts


Thumbs up

Quote:
Originally Posted by JaLooNz View Post
Another thing I see with the builds is that sometimes the application attempts to write to Program Files, and because UAC is on it is redirected to...
C:\Users\Username\AppData\Local\VirtualStore\Progr am Files\Team MediaPortal\MediaPortal
This causes the version number display on starting Mediaportal to be that of a old version. Wiping out the directory will correct the version number. I cannot be sure if Mediaportal is running the old / new version when the directory is not wiped, maybe you would want to look into that.
Aha this is just what I was looking for!

I just had this problem and I think I can safely say it runs the old version.

With UAC enabled after installing RC1 the splash screen still indicated I was running an old snapshot of MP (noticed that after reading this thread) and when attempting to connect to the TVServer it failed. Turning UAC off gave me RC1 back on the splashscreen and everything worked fine. After reading this I deleted the folder you mention and bam, now I have a fully working MP with UAC enabled.

I second the suggestion to clean that directory in either an uninstall or a dirty install. Would have saved me a bit of frustration anyway.

P.S. The similar threads thing on posting a new thread is rather handy. Was about to post my own and then found the answer was already around
dgrind is offline   Reply With Quote
Reply

Bookmarks

Tags
manifest, prompt, uac, vista

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vista UAC/Record/Timeshift User Rights abi12563 Newcomers Forum 3 2008-01-16 12:59
Using Vista 32 will I get advantage to Upgrade to Vista 64? clone_tk422 Ongoing HTPC Projects 4 2007-12-15 04:37
Blank box Error --- and error 2869 with UAC disabled. brewskybeer pre 1.0 RC1 7 2007-10-13 14:50
prompt on exit of mediaportal opusnut Improvement Suggestions 5 2006-03-16 03:59
prompt on exit of mediaportal Bochi General Development (no feature request here!) 0 1970-01-01 22:13


All times are GMT +1. The time now is 14:10.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Integrated by BBpixel ©2004-2008, jvbPlugin
Protected by Akismet Blog with WordPress