andrewcrawford Posted June 30, 2008 Posted June 30, 2008 Does anyoen know how to tdetect what teh current S-1-5-21-* is because one of my serial is required to add to the hkey users but since it keeps changing every time then it doesnt detect it probally in fact i think it is preventing my reg entryt adding.
Worf Posted June 30, 2008 Posted June 30, 2008 (edited) Hi.I have been working on my own way of intergrateing programs into Windows XP which is taking me hours if not days to do because of all the registry entries i have to change so that i can intergrate them into the HIVE files.One of them was Serials ect that go into HKU, to get them to go into HKU you will need to find the same location in the HKCU and add the string value there. For Example (PowerISO)For PowerISO the serial is located here in HKU:HKU,"S-1-5-21-1482476501-926492609-682003330-500\Software\PowerISO",,0x00000012HKU,"S-1-5-21-1482476501-926492609-682003330-500\Software\PowerISO","User Name",0x00000001,(Serial Number)And in HKCU:HKCU,"Software\PowerISO",,0x00000012HKCU,"Software\PowerISO","User Name",0x00000001,(Serial Number)So just put the string from HKU into HKCU and when you start the program it will automaticly create the HKU strings and also copy the Serial too.The way i install all my programs now is through INF files and then add all the registry entries to the HIVE files. Then i add an entry in the SysSetup.inf which will install my programs. As you will not be able to uninstall them by doing it this way (unless you include the uninstall strings) i only do it with programs that i use the most.If you would like to know how i do this then send me a pm and i will explain it to you and also upload an example of one of the programs i install through INF files. I must warn you that it can take hours just to one program due to the registry entries.Hope this helps.Worf Edited June 30, 2008 by Worf
Jelmer Posted July 22, 2010 Posted July 22, 2010 This wil help:GOTO main:modkey REM %1 is the value of %a that is passed. REG ADD "HKU\%1\Software\PowerISO" /v "Name" /t REG_SZ /d "Value" /f REG ADD "HKU\%1\Software\PowerISO" /v "Name" /t REG_SZ /d "Value" /f REM Going to :end here only ends this instance of the call to the REM :modkey label. It does not end the whole batch file.GOTO end:mainFOR /F "tokens=2* delims=\" %%a IN ('REG QUERY HKU ^|Findstr /R "S-1-5-[0-9]*-[0-9-]*$"') DO CALL :modkey %%aGOTO end:endWorks for me.Jelmer.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now