|
Re: Administrator rights and Software update [message #857213 is a reply to message #857139] |
Thu, 26 April 2012 10:48 |
Daniel Krügler Messages: 853 Registered: July 2009 |
Senior Member |
|
|
On 2012-04-26 11:21, Bertrand K wrote:
> I'm using P2 to update my eclipse rcp product. For company reason, I
> have to install my product under Program Files. But in this
> configuration, my software update does not work correctly. And if I run
> as administrator my product, the software updates correclty, but my
> users do not have to think to start my product with administrator rights.
> How can I have solve my problem ?
> - can I ask for administrator rights during P2 software update ?
> - can I ask for administrator rights at product start up ?
I cannot directly answer your question, but we have observed similar
problems with P2. Our solution was the following: Our setup program
added to the .ini file (This is the one parallel to the .exe) of our RCP
product an entry
-Dosgi.configuration.area=/some_absolute_path/
In addition, the setup prepares a directory at /some_absolute_path/,
where all users have read and write access. On Windows 7, we decided
that to be some sub-directory of "ProgramData" (The environment
variables %ALLUSERSPROFILE% or %ProgramData% point to this). Note that
it will not be sufficient to create a sub-dir of "ProgramData" alone,
you also have to assign explicit rights to all users.
The reason for this process is to realize that the setup has knowledge
of the configuration area. Without explicitly setting it, the
Eclipse-mechanism will find out that it cannot write to the Program
Files dir after completion of setup (First start for example) and will
create a fallback directory somewhere in a .eclipse dir of the current
*user*.
Should you find out some more appropriate solution, feedback would be
appreciated.
HTH & Greetings from Bremen,
Daniel Krügler
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04216 seconds