$hf_mig$ folder
#2 OFFLINE
Posted 26 February 2006 - 05:47 PM
CeeCee, on Feb 26 2006, 05:33 AM, said:
Read these threads. They should answer any questions that you have. Post back if you do have more questions. Where did you read that it is not safe to delete that folder?
CCleaner Readme 1
CCleaner Readme 2
CCleaner Readme 3
#3 OFFLINE
Posted 28 February 2006 - 02:36 PM
Here's the Microsoft page - http://support.microsoft.com/kb/824994
and the relevant excerpt -
----------
When a security update, critical update, update, update rollup, driver, or feature pack installs GDR version files, the hotfix files are also copied to the %windir%\$hf_mig$ folder. This supports migration to the appropriate files if you later install a hotfix or service pack that includes earlier versions of these files. For example, consider the following scenario:
1. You apply a security update that installs a GDR version of File.dll with a version number of 5.2.3790.1000 and copies a hotfix version of File.dll with a version number of 5.2.3790.1000 to the %windir%\$hf_mig$ folder.
2. You apply a hotfix that includes a hotfix version of File.dll with a version number of 5.2.3790.0000.
In this scenario the hotfix installation in step 2 installs the hotfix version of File.dll (version number 5.2.3790.1000) from the %windir%\$hf_mig$ folder instead of the hotfix version of File.dll (version number 5.2.3790.0000) from the hotfix package.
----------
By deleting anything in this folder, you can be installing older versions of files if they happen to be packaged with a certain hotfix, possibly un-fixing a bug or security vulnerability.
However, it is safe to delete any folders starting with
%windir%\$xpsp1hfm$\ (only if you have XP SP2 installed)
%windir%\$NtUninstallQ...$\
%windir%\$NtUninstallKB...$\
There are the true "Backups" for the hotifxes.
Here is a safe way to delete Hotfix Backups in the meantime - http://winhlp.com/Wx...llUninstall.htm
Sorry if I sound urgent here, but this can be a serious bug and "break" future hotfix installations.
#4 OFFLINE
Posted 28 February 2006 - 02:58 PM
wraithdu, on Feb 28 2006, 08:36 AM, said:
#5 OFFLINE
Posted 28 February 2006 - 03:05 PM
Read my whole post, the explanation is in there as well as the Microsoft link.
Deleting files out of the $hf_mig$ folder will break future (future being the operative word here) hotfix installations.
I'm not trying to give you a hard time, please understand. I really like this program.
I'm just trying to save people from problems in the future, as this is not the correct way to go about removing hotfix uninstallers.
#6 OFFLINE
Posted 28 February 2006 - 04:06 PM
krit86lr, on Feb 28 2006, 10:58 PM, said:
Not wise to remove the uninstallers. Unless you absolutely need to which I don't think anyone can go to that stage.
There is a possibility you may break any future packs that will come available.
#7 OFFLINE
Posted 28 February 2006 - 04:20 PM
In addition, versions for a higher service pack level (if such versions exist) are also cached so that the software updates can be reapplied when the computer is updated to the next service pack. After the service pack installation, the package installer checks the cache directory at %WINDIR%\$hf_mig$\KB######\ to determine whether there are any software updates to be migrated to the new service pack level. If there are, the package installer installs these software updates from the cache. This method does not use the Xpsp1hfm.exe file that is used in dual-mode packages described previously. Instead, this functionality is built into the package installer itself." (MS Corp)
My understanding is that "%WINDIR%\$hf_mig$\KB######" is the cache folder, not a hotfix uninstaller. CCleaner should not touch this folder.
As for removing the uninstallers...sometimes hotfixes will mess up your computer, and you do need to uninstall them. It is a good idea to test your hotfixes before removing the uninstaller. I'm not clear why removing the uninstaller would break future updates. Microsoft tells you how to remove uninstallers safely.
This is very interesting. Any feedback is appreciated.
#8 OFFLINE
Posted 28 February 2006 - 05:09 PM
I'll have a look into the $hf_mig$ folder specs.
#9 OFFLINE
Posted 28 February 2006 - 05:29 PM
MrG, on Feb 28 2006, 11:09 AM, said:
I'll have a look into the $hf_mig$ folder specs.
Can you please post the Uninstaller folders that CCleaner cleans? CCleaner should not touch the $hf_mig$ folder.
Read Me
Read Me
Read Me
Thank you,
K
MrG, on Feb 28 2006, 11:09 AM, said:
I'll have a look into the $hf_mig$ folder specs.
#10 OFFLINE
Posted 28 February 2006 - 05:36 PM
I noticed this in particular because I have already removed the %windir%\$NTUninstall* folders from my computer (the uninstall folders).
As far as removing the uninstallers (%windir%\$NTUninstall* folders) breaking future updates as GreenWhite mentions, this is not the case.
These folders as safe to delete, as MS says also. It is the $hf_mig$ folder that is in question.
#11 OFFLINE
Posted 28 February 2006 - 05:45 PM
wraithdu, on Feb 28 2006, 11:36 AM, said:
I noticed this in particular because I have already removed the %windir%\$NTUninstall* folders from my computer (the uninstall folders).
As far as removing the uninstallers (%windir%\$NTUninstall* folders) breaking future updates as GreenWhite mentions, this is not the case.
These folders as safe to delete, as MS says also. It is the $hf_mig$ folder that is in question.
@MrG: Get back to us soon please.
#12 OFFLINE
Posted 28 February 2006 - 05:48 PM
Previous to SP2 the folder is called %windir%\$xpsp1hfm$\ I believe.
#13 OFFLINE
Posted 28 February 2006 - 05:48 PM
wraithdu, on Feb 28 2006, 11:36 AM, said:
"...the package installer installs these software updates from the cache."
#14 OFFLINE
Posted 28 February 2006 - 05:50 PM
Yes indeed. I made a mistake.
#15 OFFLINE
Posted 28 February 2006 - 05:56 PM
wraithdu, on Feb 28 2006, 11:48 AM, said:
Previous to SP2 the folder is called %windir%\$xpsp1hfm$\ I believe.
#16 OFFLINE
Posted 28 February 2006 - 10:20 PM
#17 OFFLINE
Posted 01 March 2006 - 03:06 AM
pudelein, on Feb 28 2006, 04:20 PM, said:
#18 OFFLINE
Posted 01 March 2006 - 06:55 AM
pudelein, on Mar 1 2006, 07:20 AM, said:
A good reminder how important backups are!
#19 OFFLINE
Posted 01 March 2006 - 07:02 AM
pwillener, on Mar 1 2006, 12:55 AM, said:
A good reminder how important backups are!
Lets just hope this problem gets resolved quickly!
Save a tree, wipe with an owl.
Every time a bell rings, a thread gets hijacked!
ding, ding!
Give Andavari lots of money and maybe even consider getting K a DVD-RW drive.
If it's not Scottish, IT'S CRAP!!!
#20 OFFLINE
Posted 01 March 2006 - 09:47 AM
"For example, consider the following scenario:
1. You apply a security update that installs a GDR version of File.dll with a version number of 5.2.3790.1000 and copies a hotfix version of File.dll with a version number of 5.2.3790.1000 to the %windir%\$hf_mig$ folder.
2. You apply a hotfix that includes a hotfix version of File.dll with a version number of 5.2.3790.0000.
In this scenario the hotfix installation in step 2 installs the hotfix version of File.dll (version number 5.2.3790.1000) from the %windir%\$hf_mig$ folder instead of the hotfix version of File.dll (version number 5.2.3790.0000) from the hotfix package." (Franklin)
"If I remember correctly $hf_mig$ folder is recreated when any new hotfixes are installed." (Franklin)
"As I understand it, if you install an update, then later install another update that contains an earlier version of a file that's in the previous update, then you need it to migrate the later version of the file instead of installing the earlier version. Why this would ever come up I don't know, but it's Windows, it doesn't have to make sense." (Greenknight)
I don't know how to confirm whether or not that folder gets re-installed with a hotfix. If someone knows how to confirm this, please hit us up.
I'm also interested in whether or not the cache can be rebuilt if the folder does get re-created.
I would like to add one more thing.
Even though this folder may not be as serious as we think, it's still not a hotfix uninstaller folder. Therefore, it shouldn't be cleaned by the hotfix uninstaller option.












