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

Auto Arrange Desktop Icons Setting?

- - - - -

  • Please log in to reply
34 replies to this topic

#1
cardguy1000

cardguy1000

    Newbie

  • Member
  • 10 posts
Does anyone know how the option to auto arrange desktop icons is set? I used regshot to monitor the registry and it noticed no changes. Anyone know how this can be done so that it can be added into a script? Thanks


How to remove advertisement from MSFN

#2
Vann

Vann

    Junior

  • Member
  • Pip
  • 89 posts
I would also like to know about this. The behavior is copied over when one copies a profile, so it has to be stored somewhere.

#3
Nologic

Nologic

    Advanced Member

  • Member
  • PipPipPip
  • 461 posts
hmm if I recall its stored in the NTUSER.DAT thats located in your user folder....this also applys to Quick Launch if I recall also....but its been a while since I read the topic so I could be wrong.

#4
Vann

Vann

    Junior

  • Member
  • Pip
  • 89 posts
ntuser.dat is a registry hive that is mounted in HKEY_CURRENT_USER when the user logs on, which means it is stored somewhere in the registry. But where? I've also used regshot and it shows no changes being made to the registry.

#5
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
Auto Arrange is stored in [HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]

Example:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
"FFlags"=dword:00000225

I narrowed it down to the FFlags Value.

I didn't test this with an unattended install. Here's what I did as far as testing:

I checked Auto Arrange, logged off and logged back on. I exported the key. I then turned Auto Arrange back off, logged out and logged back in again. I then killed explorer from Task Manager, launched a command prompt, then imported the reg file. When I launched Explorer, my Icons were arranged and auto arrange was enabled in the context menu. I went through this process three times just to make sure.

I'd recommend postitioning your icons the way you want, log out and log back in to insure those settings are written to the registry. Then export the entire key. During the unattended installation, import it before first logon.
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#6
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
After some more testing, I found out some values to use with FFlags and Sort:

Auto Arrange off, Align to Grid off:
"FFlags"=dword:00000220

Auto Arrange on:
"FFlags"=dword:00000221

Auto Arrange off - align to Grid On:
"FFlags"=dword:00000224

Auto Arange on, Align to Grid on:
"FFlags"=dword:00000225

Hide Desktop Icons:
"FFlags"=dword:00001220

Sort by name:
"Sort"=dword:00000000

Sort by size:
"Sort"=dword:00000001

Sort by type:
"Sort"=dword:00000002

Sort by Modified:
"Sort"=dword:00000003

For example, if you wanted to enable auto arrange and sort by type:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
"FFlags"=dword:00000221
"Sort"=dword:00000002

Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#7
Vann

Vann

    Junior

  • Member
  • Pip
  • 89 posts
I LOVE YOU!

#8
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
Awww, shucks. :)

Like I said, I haven't tested these during an unattended install but I think they will work if you import these settings before the first logon.
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#9
cardguy1000

cardguy1000

    Newbie

  • Member
  • 10 posts
Thanks so much, will be trying on my cd soon :)

#10
SiMoNsAyS

SiMoNsAyS

    C'mon you apes! You wanna live forever!?

  • Patrons
  • 3,455 posts
i have posted 3 times with the same question :rolleyes: good work man thanks :)

#11
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
Thank me if it works for your Unattended CD. :)
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#12
willpantin

willpantin

    Member

  • Member
  • PipPip
  • 155 posts
Somewhat related question...

In my unattended setup, certain customized shortcuts get placed on my Desktop.

However, I would like to arrange some on the left side of the screen, and some on the right... For example, it could be my games on the right side. And, I am not interested in having them displayed in alphabetical order, or any other sorting routine, other than my owm customized placements.

Is there a way to automate the placement of these shortcuts? I tried the method of taking a snapshot of the registry, but it didn't work for me...

Thanks...! :)

#13
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
After arranging your icons like you want them, log off and then log back on, open Regedit and export this key:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]

You'll need to import this before the first logon.
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#14
willpantin

willpantin

    Member

  • Member
  • PipPip
  • 155 posts
jrzycrim,

Very Useful! Thanks for your help!

Can't wait to try it...! :)

#15
mdes

mdes

    Advanced Member

  • Member
  • PipPipPip
  • 343 posts
I'm using Layout.zip from the MS Windows NT 4.0 Resource Kit to save the icons layout in the registry.
Windows XP Pro French + SP2 Many Thanks to GreenMachine XPCREATE
Michel Dessaintes (nick: mdes) FlashList for genealogy, CongésRFV for Pocket PC

