Re[6]: [GD-Windows] Security/access when writing to registry
Brought to you by:
vexxed72
From: Kerim B. <wa...@ho...> - 2003-01-23 08:14:54
|
Hello Dan, It seems that I simply ignored this stuff about sharing highscores;-( Best regards, Kerim mailto:wa...@ho... Thursday, January 23, 2003, 12:02:53 AM, you wrote: DT> Yeah I know, but it still doesn't solve the problem when the user wishes to DT> update some high score. That requires write access to HLKM, if you choose to DT> store there, which would fail. Other than something outside the registry, DT> the only other option would be to read in the high scores from every user DT> and select the highest, which is also an access denied I believe :) DT> Dan DT> ----- Original Message ----- DT> From: "Kerim Borchaev" <wa...@ho...> DT> To: "Dan Thompson" <gam...@li...> DT> Sent: Wednesday, January 22, 2003 12:15 PM DT> Subject: Re[4]: [GD-Windows] Security/access when writing to registry >> Hello Dan, >> >> Users can read from HKLM. So in case of "for all users" >> installer puts in HKLM "global" settings(like install location) >> to be only read in typical use of the app. And "local"(like >> video options) user settings are created in HKCU when user >> starts the application for the first time. >> >> Best regards, >> Kerim mailto:wa...@ho... >> >> Wednesday, January 22, 2003, 9:51:40 PM, you wrote: >> >> >> And on start of your app first, say, look into CU(if the user >> >> installed this soft for her personally ) and if nothing >> >> found loook into LM. >> >> DT> This won't nessearily work, because it implies that all users have DT> admin >> DT> rights. You suggest that only the installer needs admin rights, but if DT> the >> DT> installer puts it in HKLM, and adds it to the start menu for everyone, DT> the >> DT> program won't load for Users, because the program won't be able to DT> find it >> DT> in HKCU, and it will try HKLM, which will get it an access denied... >> >> DT> You could just have the installer put a copy of it in everyone's HKCU >> DT> somehow, but that doesn't solve the high scores problem... >> >> DT> I think your best bet is the common docs folder, or an internet high DT> scores. >> >> DT> -Dan >> >> >> DT> ----- Original Message ----- >> DT> From: "Kerim Borchaev" <wa...@ho...> >> DT> To: "Brian Hook" <gam...@li...> >> DT> Sent: Wednesday, January 22, 2003 1:06 AM >> DT> Subject: Re[2]: [GD-Windows] Security/access when writing to registry >> >> >> >> Hello Brian, >> >> >> >> Support both HKCU and HKLM. If your software is being installed >> >> by an advanced user let her choose what to use. Like this: >> >> >> >> "Do you want this software to be available to all users(requires >> >> admin rights) or only to the current user?(Yes/No)" >> >> >> >> And on start of your app first, say, look into CU(if the user >> >> installed this soft for her personally ) and if nothing >> >> found loook into LM. >> >> >> >> Best regards, >> >> Kerim mailto:wa...@ho... >> >> >> >> Wednesday, January 22, 2003, 11:01:55 AM, you wrote: >> >> >> >> BH> Yes, I'm revisiting a thread that's over a year old =) >> >> >> >> BH> I've been using HKCU instead of HKLM like a good Windows app, but DT> it >> >> BH> seems like you can't win 'em all. >> >> >> >> BH> The problem with HKCU is that, well, it's per user. I've gotten DT> very >> >> BH> sporadic complaints about having to install our games multiple DT> times >> >> BH> (including unlock codes), which isn't that big a deal. But what IS DT> a >> >> BH> big deal is when you have multiple users on the same machine trying >> >> BH> to compete against each other, but now their high scores aren't >> >> BH> shared. This is a pretty galling thing, since a lot of our games DT> are >> >> BH> competitive that way and we do find that more than a few of our >> >> BH> players are on multi-user systems. >> >> >> >> BH> Ideas on a clean solution to this problem? >> >> >> >> BH> Brian |