Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Reg tweaks problems

- - - - -

  • Please log in to reply
23 replies to this topic

#1
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07
What does it mean when your registry tweaks run fine during your unattended installation, but when your computer restarts they don't show up on your computer. I have taken off the /s switches so I know for a fact they are running. I have to hit yes and ok for them to run. I tested my reg tweaks many times and I know they run just fine.


How to remove advertisement from MSFN

#2
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,252 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
what are your reg tweaks? Some need to be applied at different points during the UA setup.

#3
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

what are your reg tweaks? Some need to be applied at different points during the UA setup.

I have just one for now. I'm just trying to get the basics down. I named it SHOW_OPERATING_FILES.REG.
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"SuperHidden"=dword:00000001
"ShowSuperHidden"=dword:00000001


#4
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07
Does anyone have any ideas?

#5
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,252 posts
  • Joined 24-September 03
  • OS:Windows 8.1 x64
  • Country: Country Flag
At what point are you settings these settings?

#6
JoeMSFN

JoeMSFN

    Member

  • Member
  • PipPip
  • 205 posts
  • Joined 28-September 04

What does it mean when your registry tweaks run fine during your unattended installation, but when your computer restarts they don't show up on your computer. I have taken off the /s switches so I know for a fact they are running. I have to hit yes and ok for them to run. I tested my reg tweaks many times and I know they run just fine.

