Vytautas
20th May 2003 03:17 UTC
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
Vytautas
20th May 2003 07:46 UTC
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.
Afrow UK
20th May 2003 16:38 UTC
That's a great example nsi script!
Could you please post it on the NSIS Archive (nsis.sourceforge.net)under Examples.
-Stu
Vytautas
21st May 2003 00:44 UTC
Thanxs Afrow UK. I've now added the script to the examples page of the archive.
Vytautas
Joost Verburg
21st May 2003 13:59 UTC
To change the header use the MUI_HEADER_TEXT macro in the show function of the page.
Vytautas
21st May 2003 14:23 UTC
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.
Vytautas
23rd May 2003 15:39 UTC
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