Archive: MUI Directory Page Issue


MUI Directory Page Issue
I am creating an installer using the modern ui and I need to display the Directory page twice, once for the application's install location and again for a data directory location. I cannot figure out how to display the location string in the textbox for the destination directory on the directory page. Any help would be much appreciated.


The following copied from MUI documentation,

http://nsis.sourceforge.net/Docs/Mod...UI/Readme.html

Page settings apply to a single page and should be set before inserting a page macro. You have to repeat the setting if you want it to apply to multiple pages. Example:

;Add a directory page to let the user specify a plug-ins folder
;Store the folder in $PLUGINS_FOLDER

Var PLUGINS_FOLDER
!define MUI_DIRECTORYPAGE_VARIABLE $PLUGINS_FOLDER
!insertmacro MUI_PAGE_DIRECTORY

Note: There is no difference between installer and uninstaller page settings.