Jump to content

Small problem with moving desktop ..


Recommended Posts

Posted

Hi Benjamin,

sorry for yet another problem I just found out today regarding moving the Windows Desktop location when creating a new user in Wihu. It does work, and Wihu creates a new folder at the proper location. The problem however is that the content of the default folder "Desktop" inside the userprofile does not get copied to the new location. I think Wihu should check if that folder contains data and copy it to the newly created folder or to the folder existing at the new location.

I have a few lnk files etc inside the "Default User\Desktop" directory that I want to be placed on every desktop but those files don´t appear on the desktop if the desktop is moved.

One other thing ...

I just found out today that some people who I gave my unattended DVD put their systemfolders into the strangest places. Folders like Font location, local settings, startmenu etc etc ...

As a suggestion ... could you maybe add a switch to install.ini to make it possible to prevent users from seeing (and possible changing) systemfolders that I don´t want them to see/change ? I think it´s ok if they change the music, video, picture, favorites and personal folders, maybe even the desktop ... but all the other folders should be invisible to the user if I set it so ...

Something like a whitelist or blacklist .. whatever you prefer ...

Thanks !

Alex

I think users should be able


Posted (edited)

Desktop Problem: Really strange, shouldn't be. All files and directories from "Default User" profile will be copied here. Which directories or files else are not copied? How does the permission rights for this file(s) look like?

could you maybe add a switch to install.ini to make it possible to prevent users from seeing (and possible changing)

I added a new [settings] keyword.

ShellFolderModify.Disallow

; Formula: ShellFolderModify.Disallow = SUM(PowerOf2(Index)) = SUM(2^Index) = 2^Index1 + 2^Index2 ...

;

; Index 0: "%USERPROFILE%\\My Documents\\My Music"

; Index 1: "%USERPROFILE%\\My Documents\\My Pictures"

; Index 2: "%USERPROFILE%\\My Documents\\My Videos"

; ... "%USERPROFILE%\\My Documents"

; "%USERPROFILE%\\Start Menu\\Programs\\Administrative Tools"

; "%USERPROFILE%\\Local Settings\\Temporary Internet Files"

; "%USERPROFILE%\\Local Settings\\Application Data\\Microsoft\\CD Burning"

; "%USERPROFILE%\\Cookies"

; "%USERPROFILE%\\Desktop"

; "%USERPROFILE%\\Favorites"

; "%SystemRoot%\\Fonts"

; "%USERPROFILE%\\Local Settings\\History"

; "%USERPROFILE%\\Local Settings\\Application Data"

; "%USERPROFILE%\\Local Settings"

; "%USERPROFILE%\\NetHood"

; "%USERPROFILE%\\PrintHood"

; "%USERPROFILE%\\Start Menu\\Programs"

; "%USERPROFILE%\\Recent"

; "%USERPROFILE%\\SendTo"

; "%USERPROFILE%\\Start Menu"

; "%USERPROFILE%\\Start Menu\\Programs\\StartUp"

; "%USERPROFILE%\\Templates"

; To disallow only changes of "My Music" and "My Pictures" for instance,

; Index 0 and 1 have to be combined

; ShellFolderModify.Disallow = 2^0 + 2^1 = 3

Benjamin Kalytta

Edited by BenjaminKalytta
Posted

Hi Benjamin,

thanks for your quick reply ! :thumbup

1. The desktop moving thing:

If I set the desktop to be on a different location as the default, Wihu will create an EMPTY folder named Desktop there. However, in the profile directory of the user, there will be another Desktop directory and THIS ONE will have all the files in it that were in the "Default User\Desktop" directory.

So, Wihu copies the Default directory but not to the new location!

2. The Index thing ...

Thanks for creating this. However, I am at a loss here right now ... "Power of 2" means "hoch 2" in german, right ? Figured that one out by myself :w00t:

However, in your example ...

; Index 1 and 2 have to be combined
; ShellFolderModifyFlags = 2^1 + 2^2 = 3
; ShellFolderModifyFlags = 3

2^2 = 4 right ? So how can 2^1 + 2^2 be 3 then ?

Anyway, I tried this with my own example:

I added this to the [settings] :

Index 1: "%USERPROFILE%\\My Documents\\My Music"
Index 2: "%USERPROFILE%\\My Documents\\My Pictures"
Index 3: "%USERPROFILE%\\My Documents\\My Videos"
Index 4: "%USERPROFILE%\\My Documents"
Index 5: "%USERPROFILE%\\Favorites"
Index 6: "%USERPROFILE%\\Desktop"

ShellFolderModifyFlags =91

But it is not working. I can change the Administrative tools but not the video folder.

Anyway,

as a bonus ... would you be able to completely get rid of the "not changable " folders from the contact list instead of just making them uneditible ? This would make the list much more transparent and easier for the user ?

Thanks !

Bye,

Alex

Posted

Ok,

