Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Administrator rights and Software update(How to provide administrator rights to Software updates ?)
Administrator rights and Software update [message #857139] Thu, 26 April 2012 09:21 Go to next message
Bertrand K is currently offline Bertrand KFriend
Messages: 3
Registered: April 2012
Junior Member
Hi All,

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 ?

Thanks for your help !

Bertrand



Re: Administrator rights and Software update [message #857213 is a reply to message #857139] Thu, 26 April 2012 10:48 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
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
Re: Administrator rights and Software update [message #857353 is a reply to message #857213] Thu, 26 April 2012 13:26 Go to previous messageGo to next message
Bertrand K is currently offline Bertrand KFriend
Messages: 3
Registered: April 2012
Junior Member
Thanks for your reply.

You made me look my problem in a other way. So I use inno setup to install my product to windows, and through innodb, I put permission to modify my install folder so software updates works correctly now.

For inno setup, I use the following lines :
[Dirs]
Name: "{app}\"; Permissions: everyone-modify

I'm sure you can do the same thing with your installer ...

Regards
Bertrand
Re: Administrator rights and Software update [message #857370 is a reply to message #857353] Thu, 26 April 2012 13:33 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2012-04-26 15:26, Bertrand K wrote:
> Thanks for your reply.
>
> You made me look my problem in a other way. So I use inno setup to
> install my product to windows, and through innodb, I put permission to
> modify my install folder so software updates works correctly now.
>
> For inno setup, I use the following lines :
> [Dirs]
> Name: "{app}\"; Permissions: everyone-modify
>
> I'm sure you can do the same thing with your installer ...

No, we don't want to give modification permission to any Program Files
sub folder. The proper place for this is ProgramData (on Windows).

Greetings from Bremen,

- Daniel Krügler
Re: Administrator rights and Software update [message #859069 is a reply to message #857370] Fri, 27 April 2012 12:45 Go to previous message
Bertrand K is currently offline Bertrand KFriend
Messages: 3
Registered: April 2012
Junior Member
I don't give users rights to any sub folder but only to my "ProgramData" and it is enough for me to use the software update. But it seems that you need to do more because you modify the osgi configuration.

Regards
Bertrand
Previous Topic:[P2:] delete obsolete versions from installation
Next Topic:Cannot find a file in my bundle
Goto Forum:
  


Current Time: Tue Nov 30 07:22:31 GMT 2021

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

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

Back to the top