Can't say why your's doesn't work, but mine works with the /s.
I run my regtweaks from cmdlines.txt
[COMMANDS]
"REGEDIT /S .\DefUserRegTweaks.reg"
I also like to apply it to all users (including newly created ones) so instead of
[HKEY_CURRENT_USER
I like to use
[HKEY_USERS\.DEFAULT
Then it gets applied even to the 1st created user.

Edited by JoeMSFN, 26 July 2008 - 11:04 PM.


#7
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

At what point are you settings these settings?


I apply it here.
[Commands]
"OemPreinstall.cmd"
"REGEDIT /S SHOW_OPERATING_FILES.REG"
"COMPRESSION_STUFF.CMD"

Is applying it here bad? Remember I use this. I call it SHOW_OPERATING_FILES.REG.
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"SuperHidden"=dword:00000001
"ShowSuperHidden"=dword:00000001


#8
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

At what point are you settings these settings?


I apply it here.
[Commands]
"OemPreinstall.cmd"
"REGEDIT /S SHOW_OPERATING_FILES.REG"
"COMPRESSION_STUFF.CMD"

Is applying it here bad? Remember I use this. I call it SHOW_OPERATING_FILES.REG.
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"SuperHidden"=dword:00000001
"ShowSuperHidden"=dword:00000001


Any ideas please?

#9
spacesurfer

spacesurfer

    Pharmassist

  • Patrons
  • 1,651 posts
  • Joined 31-July 04
  • OS:Windows 7 x86
  • Country: Country Flag
It means you got your registry tweak wrong.

You need to set SuperHidden to 0 and ShowSuperHidden to 1 if you want to see hidden system files.

If not, set SuperHidden to 1 and ShowSuperHidden to 0.

The values are opposite of each other, not the same.

Applying this manually, you'll see that these values change as I mentioned.

Beats me why there are two entries are changed when doing one thing.

Edited by spacesurfer, 21 August 2008 - 03:01 PM.

_____________________________________________________________________
[Modify Office 2007 / 2010 Ribbon UI] [Javascript Guide] [Methods of Typing in Gujarati] [My Math Pages]
[Boot Windows 7 from VHD] [Multi-boot Vista/XP and other OSes with Grub Menu] [Boot XP and Vista Independently]


Gigabyte GA-P35-DS3L, Intel Core 2 Duo E6550 2.33 GHz, ASUS Radeon EAH3450 256 MB, 6 GB Corsair RAM, Maxtor 300 GB + Seagate 400 GB HDDs, Windows 7 Ultimate 64-bit
IBM T42 Intel Pentium M 1.7 GHz, 1.5 GB RAM, Radeon Mobility 7500, 160 GB HDD, Windows 7 Ultimate 32-bit

#10
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

It means you got your registry tweak wrong.

You need to set SuperHidden to 0 and ShowSuperHidden to 1 if you want to see hidden system files.

If not, set SuperHidden to 1 and ShowSuperHidden to 0.

The values are opposite of each other, not the same.

Applying this manually, you'll see that these values change as I mentioned.

Beats me why there are two entries are changed when doing one thing.


I gonna be royally p***ed if yer right. I'm pretty sure your right. This worked when I applied it on my computer, so I don't understand why it didn't work during my unattended install. What you said does make a lot of since though.

#11
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

It means you got your registry tweak wrong.

You need to set SuperHidden to 0 and ShowSuperHidden to 1 if you want to see hidden system files.

If not, set SuperHidden to 1 and ShowSuperHidden to 0.

The values are opposite of each other, not the same.

Applying this manually, you'll see that these values change as I mentioned.

Beats me why there are two entries are changed when doing one thing.


I wish it was that easy. I tried it with only ShowSuperHidded as 1 and it did not work.

#12
spacesurfer

spacesurfer

    Pharmassist

  • Patrons
  • 1,651 posts
  • Joined 31-July 04
  • OS:Windows 7 x86
  • Country: Country Flag
it works for me. however, it requires a refresh - like closing explorer windows and restarting them.

it's really hard to make it toggle, but i know that you're not trying to toggle it but have it applied during setup.


beats me!
_____________________________________________________________________
[Modify Office 2007 / 2010 Ribbon UI] [Javascript Guide] [Methods of Typing in Gujarati] [My Math Pages]
[Boot Windows 7 from VHD] [Multi-boot Vista/XP and other OSes with Grub Menu] [Boot XP and Vista Independently]


Gigabyte GA-P35-DS3L, Intel Core 2 Duo E6550 2.33 GHz, ASUS Radeon EAH3450 256 MB, 6 GB Corsair RAM, Maxtor 300 GB + Seagate 400 GB HDDs, Windows 7 Ultimate 64-bit
IBM T42 Intel Pentium M 1.7 GHz, 1.5 GB RAM, Radeon Mobility 7500, 160 GB HDD, Windows 7 Ultimate 32-bit

#13
Martin H

Martin H

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 791 posts
  • Joined 24-November 06
  • OS:none specified
If regtweaks dosen't work from T-12(cmdlines.txt), then try from first-logon instead...

Remove this from cmdlines.txt:
"REGEDIT /S SHOW_OPERATING_FILES.REG"
Add this to cmdlines.txt:
"RunOnceEx.cmd"
Make a file named RunOnceEx.cmd in $OEM$ with this:
@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "regedit /s %~dp0\SHOW_OPERATING_FILES.REG" /f


Btw, since you said in your other thread that you where having trouble getting WinRAR and 7-Zip installed from cmdlines.txt, then if you'd like, then you could install them also from first-logon instead...

I myself would recommend doing it like this:

Delete everything from cmdlines.txt and just keep:
"RunOnceEx.cmd"
Make a folder named RunOnceEx under $OEM$ and place '7-Zip-v4.42.exe', 'WinRAR-v3.71.exe' and 'SHOW_OPERATING_FILES.REG' into it.

Delete the contents of RunOnceEx.cmd and replace it with this:
@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add %key%\003 /v 1 /d "regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f

/* Moved to Linux - Thanks for a nice stay all! */
Posted Image


#14
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

it works for me. however, it requires a refresh - like closing explorer windows and restarting them.

it's really hard to make it toggle, but i know that you're not trying to toggle it but have it applied during setup.


beats me!



Huh????? Elaborate please.

#15
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

Make a folder named RunOnceEx under $OEM$ and place '7-Zip-v4.42.exe', 'WinRAR-v3.71.exe' and 'SHOW_OPERATING_FILES.REG' into it.

Delete the contents of RunOnceEx.cmd and replace it with this:

@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add %key%\003 /v 1 /d "regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f


Ok I got a couple of questions though. Don't I need to have cmdow on the disc somewhere? So where would be the best place to add cmdow? Could you please also explain the parts of the RunOnceEx.cmd. I understand most of it. The %~dpn0 part is the part I'm most confused about. I know the %key%\001 /v makes folders inside RunOnceEx. I know 1 /d makes a REG_SZ called one. The rest is the directory and the force overwrite switch. I still can't figure out the %~dpn0 part.

#16
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

Make a folder named RunOnceEx under $OEM$ and place '7-Zip-v4.42.exe', 'WinRAR-v3.71.exe' and 'SHOW_OPERATING_FILES.REG' into it.

Delete the contents of RunOnceEx.cmd and replace it with this:

@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add %key%\003 /v 1 /d "regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f


The 7-Zip and WinRaR installed good with the RunOnceEx.cmd. Unfortunately my SHOW_OPERATING_FILES.REG is not working for me. Does it have something to do with it being the admin account? I really don't know what else it could be.

#17
Martin H

Martin H

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 791 posts
  • Joined 24-November 06
  • OS:none specified
No, it isn't related to you using the built-in admin account...

Now if you're absolutely sure that the tweak actually works and that SHOW_OPERATING_FILES.REG is located in "\$OEM$\RunOnceEx\", then the tweak needs to be applied after the shell has fully loaded, so try with this RunOnceEx.cmd:
@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce /v command0 /d "regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f
If that dosen't work, then try this:
@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce /v command0 /d "cmd /c @cmdow @ /hid&ping -n 1 -w 10000 1.1.1.1&regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f
Also, remember to have cmdow.exe into '\$OEM$\$$\System32\'...

The last one will pause 10 seconds after the shell(explorer) has finished loading, so if it still dosen't work, then i'm affraid that i cannot help you...

/* Moved to Linux - Thanks for a nice stay all! */
Posted Image


#18
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

Also, remember to have cmdow.exe into '\$OEM$\$$\System32\'...

The last one will pause 10 seconds after the shell(explorer) has finished loading, so if it still dosen't work, then i'm affraid that i cannot help you...


I forgot the Bloody cmdow.exe. I know for a 100% fact my SHOW_OPERATING_FILES.REG is being applied to my computer. For some reason the changes are not showing up in the HKEY_CURRENT_USER, but they are showing up in the HKEY_USERS\.DEFAULT. According to this: http://unattended.ms...xp/view/web/17/
the HKEY_CURRENT_USER hive is imported over to the HKEY_USERS\.DEFAULT Hive. So I don't understand why my tweaks would show up in the HKEY_USERS\.DEFAULT, and not in the HKEY_CURRENT_USER hive. Another thing that is really weird to me is every time I create a new account the HKEY_USERS\.DEFAULT hive is being copied over to the HKEY_CURRENT_USER hive. I have created 3 accounts and the info isn't being copied over.

#19
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

No, it isn't related to you using the built-in admin account...

Now if you're absolutely sure that the tweak actually works and that SHOW_OPERATING_FILES.REG is located in "\$OEM$\RunOnceEx\", then the tweak needs to be applied after the shell has fully loaded, so try with this RunOnceEx.cmd:

@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce /v command0 /d "regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f
If that dosen't work, then try this:
@cmdow @ /hid
set key=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
reg add %key%\001 /v 1 /d "%~dpn0\7-Zip-v4.42.exe" /f
reg add %key%\002 /v 1 /d "%~dpn0\WinRAR-v3.71.exe" /f
reg add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Runonce /v command0 /d "cmd /c @cmdow @ /hid&ping -n 1 -w 10000 1.1.1.1&regedit /s %~dpn0\SHOW_OPERATING_FILES.REG" /f
Also, remember to have cmdow.exe into '\$OEM$\$$\System32\'...

The last one will pause 10 seconds after the shell(explorer) has finished loading, so if it still dosen't work, then i'm affraid that i cannot help you...


Thx Martin for all of yer help. I just tried a silly idea of mine and it actually worked. I added a couple of lines to my SHOW_OPERATING_FILES.REG. The bold part is the new stuff.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"Hidden"=dword:00000001
"SuperHidden"=dword:00000001
"ShowSuperHidden"=dword:00000001

[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSuperHidden"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]
"DefaultValue"=dword:00000001


Adding that part to the HKEY_LOCAL_MACHINE did the trick. I've been reading and learning as much as I can about the registry the last couple of days. So what I wanted to do has finally been accomplished. Thx a lot Martin I could have never of accomplished this without yer help.

Edited by COKEDUDEUSF, 24 August 2008 - 03:00 AM.


#20
zoubir97

zoubir97

    Newbie

  • Member
  • 10 posts
  • Joined 25-January 06
for my uninstall install, i use this tweak to show system file and it work correctely

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]
"DefaultValue"=dword:00000001

; To get rid of that annoying backwards warning.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder\SuperHidden]
"WarningIfNotDefault"=-

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ShowSuperHidden"=dword:00000001

zoub

#21
Martin H

Martin H

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 791 posts
  • Joined 24-November 06
  • OS:none specified

Thx a lot Martin I could have never of accomplished this without yer help.

You're most welcome and i'm glad you've gotten it fixed now :)

/* Moved to Linux - Thanks for a nice stay all! */
Posted Image


#22
TranceEnergy

TranceEnergy

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 963 posts
  • Joined 23-March 06
I'll bet if you had just done it to current user in the first place instead of to default user it would have worked regardless.
Simply because Current user and Default user are totally separate things.
What you apply to default user, only takes action once a new user account is created.

#23
COKEDUDEUSF

COKEDUDEUSF

    Member

  • Member
  • PipPip
  • 230 posts
  • Joined 24-January 07

I'll bet if you had just done it to current user in the first place instead of to default user it would have worked regardless.
Simply because Current user and Default user are totally separate things.
What you apply to default user, only takes action once a new user account is created.


Nope!!!!!!!!!!!! Not in this case. I wish it was that easy. I started off doing it to current user only, then added default user, then added local machine. I really don't care why it happened that way, all I know is I'm happy it is behaving for me and Martin had a extremely high patience level to help me.

#24
TranceEnergy

TranceEnergy

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 963 posts
  • Joined 23-March 06
That is weird. Because it works for me, with those tweaks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users