3

I associated .nsi files with a text editor recently, and as a result lost all of the special NSIS context menu options for, eg., "Compile NSIS Script". How can I get them back?

ladenedge
  • 496
  • 2
  • 6
  • 16

2 Answers2

5

Thanks to a post on the NSIS forums, I learned that when you associate a file extension manually, Explorer creates a registry key that overrides the system settings for that extension. In the case of NSIS files, this key is:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.nsi

If you delete that key, you will lose your text editor association but regain the context menu items after restarting Explorer.

ladenedge
  • 496
  • 2
  • 6
  • 16
  • Ending all explorer.exe processes and starting it again did not do it for me. Had to restart the whole Windows. – bugybunny Oct 23 '19 at 12:56
1

there's also a script for that

idleberg
  • 1,342
  • 1
  • 11
  • 17