Windows registry keys
[1/13] from: anton::lexicon::net at: 16-Aug-2002 3:37
I am looking into the windows registry I wonder if other people have exactly the same long path element as in below: HKEY_USERS\S-1-5-21-1614895754-688789844-1060284298-1000\Software\Rebol Are the numbers exactly the same? I am interested in making a silent install for rebol. Anton.
[2/13] from: greggirwin:mindspring at: 15-Aug-2002 11:48
Hi Anton, << I wonder if other people have exactly the same long path element as in below: >> Nope, sorry. --Gregg
[3/13] from: amicom:sonic at: 15-Aug-2002 11:42
I don't have a path anything similar to that in my registry. I have Rebol in HKEY_CURRENT_USER\Software\Rebol and HKEY_USERS\Default\Software\Rebol Hope this helps! -Bo At 03:37 AM 8/16/02 +1000, you wrote:
[4/13] from: atruter:hih:au at: 16-Aug-2002 9:30
Looks like a licence key to me. Regards, Ashley
[5/13] from: alanwall:sonic at: 15-Aug-2002 20:04
At 08:16 PM 8/15/02 -0400, you wrote:
>Anton: > > HKEY_USERS\S-1-5-21-1614895754-688789844-1060284298-1000\Software\Rebol > >I have nothing like this on a Win98 machine. All I have is a few entries in: > >HKEY_USERS/.DEFAULT/Software/Rebol/Console >HKEY_USERS/.DEFAULT/Software/Rebol/Link >HKEY_USERS/.DEFAULT/Software/Rebol/View
On my Win98 first ed: HKEY_CLASSES_ROOT/.r/Default "REBOL Script" /Context Type "text/x-rebol" [HKEY_CURRENT_USER\Software\Rebol] [HKEY_CURRENT_USER\Software\Rebol\Console] Version =hex:01,00,00,00,00,00,00,00 Font =hex:0e,00,00,00,09,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,00,\ 00,00,00,00,00,01,46,69,78,65,64,73,79,73,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00 Window Position =hex:69,00,00,00,d7,01,00,00 Window Size =hex:22,03,00,00,04,01,00,00 Window Show =hex:01,00 Buffer Lines =hex:90,01,00,00 Window Width =hex:61,00,00,00 Wide As Window =hex:01,00,00,00 [HKEY_CURRENT_USER\Software\Rebol\View] HOME ="/d/rebol/view/" Product ="View 188.8.131.52.1" [HKEY_CURRENT_USER\Software\Rebol\Link] HOME ="/d/rebol/link/" Product ="Link 184.108.40.206.1" [HKEY_USERS\.DEFAULT\Software\Rebol] [HKEY_USERS\.DEFAULT\Software\Rebol\Console] Version =hex:01,00,00,00,00,00,00,00 Font =hex:0e,00,00,00,09,00,00,00,00,00,00,00,00,00,00,00,90,01,00,00,00,00,\ 00,00,00,00,00,01,46,69,78,65,64,73,79,73,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00 Window Position =hex:69,00,00,00,d7,01,00,00 Window Size =hex:22,03,00,00,04,01,00,00 Window Show =hex:01,00 Buffer Lines =hex:90,01,00,00 Window Width =hex:61,00,00,00 Wide As Window =hex:01,00,00,00 [HKEY_USERS\.DEFAULT\Software\Rebol\View] HOME ="/d/rebol/view/" Product ="View 220.127.116.11.1" [HKEY_USERS\.DEFAULT\Software\Rebol\Link] HOME ="/d/rebol/link/" Product ="Link 18.104.22.168.1"
[6/13] from: yeksoon:myrealbox at: 16-Aug-2002 12:47
I am on win2k and have something similar but different numbers. eg. HKEY_USERS\S-1-5-21-515967899-484763869-1708537768-500\Software\Rebol YekSoon At 03:37 AM 8/16/2002 +1000, you wrote:
[7/13] from: anton:lexicon at: 16-Aug-2002 16:00
Maybe win2k has this format, win98 a simpler format? Also, we aren't unwittingly giving away our license keys or anything like that are we? Anybody know? Anton.
[8/13] from: anton:lexicon at: 16-Aug-2002 17:58
Actually, I just looked at the size of my license key - 845 bytes, much larger than the size of the registry path element. It's probably not giving away much if it is at all, then. Anton.
[9/13] from: brian:hawley at: 16-Aug-2002 3:36
At 03:37 AM 8/16/02 +1000, you wrote:
>I am looking into the windows registry > >I wonder if other people have exactly the same >long path element as in below: > >HKEY_USERS\S-1-5-21-1614895754-688789844-1060284298-1000\Software\Rebol > >Are the numbers exactly the same?
That key is a user-specific key on WinNT or above. On those Windows you (when you have administrator access) can see the registry settings of all of the users installed on the your system. They are accessed through coded IDs under HKEY_USERS. One of those branches is ".DEFAULT", a placeholder for the settings that new users are created with. HKEY_CURRENT_USER is a shortcut for the branch associated with the user that is currently using the registry.
>I am interested in making a silent install for rebol.
Well, I for one would be very happy to see it. The current installer for REBOL/View is quite unfriendly to multi-user versions of Windows. That means every version in the NT line, including 2000 and XP in particular. This becomes more of a disadvantage with 2000 and XP. Fortunately the problem is easy to fix. A REBOL/View installation on Windows is currently single- user, since it stores all of its data files in the same directory as its program file. Since REBOL is generally installed in a central location, this means that security settings get in the way of using it. To run REBOL on Win2k you need to be a "Power User", on XP an Administrator. Any other setup can be a major security issue. This is also a factor in installing REBOL on Terminal Server or other true multi-user versions of Windows, like any version of XP. I'm afraid this is what they mean by "logo-compliance". REBOL doesn't need to be installed that way, though. The program file is so small that you can give one to each user, as long as you put it under the user's profile directory. Fortunately that isn't as difficult as it sounds. Once REBOL thinks it is installed the program file you are actually running doesn't have to be in the same directory as the data. As long as the data directory listed in HKEY_CURRENT_USER\Software\Rebol\View:HOME actually exists, REBOL will pop up the user settings dialog and download all of its data files there (yes, including a copy of rebol.exe that can go unused). Watch out though: If the data directory doesn't exist before REBOL tries to save the user preferences, REBOL will crash. I have notified Feedback of this. So a multi-user-clean install of REBOL would go like this: - Copy rebol.exe into a central location like C:\Program Files\REBOL You can get the actual Program Files directory from HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion in the "ProgramFilesDir" value. Create the REBOL dir if needed. - If you want file associations, you can create them like this: - Create HKEY_CLASSES_ROOT\.r - Under this set the default value to "REBOL.Script" (without the quotes), and the "Content Type" (without the quotes) value to "text/x-rebol" (without the quotes). - Create HKEY_CLASSES_ROOT\.r\ShellNew - Under this set the NullFile value to the empty string. - Create HKEY_CLASSES_ROOT\REBOL.Script - Under this set the default value to "REBOL Script" (without the quotes), and the EditFlags value to a REG_BINARY of 0. - Create HKEY_CLASSES_ROOT\REBOL.Script\DefaultIcon - Under this set the default value to the full path of the program file where you copied it earlier, with ",0" appended like this: C:\Program Files\REBOL\rebol.exe,0 - Create HKEY_CLASSES_ROOT\REBOL.Script\shell - Set its default value to View - Create HKEY_CLASSES_ROOT\REBOL.Script\shell\Edit - Set its default value to &Edit - Create HKEY_CLASSES_ROOT\REBOL.Script\shell\Edit\command - Set its default value to Notepad or some such, like this: C:\WINNT\system32\NOTEPAD.EXE %1 You should use the txtfile association if you can. - Create HKEY_CLASSES_ROOT\REBOL.Script\shell\Open - Set its default value to &Open - Create HKEY_CLASSES_ROOT\REBOL.Script\shell\Open\command - Set its default value to the same command as Edit. - Create HKEY_CLASSES_ROOT\REBOL.Script\shell\View - Set its default value to &View - Create HKEY_CLASSES_ROOT\REBOL.Script\shell\View\command - Set its default value to the command to open a file, like: "C:\Program Files\REBOL\rebol.exe" -q "%1" with the quotes this time. - Now for the user-specific settings, for every user, including the default. First do HKEY_CURRENT_USER then each user under HKEY_USERS. Win9x doesn't keep the user settings in keys like the one you mentioned above, just ".DEFAULT", so you should remember to do HKEY_CURRENT_USER first. I'll use <KEY> as a placeholder for HKEY_CURRENT_USER, HKEY_USERS\.DEFAULT, etc. For each user: - Create a "REBOL" directory under the AppData directory. You can get the AppData directory from <KEY>\Software\Microsoft\Windows\ CurrentVersion\Explorer\Shell Folders in the "AppData" value. If the user has a license, you can put it in the directory you created too. - Create <KEY>\Software\Rebol - Create <KEY>\Software\Rebol\Console - Create <KEY>\Software\Rebol\View - Under <KEY>\Software\Rebol\View, create values - HOME : The REBOL version of the AppData REBOL directory you created earlier, such as (on Win2k or above): /C/Documents and Settings/user/Application Data/REBOL/ - Product : The product and version, like "View 22.214.171.124.1" without the quotes. - Create a per-user program group and shortcut to the global REBOL program file in "C:\Program Files\REBOL" or whatever the directory turned out to be. While you're at it you can copy that shortcut to the user's desktop folder, which you can get from <KEY>\Software\Microsoft\Windows\ CurrentVersion\Explorer\Shell Folders in the "Desktop" value. Try not to overwrite per-user settings that may already exist, but go ahead and overwrite the global settings. Don't bother using REBOL/View's built in uninstaller as it is not multi-user friendly. If you want to provide a user-accessible uninstaller, go ahead, but just let it remove the per-user registry settings but not the files. If you want an uninstaller to completely clean all of the REBOL settings and program files, it's best to keep it to yourself. I hope this helped. Probably more information than you needed, but if not I'll rig up an Inno Setup script that will generate an installer that behaves as above and post it for you. Brian Hawley
[10/13] from: ptretter:charter at: 16-Aug-2002 13:26
On NT based platforms, I believe its part of user security and matches the number with information authenticated by the users to the correct registry key values. Paul Tretter
[11/13] from: otherchaz:mindspring at: 16-Aug-2002 20:43
The number is Profile Guid, unique for each user in the world. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/sys info_1691.asp
[12/13] from: anton:lexicon at: 17-Aug-2002 19:58
Thanks chaz, that is good to know. Anton.
[13/13] from: oliva:david:seznam:cz at: 16-Aug-2002 11:51
Hello Anton, Thursday, August 15, 2002, 7:37:11 PM, you wrote: A> I am looking into the windows registry A> I wonder if other people have exactly the same A> long path element as in below: A> HKEY_USERS\S-1-5-21-1614895754-688789844-1060284298-1000\Software\Rebol A> Are the numbers exactly the same? A> I am interested in making a silent install for rebol. A> Anton. No... and I think that has nothing to do with Rebol... I understand that it's a way how M$ names users on your machine (only in NTs/W2000/XP?) -> imagine you have two accounts on your PC one has Rebol installed and the second not... for security reasons you may not see in registry for example: HKEY_USERS\David\Software\Rebol :-)