Old 30th May 2016, 07:39   #1
shirosakichi
Junior Member
 
Join Date: Apr 2016
Posts: 8
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

Attached Thumbnails
Click image for larger version

Name:	2016-05-30 09_34_46-Instalación de Administrador de Aplicaciones.png
Views:	149
Size:	3.1 KB
ID:	52409  
shirosakichi is offline   Reply With Quote
Old 30th May 2016, 07:55   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 891
InstallDir is the command that sets the default path.

So:
InstallDir "C:\folder\subfolder"
Or:
InstallDir "$PROGRAMFILES\Company Name\Company Product"

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 30th May 2016, 09:37   #3
shirosakichi
Junior Member
 
Join Date: Apr 2016
Posts: 8
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 is offline   Reply With Quote
Old 30th May 2016, 11:43   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,286
Read about InstallDir in the documentation... http://nsis.sourceforge.net/Reference/InstallDir

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 30th May 2016, 12:52   #5
shirosakichi
Junior Member
 
Join Date: Apr 2016
Posts: 8
Well it was my fault I suppose... I had this on the .onInit function

That was interfering with the append function, I guess.
shirosakichi is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump