Archive: Default path setting for second dir


Default path setting for second dir
I'm writing an installer which need to get two directories from the user, one for the program and another for the data files. From the prievious post http://forums.winamp.com/showthread.php?threadid=112788 I have been able to achieve this. :)

However i would like to specify a diffrent default path for the second dialog.

On another note would someone be able to provide a sample script on how to use the GetDlgItem and SendMessage functions to modify the descriptions on the second dialog.

Thanks,

Vytautas


I've figured out the main problem :D , see attached script if you have a similar need, however I could not figure out how to change the header Title & Subtitle texts.
Also if there is a better way of modifying these properties could you let me know.


That's a great example nsi script!
Could you please post it on the NSIS Archive (nsis.sourceforge.net)under Examples.

-Stu


Thanxs Afrow UK. I've now added the script to the examples page of the archive.

Vytautas


To change the header use the MUI_HEADER_TEXT macro in the show function of the page.


Thanxs Joost Verburg, I tried using MUI_HEADER_TEXT macro initially without much success, however I was using it in the pre function of the page, it works a lot better in the right place.

You can find the full script here

I will also attach the modified version here.


Just a note that an updated script file is available at this thread.

It deals with a minor problem with the data directory selection & UNC network paths.

Vytautas