Jump to content

Explorer reg tweak works sometimes.


Recommended Posts

This is what I got to make the explorer buttons small and it works fine when ran manually but when used in runonceex or cmdlines it doesnt work. This is the final step I need to complete this setup. Does anyone have any idea of another way to achive this?

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons]
"SmallIcons"="yes"

[HKEY_USERS\S-1-5-21-789336058-1972579041-725345543-1003\Software\Microsoft\Windows\CurrentVersion\Explorer\SmallIcons]
"SmallIcons"="yes"

Link to comment
Share on other sites


HKEY_USERS\S-1-5-21-789336058-1972579041-725345543-1003

Kel, that long number S-1-5-21-789336058-1972579041-725345543-1003 is changing with every Windows install so it won`t work this way. Try to change HKEY_USERS\S-1-5-21-789336058-1972579041-725345543-1003 to HKEY_USERS\.DEFAULT . This way, the tweak should be applied to all users on the system. ;)

Link to comment
Share on other sites

how to get SID number.

First i must say that my english it isn't very good.

OK :)

1. we need a small application - WHOAMI.EXE. You can find him in your WindowsXP CD in SUPPORT\TOOLS

2. Create folder who's name a APM, I was do this for AutoPlay MENU Builder application.

3. Copy WHOAMI.exe to APM

4. Create a file CMD, name him a GET.CMD, copy GET.CMD to APM and write in him:

@echo off
cls
whoami /USER /SID > SID.txt
FOR /F "TOKENS=4* DELIMS=, " %%I IN (SID.TXT) DO (
SET SID=%%I
)
echo Windows Registry Editor Version 5.00>registration.reg
echo [HKEY_USERS\[COLOR=red][B]%SID%[/B][/COLOR]\Software\AutoPlay Menu Builder\Registration]>>registration.reg
echo "DontShowNAG"="1">>registration.reg
echo "Name"="BeAr">>registration.reg
echo "Code"="registration_code">>registration.reg

del SID.txt
del SIDB.txt

This script creates a reg file:

Windows Registry Editor Version 5.00
[HKEY_USERS\S-1-5-21-117609710-1580436667-725345543-1003\Software\AutoPlay Menu Builder\Registration]
"DontShowNAG"="1"
"Name"="BeAr"
"Code"="reg_code"

I was create a 7zip selfextracting archiv. So that its all.

Link to comment
Share on other sites

Kels, this is not a problem of SID or whatever. HKCU works fine.

The problem, as usual, is to find the right time(s) to import it. Which can change from one tweak to another.

This one tweak is really picky and needs the desktop (or explorer for that matter) to be allready loaded in order to work (that's why it works manually).

But you can't import it at T12 nor with direct RunOnceEx.

You'll need to make use of the 'programs\startup' folder to import it after the desktop is loaded.

I've made a little batch that take care of this thing together with a couple of others needing the startup folder, if you want to give it a glimps...

Edited by Djé
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...