- NSIS Discussion
- NSIS in context menu
Archive: NSIS in context menu
Yathosho
28th December 2009 21:45 UTC
NSIS in context menu
any chance to get the context menu entries to compile scripts working on Windows 7 x64? it's all properly set in the registry, but they don't show up (tried with and without holding shift-key).
the registry on 64bit windows is properly confusing!
pengyou
29th December 2009 18:38 UTC
It works for me on Windows 7 RC 64-bit (see attached screenshot)
Where did you install NSIS?
I did not use "C:\Program Files (x86)\NSIS" because I wanted to avoid UAC problems when using a standard account to compile the NSIS examples.
Yathosho
29th December 2009 18:47 UTC
as it's a 32-bit application, i installed it to Program Files (x86). i was running the RC before, now i'm using the final - didn't work in any of them.
as a workaround i'm now using open with makensisw, that's good enough for now :)
Geoff73
13th January 2010 09:48 UTC
I'm on Windows 7 and associated the .nsi extension to another program. Lost Context Menu ("Compile with...") and can't get it back (uninstall/reinstall NSIS makes no difference). Not a disaster because I have now associated it with 'makensisw.exe' so compile works with double-click, but annoying. Has anyone solved this problem?
anandharaja
22nd January 2010 14:16 UTC
hello
i found the solution u need to delete the registry entry.
"*HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts*" find the .nsi extention there and delete the entry. its work for me
Yathosho
23rd January 2010 12:29 UTC
feeling lazy?
kichik
6th February 2010 16:14 UTC
What's in that key?
Anders
6th February 2010 20:55 UTC
Explorer adds things there on its own (When you use openwith etc)
kichik
6th February 2010 23:46 UTC
Then deleting it affects the user's choice, doesn't it?
Yathosho
12th September 2011 18:22 UTC
microsoft's documentation is anything but good, but i read myself a bit into the issue.
i've attached two registry files and a script that does the same as those files. there are two methods to create the context menu entries, but only one of them (hkcr) works properly in the script (maybe i'm just tired?)
for reason unknown, i could only add menu entries for all files (*) rather than just scripts (.nsi) - all working examples i found on the net were made for all files as well, but i can't imagine why microsoft would want people to that. again, if you can fix this, please do.
other than that, this works nicely!
for reference:
msdn
msdn forums
working example
Afrow UK
13th September 2011 09:51 UTC
Still no idea why it's not working for you. It works fine for me and I even added my own options for my nsL Assembler. Running 7 x64.
Stu
Yathosho
13th September 2011 09:57 UTC
the script above works for me (and i prefer a cascaded menus), just what the nsis installer does isn't working.
Afrow UK
13th September 2011 13:04 UTC
The NSIS installer has always worked for me and I have installed NSIS on 3 separate machines running fresh installs of Windows 7. Is yours a fresh install of SP1?
Stu
Yathosho
13th September 2011 13:24 UTC
Originally posted by Afrow UK
The NSIS installer has always worked for me and I have installed NSIS on 3 separate machines running fresh installs of Windows 7. Is yours a fresh install of SP1?
Stu
as mentioned above, i had this on a fresh windows 7 (pro x64), but i'm sure i installed it again since being on sp1 level. also happened previously when i ran a fresh install of windows 7 rc.
all registry keys are properly written by the nsis installers and i don't have problems with other products (7zip, dropbox, notepad++, runwithparameters etc.) that add themselves to the context menu. it even works for my own installers that add entries in the same fashion as nsis does!
ps: dropbox and 7zip are using cascaded menus (
IContextMenu i presume) and might not count
Anders
13th September 2011 16:53 UTC
I don't know who made http://nsis.sourceforge.net/Windows_...g_Context_Menu but please fix it so that it only binds to .nsi, not to * before posting to the wiki...
Yathosho
13th September 2011 19:55 UTC
Originally posted by Anders
I don't know who made http://nsis.sourceforge.net/Windows_...g_Context_Menu but please fix it so that it only binds to .nsi, not to * before posting to the wiki...
the only working examples i found on the internet (and also the default entries in windows 7) work for *, Directory, DesktopBackground, DeviceDisplayObject and such, not for specific files
the only file-specific example i found did not work on my computer. now i wonder if that's related to my initial problem, so you might want to test the attached script. just make sure to adjust the paths first. also, only use this if you know how to revert the changes afterwards!
since i'm not the only one with this problem, i think it should be resolved. also, you might want to consider using cascaded menus on windows 7 in future versions - once working for a single file type.
Anders
13th September 2011 21:35 UTC
http://forums.winamp.com/attachment....9&d=1315946012
Attachment 49139
Just for .nsi and I did it in HKCU just for fun
Yathosho
13th September 2011 22:58 UTC
can you post your script please or put it on that wikipage?
Anders
13th September 2011 23:19 UTC
Originally posted by Yathosho
can you post your script please or put it on that wikipage?
I don't have a script, I just edited the registry (I have already deleted the keys) I did not do anything special. As long as your .nsi default value is NSIS.Script I don't see why it should not work. Maybe you should try Process Monitor and look at what explorer is looking for to find your problem...
Yathosho
14th September 2011 12:14 UTC
i have no problems with windows 7 32-bit running in a vm, updated the wiki page