You are here

PortableFirefox Userprofile change by Portable

6 posts / 0 new
Last post
Mr-Fly
Offline
Last seen: 11 years 2 months ago
Joined: 2006-03-11 08:13
PortableFirefox Userprofile change by Portable

Hi.

It seems kind of risky to change the "Shell Folders" by NSIS, as it is a permanent change up to the next login (as it will then be rebuild out of "User Shell Folders").
Kind of the better way to do might be to make a CreateProcess with the environment changed.

Kind Regards
Thorsten

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
It changes it in-process

It only changes it in-process... in theory that is... there have been a couple PCs (less than 0.1%) that have had it changed for the whole OS until a reboot.

That sad, none of the apps use these by default... you'll note that it is off in Portable Firefox unless you enable it with the INI or add a directory... for just the above-mentioned reason.

Sometimes, the impossible can become possible, if you're awesome!

Mr-Fly
Offline
Last seen: 11 years 2 months ago
Joined: 2006-03-11 08:13
Hi John. I analyzed it a

Hi John.

I analyzed it a little more.
It is actually firefox itself that updates this value.
I did this:
Start PortableFirefox with userprofile on
AppFolder was set to j:\portablefirefox\userprofile
it stayed like this when I started different apps.
after I started my local firefox the original value was back again ?

I will check some more.

Regards
Thorsten

Mr-Fly
Offline
Last seen: 11 years 2 months ago
Joined: 2006-03-11 08:13
Hi John. It is really

Hi John.

It is really firefox itself:
6 9.58265686 firefox.exe:844 CreateKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders SUCCESS Access: 0x2000000
7 9.58268929 firefox.exe:844 QueryValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\AppData SUCCESS "%USERPROFILE%\Application Data"
8 9.58274555 firefox.exe:844 CloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders SUCCESS
9 9.59040833 firefox.exe:844 CreateKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders SUCCESS Access: 0x2000000
10 9.59085178 firefox.exe:844 SetValue HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData SUCCESS "J:\PortableFirefox\userprofile\Application Data"
11 9.59089375 firefox.exe:844 CloseKey HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders SUCCESS

It sets the registry value to the path that has been delivered to it.

Pretty crazy Smile

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 43 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Weird

Now that is just plain WEIRD. But it does explain a bit of the behavior that's been seen in the past. Thanks for checking this out.

Sometimes, the impossible can become possible, if you're awesome!

Mr-Fly
Offline
Last seen: 11 years 2 months ago
Joined: 2006-03-11 08:13
no problem. I am glad I can

no problem.
I am glad I can help Smile
If you have any more to check out, let me know.

Regards
Thorsten

Topic locked