Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

regkeys wont install

Featured Replies

i've got a problem here.

i've downloaded the new Regtweaks collection of Gugutz. after i deleted the regkeys i didn't wanted, i put them in the cmdlines.txt. it looks like this:

[COMMANDS]
"regedit.exe /s Folder.view.and.Taskbar.reg"
"regedit.exe /s General.Settings.reg"
"regedit.exe /s Internet.Explorer.reg"
"regedit.exe /s Multimedia.reg"
"regedit.exe /s Other.Software.reg"
"regedit.exe /s Outlook.Express.reg"
"regedit.exe /s Start menu.and.Taskbar.reg"
"regedit.exe /s Startup.Shutdown.reg"
"regedit.exe /s System.Performance.reg"
"format_D.cmd"
"drive.cmd"
"Royale.exe"
"RunWPI.cmd"

format_D.cmd:

echo off
if exist D: goto fdir
:fdir
format d: /FS:NTFS /v:Data /q /y
exit

drive.cmd:

if exist D: goto mdir
:mdir
d:
md profiles
attrib +h profiles
"regedit.exe /s redirect.reg"
exit

redirect.reg:

Windows Registry Editor Version 5.00

;Change location of my documents

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal" ="D:\profiles\%USERNAME%\Mijn Documenten"
"My Video" ="D:\profiles\%USERNAME%\Mijn Video's"
"My Music" ="D:\profiles\%USERNAME%\Mijn Muziek"
"My Pictures"="D:\profiles\%USERNAME%\Mijn Afbeeldingen"
"Favourites" ="D:\profiles\%USERNAME%\Favorieten"
"Desktop" ="D:\profiles\%USERNAME%\Bureaulblad"

next was said on the registry tweak section of the unattended msfn site:

"the HKCU tweaks imported at T-12 apply to all accounts ever created"

so when i start my unattended cd and look @ T-12 i notice that my pc is "doing" something. when the install is finished i have:

a formated D drive,

a folder called profiles whos hidden,

and the common icons on the desktop (my computer, My documents, etc) So thats the only regkey thats imported as it looks like.

even the redirect.reg has not been imported.

What i'm doing wrong? :}

hi there, scaniafreak.

Try to import the tweaks using also RunOnceEx.

Some tweaks do not fix using only cmdlines, i don´t know why that happens.

And about the profiles, try using the ProfilesDir entrie under [GuiUnattended] on your winnt.sif to change the location of documents and settings folder, then change the reg tweak according to the folder you choose in winnt.sif.

And if you´re interested, i updated the tweaks collection. It now has a "essentials" folder with tweaks only for an unattended setup.

Check the topic to download the file.

Hope this helps.

Cheers.

gugutz

Edited by gugutz

oh, didn´t see that.

guess i was wrong.

Try doing that:

In you winnt.sif, under [GuiUnattended], put this:

ProfilesDir="C:\Profiles"

Then try this in the reg file:

Windows Registry Editor Version 5.00

;Change location of my documents

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal"="%USERPROFILE%\\Mijn Documenten"
"My Video"="%USERPROFILE%\\Mijn Video's"
"My Music"="%USERPROFILE%\\Mijn Muziek"
"My Pictures"="%USERPROFILE%\\Mijn Afbeeldingen"
"Favourites"="%USERPROFILE%\\Favorieten"
"Desktop"="%USERPROFILE%\\Bureaulblad"

That way it might work.

Edited by gugutz

  • Author

well i don't understand you a bit. sorry about that

but about the regfiles:

first i have put gugutz cmdlines.tweaks.cmd in the cmdlines.txt. but that didn't work. after that i put the regfiles directly in the cmdlines.txt. but that doesn't work also.

about the redirect:

my thoughts about this is that if there is no D-drive, then my documents and others wil be redirected to the default location (i.e documents and settings\ bla bla)

if there is a D-drive, then it has to be directed to the path specified in the redirect.reg.

i don't want the whole profile to be directed to another location. only the the things that are in the redirect.reg. this makes backupping data easier.

the reg_expand_sz what does it, and how can it befixed so that it will be imported?