#16
prathapml

prathapml

    Follow the rules please :-)

  • Patrons
  • 6,791 posts
  • OS:Windows 8 x64
  • Country: Country Flag

After some more testing, I found out some values to use with FFlags and Sort.......

A very good find indeed!
So, now we know where the **** thing was hiding.
Posted ImageCheers !!!   Donate to MSFN and Help Keep This Site Running
||Please Read the Forum Rules||  Etiquette   || Welcome to MSFN - Forum Basics || Before posting
prathapml :: MSFN Supermod :: Private Message me if you ever have a problem while at MSFN

#17
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
I was hoping to report back with positive results as far as icon positioning goes but alas, due to unrelated problems with my latest unattended CD, I never made it to first logon. *shrug*. Not sure where the problem lies but I suspect the ISO I was testing was corrupted in some way. Didn't get any errors, just hung during the reboot after setup. :)

I sure hope these tweaks work or there are going to be some people p***ed off at me. :rolleyes:
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#18
koden

koden

    Member

  • Member
  • PipPip
  • 284 posts
Just what I need. Thanks...
So if I put this in my regTweaks.reg file

;Auto Arrange off, Align to Grid off:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
"FFlags"=dword:00000220

Then my icons will not align to grid. Am I right?

#19
koden

koden

    Member

  • Member
  • PipPip
  • 284 posts
;Auto Arrange off, Align to Grid off:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]
"FFlags"=dword:00000220

it doesn't work on my pc.

The icons are still align to grid????

#20
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
At the time I hadn't tested these settings. I finally got finished with my latest unattended CD but my desktop icon settings didn't work either. I imported mine from cmdlines text (t-13) but I have a sneaking suspicion that these settings are being overwritten sometime between t-9 and t-2; when Setup is 'Saving settings'.

I've been fooling around with a RunOnce entry in HKLM that imports the icon settings into the registry. A basic test from within windows worked. It seems that the HKLM RunOnce is a good time to 'sneak' these settings in before explorer fully loads. However, it didn't work during first logon of my unattended CD. I'm going to try it during the second logon and see what happens. I've got a couple of other untested approaches to try as well.
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#21
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
Importing my Icon arrangement settings from [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
on the second logon worked in case anyone is interested.

I placed a self-deleting batch file in my startup folder which set a value in RunOnce at first logon. The runonce entry imported my icon.reg at second logon. It just wouldn't work during first logon. *shrug*
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#22
visaversa

visaversa

    Face it...

  • Member
  • PipPipPip
  • 428 posts
Good tip, good work thanks man this saves me 20 minutes per pc. Great...

#23
jrzycrim

jrzycrim

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 769 posts
You might also be interested in this thread:
http://www.msfn.org/...opic=23512&st=0

I've switched to using a customized ntuser.dat file which is much easier when it comes to custom desktop/explorer settings.

I used a different method than what is outlined in that thread however. Once I installed my unattended installation into vmware (or virtual pc), I set all of my icons, taskbar, explorer settings (basically any HKCU settings), and then logged out and back in as a different administrative *user. I then copied the ntuser.dat file in Documents and settings\user name to $OEM$\$Docs\Default User\ for my CD.

* you have to be logged in as another user because windows won't allow you to copy ntuser.dat for the currently logged in user since it is in use.

Windows will use the Default User\NTUSER.DAT for all new accounts so your settings will be in place at first logon.
Jim Roberts

"Knowledge is chimera, for beyond it ever lies other knowledge, and the incompleteness of what is known renders the knowing false."

#24
willpantin

willpantin

    Member

  • Member
  • PipPip
  • 155 posts
jrzycrim,

Your last solution, dated Aug 8, 2004, really rocks...!

I had been trying for ages to get my icons and other settings customized, and had even been using the Files and Settings transfer Wizard to accomplish this, but it wasn't as beautiful and simple a solution as yours.

I am very grateful... Thanks again!
:thumbup

#25
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,760 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Importing my Icon arrangement settings from [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
on the second logon worked in case anyone is interested.

I placed a self-deleting batch file in my startup folder which set a value in RunOnce at first logon. The runonce entry imported my icon.reg at second logon. It just wouldn't work during first logon. *shrug*

Any chance of a sample of your batch & where you placed it to allow the startup to execute for second logon? :thumbup




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN