Maxim30
2nd October 2005 15:59 UTC
Directory Page Start Folder Branch
In the directory page, when choosing the installation folder by the 'Browse' button, the complete folders branch is shown (i.e. with Desktop and MyDocuments directories too); I would start the choice from the 'Program Files' folder, so to show the 'Program Files' directories branch: how to set it ?
kichik
3rd October 2005 12:25 UTC
You can do that with a custom page using InstallOptions. Use the Root key to set the root for a DirRequest item.
Maxim30
3rd October 2005 22:45 UTC
Can you write the page code example ?
kichik
3rd October 2005 22:50 UTC
It's just a DirRequest item with a Root key. You can add Root to Field 6 in Examples\InstallOptions\test.ini and compile Examples\InstallOptions\test.nsi for an example.
Maxim30
5th October 2005 00:38 UTC
Ok
Maxim30
6th October 2005 22:54 UTC
Hi, I am here again to say that after setting the root item direcrory, the browse button shows only that directory branch not giving the choise to select also other folders. Is there the possibility to show the entire folders tree then starting from the root specified ?
deguix
7th October 2005 02:54 UTC
Use the "State" key and put the desired directory you want it to select.
Maxim30
8th October 2005 22:27 UTC
When specifying in the 'state' key a folder as [drive]\[mainFolder]\[subFolder] with mainFolder existing and subFolder not, then the directory branch starts from 'MyDocuments' folder (not as I would); when subFolder is existing then the directory branch starts from [drive]\[mainFolder]\[subFolder] (as i would): how to start the directory branch from the folder [drive]\[mainFolder] when the subFolder is new (not existing) ?