You should have something a little more like this:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\
73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\
00,4d,00,69,00,6a,00,6e,00,20,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\
74,00,65,00,6e,00,00,00
"My Video"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\
73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\
00,4d,00,69,00,6a,00,6e,00,20,00,56,00,69,00,64,00,65,00,6f,00,27,00,73,00,\
00,00
"My Music"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\
73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\
00,4d,00,69,00,6a,00,6e,00,20,00,4d,00,75,00,7a,00,69,00,65,00,6b,00,00,00
"My Pictures"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\
00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\
5c,00,4d,00,69,00,6a,00,6e,00,20,00,41,00,66,00,62,00,65,00,65,00,6c,00,64,\
00,69,00,6e,00,67,00,65,00,6e,00,00,00
"Favorites"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\
00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\
5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,65,00,74,00,65,00,6e,00,00,00
"Desktop"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\
73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\
00,42,00,75,00,72,00,65,00,61,00,75,00,6c,00,62,00,6c,00,61,00,64,00,00,00

<Edit>

The Edit was to remove some formatting errors due to my browser and the forum software.

</Edit>

  • Author

that looks familiar to me. i saw it @ hkey user\.default\..\usershell folders\

that was in a virtual machine. but on my own OS i see only strings like paths. how do i change to that format.

and more important: how do i know to what location the hex values points, and how can i get the location in the redirect.reg in this hex format?

The data in the hex strings I have provided for you should match those in your redirect.reg in your opening post. The only change from yours other than that is that I have used the recognised, (though incorrect), spelling for favourites.

The common methods of producing the correct hex strings, other than my hand produced version above, is to export them from your existing registry, or use an .inf or .cmd /.bat file for your installation of the keys.

  • Author
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]"Personal"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\  73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\  00,4d,00,69,00,6a,00,6e,00,20,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\  74,00,65,00,6e,00,00,00"My Video"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\  73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\  00,4d,00,69,00,6a,00,6e,00,20,00,56,00,69,00,64,00,65,00,6f,00,27,00,73,00,\  00,00"My Music"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\  73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\  00,4d,00,69,00,6a,00,6e,00,20,00,4d,00,75,00,7a,00,69,00,65,00,6b,00,00,00"My Pictures"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\  00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\  5c,00,4d,00,69,00,6a,00,6e,00,20,00,41,00,66,00,62,00,65,00,65,00,6c,00,64,\  00,69,00,6e,00,67,00,65,00,6e,00,00,00"Favorites"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\  00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\  5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,65,00,74,00,65,00,6e,00,00,00"Desktop"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\  73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\  00,42,00,75,00,72,00,65,00,61,00,75,00,6c,00,62,00,6c,00,61,00,64,00,00,00

this isn't also working. maybe i can try to import this @ hk users\,default\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders.

What isn't working?

The content of your posting, (minus any forum formatting errors), is exactly as per your first post, except as I said for the spelling of favorites.

The only reason it wouldn't import would be due to the file you are using not following the correct syntax for its header and footer etc.

If it is importing but the changes not taking effect, then how about letting us know when and how, including any supporting documentation, you are running it.

If you're still having the problem, try skipping the variables and using double \\ instead of \ ones because from what I've been told, they have to be double to work.

;Change location of my documents

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal" ="C:\\My Data"
"My Video" ="C:\\My Data\\My Video"
"My Music" ="C:\\My Data\\My Music"
"My Pictures"="C:\\My Data\\My Pictures"
"Favourites" ="C:\\My Data\\Favourites"

Taken directly from the regtweak file from MSFN.

If you're still having the problem, try skipping the variables and using double \\ instead of \ ones because from what I've been told, they have to be double to work.
Please ignore the above, it practically undoes everything I've done so far.

There is nothing at all wrong in any way with the registry data I have produced. The error is only with how or when it is implemented

  • Author

finally i got it working :lol: What was wrong?

always i thought that you haven't to specify the location of the file that is called in the batch script if the files where in the same folder als the batch script. But when i downloaded the new regpack from gugutz, and saw that he put the location of the file in it i did that too, and then i works :lol:

so now the problem is solved. everybody thanks for their help.

Edited by scaniafreak

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.