Skip to content
⌘ NSIS Forum Archive

Changing "Install-dir text"

8 posts

Dizzy007#

Changing "Install-dir text"

NSIS 1.98
=========

Hi All,

is it possible to change the following textsting (found in build.cpp - line 1139)

wsprintf(buf,"Select the directory to install %s in:",build_strlist.get()+build_header.common.name_ptr);

to "whatever i want" without recompiling NSIS ???

See the screen ..

Thanks
Dizzy

🙂
Dizzy007#
Yes - you're right ...

Originally posted by kichik
That's what you have DirText for 😉
Yes - clear ...😕

I thought about a possibility to use this function to select a directory to fill with other files ...

Example :
- search all *.bat files and store it in THIS dir .. and i want to browse my hd for a dir or share ...

Any idea?

🙂

Thanks Dizzy
kichik#
Do you want the DirText to be dyanamic? DirText "bla $0 bla" for example? That's not possible in your version of NSIS.
Dizzy007#
OK - kick my first question away...

I want to have the same funtionality as in the "install section".

I want to have the "browse" function to choose a directory for other actions.

Sorry for the chaos
Dizzy

😎
Dizzy007#
Originally posted by kichik
Then you will have to create an InstallPage with a browse button.
Sorry - i haven't found any command for a "browse"-button 🙁
Can you help me with a pice of code ?? 🙂

Thanks
Dizzy
kichik#
I am sorry, I meant InstallOptions page. You can find some documentation about InstallOptions in Contrib\InstallOptions.