You are here

NSH Files

4 posts / 0 new
Last post
PortableGood
Offline
Last seen: 10 months 17 hours ago
Joined: 2014-10-06 11:51
NSH Files

I noticed that every PortableApps applications seems to have at least 1 '.nsh' file in its folder.

I'm just curious:

1. What does "nsh" stand for?
2. What generates these files?
3. What is their purpose?

Thanks.

PortableGood
Offline
Last seen: 10 months 17 hours ago
Joined: 2014-10-06 11:51
Also NSI files

I noticed some PortableApps application folders also have '.nsi' files. I am interested in learning the answers to the above 3 questions for them as well.

Bart.S
Offline
Last seen: 6 months 5 hours ago
Developer
Joined: 2008-07-23 07:56
NSIS

1. .nsi and .nsh are NSIS file endings. (See here)
2. Developers create these files
3. depends on the code within

PortableGood
Offline
Last seen: 10 months 17 hours ago
Joined: 2014-10-06 11:51
Thank you for the tips.

Thank you for the tips.

Using them as a lead, I was able to find all the answers:

The default extension for a script file is .nsi. Header files have the .nsh extension. Header files can help you arrange your script by dividing it to more than one block of code, you can also put functions or macros in header files and include the header files in multiple installers. This makes updating easier and it also makes your scripts easier to read. To include a header file in your script use !include. Header files that reside in the Include directory under your NSIS directory can be included just by their name. For example:

!include Sections.nsh

A NSIS script contains Installer Attributes, Pages and Sections/Functions.

Source:
https://nsis.sourceforge.io/Docs/Chapter2.html

Log in or register to post comments