Skip to content
⌘ NSIS Forum Archive

Pass parameters to a certain exe with NSIS

7 posts

Simbonino#

Pass parameters to a certain exe with NSIS

Hi, I would like to create a script to compile with NSIS that works via "open with".

Suppose we have a .txt file, on the txt file I right-click, "open with" and select the executable compiled with NSIS. Subsequently the same executable will transfer the opening of the file to specific software.

Is it possible to insert a string of code that does what I wrote inside an nsi script?

Basically I was planning to create a Launcher to be able to make software portable without relying on third party software similar to PortableApps.com Launcher or WinPenPack's X-Launcher.

Other features I managed to implement but unfortunately "open with" does not work.
Simbonino#
I explain better

EXAMPLE:

1) I have an audio file in .aac format, I click on it with the right mouse button
2) Using "Open with" I select the executable created with NSIS
3) The executable created with NSIS will open the .aac file in a software present in the same folder as the compiled script.

Obviously always if this is theoretically possible.
Simbonino#
Thank you

Thank you very much! I've been looking for a solution for at least a week. 🙄

If I may ask, where do I find the string to enter as a command line?