Archive: Multiple install directories


Multiple install directories
I have a windows application that needs the user to select 2 installation directories, the first for the code, i.e. $PROGRAMFILES\MyApp and the second for the data, i.e. $APPDATA\MyApp\Data

I'm using the modern interface and have included,

!define MUI_DIRECTORYPAGE_VARIABLE $AppInstDir
!insertmacro MUI_PAGE_DIRECTORY
;
!define MUI_DIRECTORYPAGE_VARIABLE $DataInstDir
!insertmacro MUI_PAGE_DIRECTORY

This almost works, however I have noticed 2 things.

Firstly, if the user browses and chooses a different directoy, my product name, e.g. MyApp is no longer appended to the directory.

Secondly, If I browse for the second directory, the browse window does not start in the default directory.


1. just append the directory afterward, you could even make this conditional

2. i wish for my own scripts to have influence on that :(