Skip to content
⌘ NSIS Forum Archive

How to change the text that the DireText command controls on run time

2 posts

Aricc#

How to change the text that the DireText command controls on run time

How to change the text that the DireText command controls on run time.
Thx.
aricc
Red Wine#
outfile 'DirText.exe'
InstallDir '$PROGRAMFILES\DirText'

var DirText
var DirSubTxt
var DirBrowse
var DirBrowseDlg

DirText $DirText $DirSubTxt $DirBrowse $DirBrowseDlg

page directory 'dir_pre'
page instfiles

Section ""
SetOutPath '$INSTDIR'
SectionEnd

Function dir_pre
strcpy $DirText 'text'
strcpy $DirSubTxt 'subtext'
strcpy $DirBrowse 'browse_button_text'
strcpy $DirBrowseDlg 'browse_dlg_text'
FunctionEnd