![]() |
#1 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
Multiple InstallOptions DirRequests
I would like to show three DirRequest options in a row for multiple save locations in a backup location, does anyone know of a way that I can show them?
Thank you in advance!! |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
First of all, InstallOptions has been deprecated, please use nsDialogs instead: http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html
To answer your question, you can just declare three different dirrequests in a row, as far as I know. What exactly goes wrong when you try it? |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
Re: Multiple InstallOptions DirRequests
It shows a single option but I want three in a row, I am using an ini file which works for the first one and not the second, I know I am calling the right location but it shows the first and not the second, both are called in the nsis code.
Thank you for your reply and I will try nsDialogs. |
![]() |
![]() |
![]() |
#4 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Well we can't really help you unless you link to some code. Like, your ini file for example. But yeah, screw ini files, nsDialogs is the way to go.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
Sorry
Sorry I didn't reply but I tried nsDialogs and it is working very well except that it will not accept ReadINIStr at all but it is working perfectly on everything else, any ideas?
|
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
Code
Here is the code I am using (at least trying to!):
code: Comment: I am just trying to get it to read from the INI file and fill the directory path but it will not fill the directory path, it is working with the same "fill" method on the browse buttons so it is probably the "ReadINIStr" part but the NSIS compiler isn't showing any errors and I can't figure out what is going wrong. And the identical ReadINIStr format and code is working perfectly elsewhere. And the top few paragraphs (it is supposed to be a Thunderbird backup program): code: This is just the current state of the code and I am trying everything I can think of. |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
As is obvious I was trying a temporary identifier, ${NSD_GetText} etc.
|
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
These are the INI file contents:
code: |
![]() |
![]() |
![]() |
#9 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
I did say "link" to some code. Please don't paste such a mess...
You can't NSD_SetText etc if the control doesn't exist. First create the controls, then set their properties/text. |
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
Sorry, NSD_SetText is for the browse buttons and is working very well but the rest isn't.
I am attaching the complete code. Thanks again and sorry!! |
![]() |
![]() |
![]() |
#11 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
I already told you, you're trying to SetText before the element is created.
Please follow the tutorial in the nsDialogs readme: http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html |
![]() |
![]() |
![]() |
#12 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
It worked!! Thank you, I don't know if I should create a new topic but now I am having a problem with getting the selected option from a DropList in nsDialogs, the code is below:
code: And further down: code: I am trying to have it set the compression method for 7-Zip, and it is not getting the text before the StrCase part, do you know what the problem is? --LOVENSIS |
![]() |
![]() |
![]() |
#13 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Your order of parameters for GetText is wrong. To avoid confusion, I recommend appending the control variable names with the control type, e.g. DropListZipOptions.
Stu |
![]() |
![]() |
![]() |
#14 |
Junior Member
Join Date: Aug 2011
Posts: 10
|
Still nothing
Thank you, but it didn't help.
Now I am also having a problem with WriteINIStr ![]() Here is the code for that: code: I was trying onChange for that but have tested it and it is writing to the ini file but it won't do it from DirRequestINISave is all of my code bad? Thanks for all of your time! |
![]() |
![]() |
![]() |
|
Tags |
backup, dirrequest, installoptions, nsis |
Thread Tools | Search this Thread |
Display Modes | |
|
|