I then thought, maybe the index number is not random but fixed so I tried with this list:

Index 1: "%USERPROFILE%\\My Documents\\My Music"
Index 2: "%USERPROFILE%\\My Documents\\My Pictures"
Index 3: "%USERPROFILE%\\My Documents\\My Videos"
Index 4: "%USERPROFILE%\\My Documents"
Index 9: "%USERPROFILE%\\Desktop"
Index 10: "%USERPROFILE%\\Favorites"

ShellFolderModifyFlags =211

But still, it is not working. I can change administrative tools but not the video folder. Mhh .. I hope I am not doing something wrong ...

Bye,

Alex

Posted (edited)

Sorry for my stupidness. Each indizes are 0 based.

However, I renamed the keyword and added a new one:

ShellFolderModify.Disallow = <value>
ShellFolderModify.Hide = <value>

To disallow following folders, you should do:

Index 0: "%USERPROFILE%\\My Documents\\My Music"

Index 1: "%USERPROFILE%\\My Documents\\My Pictures"

Index 2: "%USERPROFILE%\\My Documents\\My Videos"

Index 3: "%USERPROFILE%\\My Documents"

Index 8: "%USERPROFILE%\\Desktop"

Index 9: "%USERPROFILE%\\Favorites"

ShellFolderModify.Disallow = 2^0 + 2^1 + 2^2 + 2 ^3 + 2^8 + 2^9 = 783

ShellFolderModify.Hide = 1 will hide "My Music" folder from within UI

Benjamin Kalytta

Edited by BenjaminKalytta
Posted
If I set the desktop to be on a different location as the default, Wihu will create an EMPTY folder named Desktop there. However, in the profile directory of the user, there will be another Desktop directory and THIS ONE will have all the files in it that were in the "Default User\Desktop" directory.

Hmm, Im a bit confused now.

"Default User" Profile Desktop is always in %USERPROFILE%\Default User\Desktop, isn't it? How can you change this default location?

Or did you change the "Default User" profile directly? If yes, then I should read "Default User" profile shell folders and also copy them.

Benjamin Kalytta

Posted

Hi Benjamin,

I will try the new index thing shortly and let you know if it works ...

Hmm, Im a bit confused now.

"Default User" Profile Desktop is always in %USERPROFILE%\Default User\Desktop, isn't it? How can you change this default location?

Or did you change the "Default User" profile directly? If yes, then I should read "Default User" profile shell folders and also copy them.

No, I did not move the Default Profile. It is still at the default location at C:\Dokumente und Einstellungen\Default User. The Desktop folder is inside that. That is not the problem.

The problem is: if I change the location of a users desktop from within Wihu from the default location %PROFILE%\Desktop to lets say, D:\%ThisUser%\Desktop, then Wihu will create an empty folder named Desktop inside D:\%ThisUser%\ AND a folder named Desktop at the default location for this user: D:\Dokumente und Einstellungen\%ThisUser%\Desktop.

Everything that was in the Default User\Desktop directory will be copied to this folder: D:\Dokumente und Einstellungen\%ThisUser%\Desktop

but it should be copied to this folder: D:\%ThisUser%\Desktop

Everything clear now ? :)

I am not sure how this works for all the other folders you can change in Wihu. Maybe this "bug" (if it is one) does not only happen with the Desktop folder but also with other folders you can change in Wihu

BYe,

Alex

Posted

Hi Benjamin,

I still don´t get it or it still does not work ...

According to your explanation the following should disable and hide all the folder except Pictures, Video, Music, Personal, Favorites and Desktop, right ?

Index 4: "%USERPROFILE%\\Start Menu\\Programs\\Administrative Tools"
Index 5: "%USERPROFILE%\\Local Settings\\Temporary Internet Files"
Index 6: "%USERPROFILE%\\Local Settings\\Application Data\\Microsoft\\CD Burning"
Index 7: "%USERPROFILE%\\Cookies"
Index 10: "%SystemRoot%\\Fonts"
Index 11: "%USERPROFILE%\\Local Settings\\History"
Index 12: "%USERPROFILE%\\Local Settings\\Application Data"
Index 13: "%USERPROFILE%\\Local Settings"
Index 14: "%USERPROFILE%\\NetHood"
Index 15: "%USERPROFILE%\\PrintHood"
Index 16: "%USERPROFILE%\\Start Menu\\Programs"
Index 17: "%USERPROFILE%\\Recent"
Index 18: "%USERPROFILE%\\SendTo"
Index 19: "%USERPROFILE%\\Start Menu"
Index 20: "%USERPROFILE%\\Start Menu\\Programs\\StartUp"
Index 21: "%USERPROFILE%\\Templates"

ShellFolderModify.Disallow =3152

