Skip to content
⌘ NSIS Forum Archive

Add folder to path

5 posts

shirosakichi#

Add folder to path

Hi there, first of all I apologize for my bad english. Well, I want my installer to add a folder to the path(i.e. C:\folderselected\folderaddbyinstaller). I'm newbie to NSIS and don't have experience programming

JasonFriday13#
InstallDir is the command that sets the default path.

So:
InstallDir "C:\folder\subfolder"
Or:
InstallDir "$PROGRAMFILES\Company Name\Company Product"
shirosakichi#
Yeah but what i want is to add a subfolder to the path. For example:
i have "C:\Company\product" by default, if i change that path via "browse..." to "C:\somthing" the installer adds by itself subfolder "product".
shirosakichi#
Well it was my fault I suppose... I had this on the .onInit function

That was interfering with the append function, I guess.