Jump to content

$hf_mig$ folder


CeeCee

Recommended Posts

i accidentally delete windows $hf_mig$ folder (hotfix uninstallers) with CCleaner and now i read that it is not safe to delete that folder? is that so? :o i have windows XP SP2.

 

Hi CeeCee,

 

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

 

:)

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

CeeCee is right. DO NOT DELETE the folder $hf_mig$ or anything in it. This is a serious mistake in CCleaner (which is otherwise an awesome program that I use, expect for the Hotfix Cleaner).

 

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/WxServicePackUninstallUninstall.htm

 

Sorry if I sound urgent here, but this can be a serious bug and "break" future hotfix installations.

Link to comment
Share on other sites

This is a serious mistake in CCleaner (which is otherwise an awesome program that I use, expect for the Hotfix Cleaner).

 

CCleaner cleans the hotfix "uninstallers". If you don't want to uninstall your hotfixes then you don't need the uninstallers.

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

That's my point. The files in the $hf_mig$ folder are not the uninstallers. Windows uses them for more than that - as a file version comparison when installing newly released hotfixes. The uninstall files are in the %windir%\$NTUninstall* folders.

 

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.

Link to comment
Share on other sites

CCleaner cleans the hotfix "uninstallers". If you don't want to uninstall your hotfixes then you don't need the uninstallers.

 

 

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.

Link to comment
Share on other sites

"If the version installed is from the branch with fewer cumulative changes (in this example, it would be the GDR branch), the package installer caches the more cumulative versions (in this example, the QFE version) in %WINDIR%\$hf_mig$\KB######\. If a hotfix for one of those files is installed later, the package installer will ?migrate? the previously updated files to the QFE versions in order to maintain consistency.

 

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

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

Some interesting points...

I'll have a look into the $hf_mig$ folder specs.

:)

 

I was just getting ready to PM you. :)

 

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

 

Some interesting points...

I'll have a look into the $hf_mig$ folder specs.

:)

 

Does the CCleaner option "Hotfix Uninstallers" clean the $hf_mig$ folder?

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

I suppose I should have mentioned it in the first post, but when I hit the Analyze button to see what CCleaner will delete, it lists all the KB###### folders inside my $hf_mig$ folder. As we mentioned, it should not touch these.

 

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.

Link to comment
Share on other sites

I suppose I should have mentioned it in the first post, but when I hit the Analyze button to see what CCleaner will delete, it lists all the KB###### folders inside my $hf_mig$ folder. As we mentioned, it should not touch these.

 

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.

 

Nice catch! I just ran a search on my computer, and I don't have the $hf_mig$ folder - hmmmm.

 

@MrG: Get back to us soon please. ;)

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

It is the $hf_mig$ folder that is in question.

 

Yes, most definitely. Especially since the $hf_mig$ folder isn't an uninstaller, but the cache folder.

 

"...the package installer installs these software updates from the cache."

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

What OS are you running? The $hf_mig$ folder is specific to WinXP SP2 and Windows Server 2003.

 

Previous to SP2 the folder is called %windir%\$xpsp1hfm$\ I believe.

 

I'm running WinXP Pro SP2. That folder isn't anywhere on my computer. I'm going to fix that later on today.

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

Thanks to everyone in this thread for the heads-up about the $hf_mig$ folder! Like at least two or three have mentioned, I found this folder missing, but luckily had a backup dating from before the most recent update of CCleaner and could recover it as of early February. Only the most recent set of patches is missing.

Link to comment
Share on other sites

  • Moderators

I found this folder missing, but luckily had a backup dating from before the most recent update of CCleaner and could recover it as of early February.

 

Thanks for that info. I was wondering what type of crap I was going to have to go through to restore that folder, until I read your post and remembered that I too have a backup that I saved using Microsoft Backup.

Link to comment
Share on other sites

Thanks to everyone in this thread for the heads-up about the $hf_mig$ folder! Like at least two or three have mentioned, I found this folder missing, but luckily had a backup dating from before the most recent update of CCleaner and could recover it as of early February. Only the most recent set of patches is missing.

 

You can easily reinstall these missing patches manually, then your $hf_mig$ folder will contain all.

 

A good reminder how important backups are!

Link to comment
Share on other sites

You can easily reinstall these missing patches manually, then your $hf_mig$ folder will contain all.

 

A good reminder how important backups are!

 

I wouldn't say easily; downloading 50 or so patches and a 200+ MB Service Pack and installing all of them is at least a 4 hour process for most users, maybe more.

 

Lets just hope this problem gets resolved quickly!

Save a tree, eat a beaver.

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

Link to comment
Share on other sites

Some people intentionally remove that folder. (From another forum)

"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. :P

 

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.

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

@MrG: What happened to you? Can we get an update, please? Many Thanks. :)

Windows Pro Media 8.1 x64  |  8GB Ram  |  500G HDD 7200 RPM  |  All  that I know about my graphics is that it's Intel  :)

Link to comment
Share on other sites

Having looked at the issue I agree that the $hf_mig$ folder should not be removed with the hotfix uninstallers, so I've adjusted the code for the next release. :)

 

Great work!

 

 

Thanks for acknowledging this error MrG, but how about an instant update to the program rather than let many users continue with the faulty program. It would also help considerably, to those of us that have lost this folder, if you were able/ or prepared to come up with a solution to restoring the lost information

Win 7 Home Premium 64 bit - IE11 - Nod32 - Mbam pro

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.