Archive: NSIS in context menu


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!


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.


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


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?


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


feeling lazy?


What's in that key?


Explorer adds things there on its own (When you use openwith etc)


Then deleting it affects the user's choice, doesn't it?


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


screenshot

http://forums.winamp.com/attachment....1&d=1315859600


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


the script above works for me (and i prefer a cascaded menus), just what the nsis installer does isn't working.


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


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

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


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.

http://forums.winamp.com/attachment....9&d=1315946012

Attachment 49139

Just for .nsi and I did it in HKCU just for fun


can you post your script please or put it on that wikipage?


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

i have no problems with windows 7 32-bit running in a vm, updated the wiki page