- NSIS Discussion
- Install Options: No OK Button
Archive: Install Options: No OK Button
blckwidow
5th December 2001 02:03 UTC
Install Options: No OK Button
I've been using Install Options quite sucessfully to install the Gnucleus Gnutella client across my campus, but I can't the the Install Options dialogue to show the OK button. If I resize the bottom portion of the window I can finally see the button. I have tried adding a label below the OK position hoping the window would resize, but no luck. I am running Windows XP Professional, but I get the same problem with my roommates Windows 98 computer. Any ideas? I'll attach a screenshot; the part in red is what doesn't show up without resizing. Below is my options.ini.
[Settings]
ParentWnd=0
NumFields=11
DefaultField=2
[Field 1]
Type=Label
text=Chat Nickname: (Max 9 charicters)
left=50
right=240
top=20
bottom=35
[Field 2]
Type=Text
Text=user34785
left=50
right=180
top=35
bottom=55
MinLen=1
MaxLen=9
ValidateText=You must enter a valid nickname.
[Field 3]
Type=Label
text=Alternate Nickname:
left=250
right=350
top=20
bottom=35
[Field 4]
Type=Text
Text=user84354
left=250
right=370
top=35
bottom=55
MinLen=1
MaxLen=9
ValidateText=You must enter a valid alternate nickname.
[Field 5]
Type=Label
text=Download Directory: (Automatically Shared)
left=20
right=300
top=60
bottom=75
[Field 6]
Type=DirRequest
Text=
left=20
right=395
top=75
bottom=95
[Field 7]
Type=Label
text=Shared Directories:
left=20
right=300
top=100
bottom=115
[Field 8]
Type=DirRequest
left=20
right=395
top=115
bottom=135
[Field 9]
Type=DirRequest
left=20
right=395
top=135
bottom=155
[Field 10]
Type=DirRequest
left=20
right=395
top=155
bottom=175
[Field 11]
Type=Label
text=Press ENTER to contunue...
left=20
right=395
top=285
bottom=300
blackwidow
5th December 2001 17:24 UTC
http://www.mattjanssen.net/problem.gif
The part in red won't show unless the window is resized...strange. Anyone else having this problem on WinXP or Win98?
bballer182
6th December 2001 02:18 UTC
nope can't find an OK button, Looks like a good suggestion
blackwidow
6th December 2001 18:08 UTC
oops
Seems I forgot WriteINIStr $TEMP\options.ini Settings ParentWnd $HWNDPARENT.
Maybe I should look a little at my code next time...
F. Heidenreich
6th December 2001 18:25 UTC
:) Fine, because I've tested your script and it works fine on for me ...
~ Florian
locnar42
6th December 2001 23:38 UTC
is this working okay for you now? if you continue to have problems, let me know and I'll work it out for you.
I've tested IO on XP before so it should be working fine.
There is a redraw issue on 98 that I haven't addressed yet, but I should have 98 installed soon and take care of it.
anyway, let me know if you still have troubles with the OK button.
michael
dbareis
8th December 2001 08:25 UTC
Hi,
I'm testing a very small INI from the command line and I have a problem with the OK button as well.
The system icon also appears to be corrupt or chopped up.
The other issue I have is checkboxes etc are not documented, and no samples supplied with the download, it should include at least those used for screen dumps on the homepage and a sample NSI/EXE.
Bye
Dennis
dbareis
8th December 2001 08:26 UTC
Oops, sorry, I forgot to mention I'm using Windows 2000 SP2.
Bye
Dennis
locnar42
8th December 2001 16:01 UTC
could you post the INI file you are using?
thanks,
michael
dbareis
8th December 2001 20:27 UTC
My own INI does it, the one posted above does it, as does:
"Installoptions anything"
Since there is no error checking it still displays the panel with the problem although in my case the top part of the button is visible.
Bye
Dennis
blackwidow
9th December 2001 05:59 UTC
Read the documentation about the HWDPARENT string. You _must_ write to the options.ini before running the program with the HWNDPARENT number or else it won't draw right.
WriteINIStr $TEMP\options.ini Settings ParentWnd $HWNDPARENT
I hope this helps you.
dbareis
9th December 2001 07:07 UTC
Thanks for the info, I might wait for a release with all the feature fixed (even if some are documented).
I haven't got the time to build an installer for every test. I'll wait until I can test from the command line...
I've got plenty of other things that need doing...
Bye
Dennis
blackwidow
9th December 2001 15:36 UTC
.... ok