Archive: File type icon and application associations not updating on Windows 7 64 bit install


File type icon and application associations not updating on Windows 7 64 bit install
I am working on a NSIS installer that edits the registry for a couple file types to change their icons and the application that runs them.

After the registry edits are complete I use the SHChangeNotify system call to force the shell to update with the new settings.

; Tell the shell to reset its icon cache
System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v \
(0x08000000, 0, 0, 0)'

On WinXP 32bit and 64bit systems, this is working fine. It also works fine on a Windows 7 32bit box. However, on a Win7 64 bit box, the file type that is already in the registry is not updating to the new values I set for it. The file type that isn't already in the registry has the proper icon and app association applied to it without issue. Its the type with already existing registry settings that is not updating.

This seems more like an operating system issue than in NSIS but perhaps someone here has encountered this issue.

Does anyone have any ideas on this that will update the settings and not require any kind of system restart or killing and restarting explorer, which I want to avoid?


Thanks for any assistance.

Greg


Is the installer running as an administrator (i.e. try Run as administrator)?

Stu


Originally posted by Afrow UK
Is the installer running as an administrator (i.e. try Run as administrator)?

Stu
Running as Administrator did not resolve the issue.

I'm facing the same issue. I'm using File Association in:
http://nsis.sourceforge.net/File_Association

is there any updates to be done for win7 64 bit


Not that this should have any effect on HKCR but make sure you have SetRegView 64.

Stu


many thanks. i was missing SetRegView 64.