Page 1 of 1

Shareaza needs Admin priviledges to play sound files

PostPosted: 24 Oct 2010 14:15
by andreas17
Hello

I've Windows 7 64bit and installed Shareaza 2.5.3.0.
When I want to play an MP3 file I get the message "Shareaza could not instantiate its MediaServices plugin. Please reinstall Shareaza, and confirm that you have the necessary media codecs and output drivers installed."
(see viewtopic.php?f=3&t=777&p=5221&hilit=MediaServices#p5221)
But when I start Shareaza as Administrator it sounds as expected. I've started the Process Monitor from Sysinternals to find out whether there are missing access rights but I couldn't find any thing wrong.

Please modify Shareaza that it can play sound files with user priviledges.
Thanks.

Kind regards,
Andreas

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 24 Oct 2010 16:56
by cyko_01
this is a known bug. You should be able to fix it by doing a clean install

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 24 Oct 2010 19:27
by andreas17
I did a clean install - without success.
When I'm logged in with user Admin (which belongs to the Administrator group) -> sound plays
When I'm logged in with user Andreas (which belongs to the User group) -> error message as originally described.
When I add the user Andreas to the Administrator group -> doesn't help.
When I copy the registry keys HKCU\Software\Shareaza from Admin to Andreas -> doesn't help

Is a fix for this known bug already scheduled?

Kind regards,
Andreas

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 25 Oct 2010 00:48
by cyko_01

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 25 Oct 2010 18:40
by ailurophobe
The way it seems to work is that when installed Shareaza registers its plugins with Windows and then stores the GUIDs for them in its own registry entries and uses them to link to the plugins. If you originally installed using a different account than you are now using the GUID Shareaza tries to use may be invalid. So you need to either install using the user account you want to use or for all user accounts.

Or that is my guess based on the registry values Shareaza actually stores looking like GUIDs, anyway... Never actually checked if it is true. Fits the symptoms, though. So it would not be a privileges issue, just that the plugins are not registered for the account you try to use, but are for the administrator account. Maybe that was the account that was originally used to install Shareaza?

Wasn't there some way to just re-register the plugins?

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 26 Oct 2010 13:16
by old_death
Actually there was a command line switch to reregister the plugins, IIRC.

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 26 Oct 2010 17:39
by ailurophobe
Found it:
-RegServer : register internal components for everyone
-UnRegServer : unregister internal components for everyone
-RegServerPerUser : register internal components for current user
-UnRegServerPerUser : unregister internal components for current user

So just start Shareaza once with the -RegServer command line switch and it should start working.

Not sure when these switches were introduced. They might be in the version you are using, if not you'll need to get a newer one from SourceForge.

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 26 Oct 2010 18:41
by raspopov
OD, please don't reopen bug tickets. This bug was fixed long time ago in alpha version.

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 26 Oct 2010 23:46
by old_death

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 29 Nov 2010 12:38
by alvato
Hi,
having same problem on winxp + non admin privilege.
to miniize the damage, better take the Shareaza download offline and offer the "2.5.2.0" version on the shareaza.sourceforge.net site until fixed release is out.
Chers

Re: Shareaza needs Admin priviledges to play sound files

PostPosted: 30 Nov 2010 00:41
by old_death
Just uninstall it and use an alpha build. r8866 should be more or less stable: http://shareaza.sourceforge.net/?id=debug