Old 13th October 2001, 15:07   #1
mruno
Junior Member
 
Join Date: Oct 2001
Posts: 3
Send a message via AIM to mruno
suggestion and question

Fisrt of all I want to say NSIS is the best installer system out there. I've been using it since v1.0h.

When I specify the installdir, c:\ircN, and the user browses to their ircN directory, c:\stuff\ircN, the installer then points to c:\stuff\ircN\ircN. How can I change it from doing that?

As for the suggestion can you add the ability to change the install button's text?

Thanks in advance,
-mruno
mruno is offline   Reply With Quote
Old 13th October 2001, 15:25   #2
DuaneJeffers
Major Dude
 
DuaneJeffers's Avatar
 
Join Date: May 2001
Location: Winter Park, FL
Posts: 1,776
Well, don't create a new folder. In the user specified installdir, use C:\ircN, but don't create a new folder. Then just use the $INSTDIR function when in the section.

-Duane

Website

Yeah, that's pretty much it. :-\
DuaneJeffers is offline   Reply With Quote
Old 14th October 2001, 04:25   #3
Pomflain
Member
 
Pomflain's Avatar
 
Join Date: Aug 2001
Posts: 83
Hmm...

I think it sounds like you just want to change the directory to something else, perhaps to install files? If that's the case then you can do the following:

SetOutPath "$INSTDIR\Images" ;Creates a directory under whatever the user specified called "Images"

Then you can install files there just like normal.

Does that help at all?
Pomflain is offline   Reply With Quote
Old 14th October 2001, 15:56   #4
mruno
Junior Member
 
Join Date: Oct 2001
Posts: 3
Send a message via AIM to mruno
Arrow

I want it not to add the 'ircN' directory when a user points to their ircN directory, but I do want to have c:\ircN specified as the installdir since that is the default path for ircN. If you still don't understand then make an installer with c:\ircN as the installdir and choose browse and select another directory like c:\program files\. It makes the path c:\program files\ircN which I do not want it to add the installdir as a new folder. Maybe make a default install dir variable so it won't try to make a new dir?
bleh now I've confused myself
mruno is offline   Reply With Quote
Old 15th October 2001, 17:45   #5
justin
Moderator Alumni
 
Join Date: Apr 2000
Location: USA
Posts: 315
There is an easy solution:

instead of doing:
code:

InstallDir "C:\ircN"


do:
code:

InstallDir "C:\ircN\"



The trailing slash tells the installer not to stick anything on the end!

Enjoy,

Justin
justin is offline   Reply With Quote
Old 16th October 2001, 02:29   #6
mruno
Junior Member
 
Join Date: Oct 2001
Posts: 3
Send a message via AIM to mruno
Smile

thanx justin!
mruno 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