Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > WinFX General

Vista - Vista & virtualization

 
 
Old 07-14-2006   #1 (permalink)
Eddie


 
 

Vista & virtualization

Hi

As I understand it, Microsoft has introduced 'virtualization' into
Vista to prevent users from writing data to 'sensitive' (i.e. HKLM)
parts of the registry. Instead they want developers to ensure that they
write to 'safe' locations (i.e. HKCU). My problem is this; our
application shares a number of global settings with all other system
users. So for example, on WinXP if 'user a' makes a change to our
application, all other users will see the same change when they login.
With Windows Vista, when 'user a' makes a change, it gets stored in
the 'virtual store' and none of the other user get to see it. Is
there anyway to work around this?

Thanks
Eddie.


My System SpecsSystem Spec
Old 07-24-2006   #2 (permalink)
Eddie


 
 

Re: Vista & virtualization


Hi,

Just to follow up. It seems that the only way to ensure that an
application can write to all parts of the registry is to run under that
Admin account. You can do this by using the following manifest file:

<application />
<entryPoint>
<assemblyIdentity name="WindowsApplication1" version="1.0.0.0"
language="neutral" processorArchitecture="msil" />
<commandLine file="WindowsApplication1.exe" parameters="" />
</entryPoint>
<trustInfo>
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator"
uiAccess="false"/>
</requestedPrivileges>
<applicationRequestMinimum>
<PermissionSet class="System.Security.PermissionSet"
version="1" Unrestricted="true" ID="Custom" SameSite="site" />
<defaultAssemblyRequest permissionSetReference="Custom" />
</applicationRequestMinimum>
</security>
</trustInfo>
</asmv1:assembly>

The problem I have is that this manifest will only work with C#
applications. My "Hello World" win32 application seems to just ignore
the manifest file. Can anybody help me? Is there any know issues with
Win32 apps and manifest files?

Thanks
Eddie

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Vista virtualization not working ? Vista security
Vista registry virtualization Vista General
Vista registry virtualization Vista security
Vista Virtualization - Business and Ultimate Only???? Vista General
Program virtualization vs. installer virtualization Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46