Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » p2.inf/addRepository and no write permissions in c:\program files
p2.inf/addRepository and no write permissions in c:\program files [message #490554] Fri, 09 October 2009 07:16
Benjamin Zeiss is currently offline Benjamin ZeissFriend
Messages: 29
Registered: July 2009
Junior Member

sorry if this is kind of a double post. I just realized i have been
replying to a thread that is several months old. I guess that no one
will find or read these posts.

I am currently building a product for a few Eclipse plugins. I have this
fully automated headlessly on a Linux machine and i automatically build
an installer for this product for the product build ant task is done.
The problem is as follows: normally, Windows applications are installed
into something like "c:\Program Files\myApp". Since Windows Vista, these
paths are locked down, i.e., we cannot write to these directories any
more. I have noticed that this causes problems with my product build. I
have added default repositories for this app in the p2.inf next to my
product file. These are listed when Eclipse has write access to the
installation directory. However, when i install the product into
"C:\Program Files\myApp", there are no write permissions and the
reaction is that my default sites aren't listed at all.

When i realized this, i started to fiddle around with the config.ini and
found a very helpful post that provided the information that i could add
properties in the <configuration> section of the product file that i
just want to add to the config.ini. So i fiddled around with the
osgi.configuration.area, osgi.instance.area,,
cascading etc. settings, but i didn't find a working configuration that
would somehow make my default sites list. I think the reason is that the
default is also moved the @user.home and the
profile settings are then missing (because they are located in the
installation directory). I really don't have a clue to solve this
problem other than copying the p2 directory to the configuration
directory in @user.home from the installation directory which seems to
make it work as a step after the installation is finished. But this
feels like a hack. I thought this cascading/read-only thing would maybe
be the right thing for it, but i can't seem to find the right
configuration - if this is even possible. I am wondering what the
default solution to this problem is.

Thanks and lot for your answers!
Previous Topic:Re: RCP app failing to update in 3.5
Next Topic:Authorizing Perspectives
Goto Forum:

Current Time: Tue Apr 24 16:47:24 GMT 2018

Powered by FUDForum. Page generated in 0.01450 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software