"Folder virtualization" and RCP excetuables [message #756203] |
Fri, 11 November 2011 08:23  |
Eclipse User |
|
|
|
This posting is relevant for Windows OSes, especially from Windows Vista
on. On these systems the it depends on the entries of a so-called
manifest (an xml file which can either be provided in parallel to the
..exe or can be embedded within the .exe), whether the so-called "folder
virtualization" policy is in effect or not. What this means is the
following: If folder virtualization is enabled (this is the default),
there won't be an error, if a process started by a user with
insufficient rights attempts to write a file, but instead the file will
be created in a subfolder of the user's home directory (where write
access is provided). This can be source of subtle errors that happen
when you try to update your RCP client, because the client will still
read the data from the "virtualized" folders.
Currently we still must work with RCP's that are created based on an
Eclipse 3.6.1 PDE builder and we observed the following:
a) The builder seems to embed a manifest, but does not add entries that
disable "folder virtualization" to be in effect. One would need to add
an xml element like
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
to realize that.
b) We tried to read the manifest from the .exe with the tool mt.exe but
this gives us an error that there is no such resource available. This
seems to indicate that the embedding has not been done correctly or at
least such that mt.exe cannot understand this.
I have the following questions:
a) Does the PDE build process (on Windows) allow to configure the
contents of the manifest that will be embedded?
b) Does anyone know whether the new PDE builders (e.g. part of Eclipse
3.7.x) does either add entries to the manifest which disables folder
virtualization or does at least allow to read and reset the manifest by
tools like mt.exe?
Thanks & Greetings from Bremen,
Daniel Krügler
|
|
|
|
Powered by
FUDForum. Page generated in 1.06958 seconds