ShellFolderModify.Hide = 4
ShellFolderModify.Hide = 5
ShellFolderModify.Hide = 6
ShellFolderModify.Hide = 7
ShellFolderModify.Hide = 10
ShellFolderModify.Hide = 11
ShellFolderModify.Hide = 12
ShellFolderModify.Hide = 13
ShellFolderModify.Hide = 14
ShellFolderModify.Hide = 15
ShellFolderModify.Hide = 16
ShellFolderModify.Hide = 17
ShellFolderModify.Hide = 18
ShellFolderModify.Hide = 19
ShellFolderModify.Hide = 20
ShellFolderModify.Hide = 21

But it does not work. Not only are all the folders visible but I can also change some of them.

:whistle:

But maybe it´s me who is too dumb here ... I also tried this:

ShellFolderModify.Hide = 3152

or this

ShellFolderModify.Hide = 4 , 5 , 6, 7 etc ...

but nothing worked ....

Sorry,

Bye,

Alex

Posted

No no, your value is wrong.

Correct value would be ShellFolderModify.Disallow = 4193520

and also ShellFolderModify.Hide = 4193520

Some hints:

Just use the Windows calculator, set BIN mode, and enter 1 for each Disallowed folder and 0 for allowed folder.

In your case you would enter 1111111111110011110000, then set back to DEC Mode and you'll get the number.

To set allowed folders just enter a 1 for each allowed folder and then negate the value by pressing NOT button.

Benjamin

Posted

Hi Benjamin,

I am sorry I still don´t understand, on the contrary I have no idea what you are doing here. Maybe I should study some math ? :rolleyes:

No, so those are binary values now ? Why did you write about taking the power of 2 of each index then ? I am very confused. I though I should do this:

4 ^ 2 (=16) +

5 ^ 2 (=25) +

etc.

now, you are saying that I simply add a few ones and zero´s in binary mode ?

Also, if I do the latter, does it matter where I put the zero´s and one´s ? Because this:

1111111111110011110000

does not seem to resemble this:

Index 4: "%USERPROFILE%\\Start Menu\\Programs\\Administrative Tools"
Index 5: "%USERPROFILE%\\Local Settings\\Temporary Internet Files"
Index 6: "%USERPROFILE%\\Local Settings\\Application Data\\Microsoft\\CD Burning"
Index 7: "%USERPROFILE%\\Cookies"
Index 10: "%SystemRoot%\\Fonts"
Index 11: "%USERPROFILE%\\Local Settings\\History"
Index 12: "%USERPROFILE%\\Local Settings\\Application Data"
Index 13: "%USERPROFILE%\\Local Settings"
Index 14: "%USERPROFILE%\\NetHood"
Index 15: "%USERPROFILE%\\PrintHood"
Index 16: "%USERPROFILE%\\Start Menu\\Programs"
Index 17: "%USERPROFILE%\\Recent"
Index 18: "%USERPROFILE%\\SendTo"
Index 19: "%USERPROFILE%\\Start Menu"
Index 20: "%USERPROFILE%\\Start Menu\\Programs\\StartUp"
Index 21: "%USERPROFILE%\\Templates"

?

So I have no idea how you came to that number you gave me, even though it does work ... :whistle:

One can clearly see that I never liked math at school :rolleyes:

Sorry for being slow ...

As for the desktop moving thing ... any news ?

Thanks,

Alex

Posted

Oh ....

Also, if I do the latter, does it matter where I put the zero´s and one´s ? Because this:

CODE

1111111111110011110000

does not seem to resemble this:

CODE

Index 4: "%USERPROFILE%\\Start Menu\\Programs\\Administrative Tools"

Index 5: "%USERPROFILE%\\Local Settings\\Temporary Internet Files"

Index 6: "%USERPROFILE%\\Local Settings\\Application Data\\Microsoft\\CD Burning"

Index 7: "%USERPROFILE%\\Cookies"

Index 10: "%SystemRoot%\\Fonts"

Index 11: "%USERPROFILE%\\Local Settings\\History"

Index 12: "%USERPROFILE%\\Local Settings\\Application Data"

Index 13: "%USERPROFILE%\\Local Settings"

Index 14: "%USERPROFILE%\\NetHood"

Index 15: "%USERPROFILE%\\PrintHood"

Index 16: "%USERPROFILE%\\Start Menu\\Programs"

Index 17: "%USERPROFILE%\\Recent"

Index 18: "%USERPROFILE%\\SendTo"

Index 19: "%USERPROFILE%\\Start Menu"

Index 20: "%USERPROFILE%\\Start Menu\\Programs\\StartUp"

Index 21: "%USERPROFILE%\\Templates"

it is the line but starting with Index 21, not with Index 0.

Ok, I know how to do this now, but I have no idea why. But that is not your problem :D

Thanks,

Alex

Posted

Well, I don´t have to understand that, right ? :lol:

Little Endian Mode ... reminds me of a movie I once saw about a little Indian :rolleyes:

Anyway ...

do you know what´s wrong with the Desktop moving feature ?

Thanks,

Alex

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...