|
|||||||
| View Poll Results: What do you wear to work? | |||
| blue jeans, tee shirt, minimal socks/shoes, etc. |
|
3 | 60.00% |
| slacks, white shirt, tie, Florshiems etc. |
|
2 | 40.00% |
| Voters: 5. You may not vote on this poll | |||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Junior Member
|
How do I allow a user to install one portion of a program, let him/her play with the program, and then allow him/her to choose if he/she wants to install another component now or not?
Okay, I love Nullsoft. Ya'll are awesome. Using KiCHiK's example "one-section" I have set up a installer which brings up 10 choices. The user selects one (and only one) of these choices. The installer installs the choice and runs the app (myapp) using ExecWait. The user looks around at the app and uses the choice they made. The user exits myapp upon which the installer asks MB_YESNO "you want to install another now?" On YES, the installer opens another instance of itself and closes the old instance. On NO, the installer QUITs. This works fine for the first or second time, at the third time on NO and CLOSE though AutoWindowClose is TRUE, the installer (which has reached 100% complete and says "COMPLETE") opens myapp which is outside the logical order at this point. On closing, my logic uses MB_YESNO again, I choose NO and number three installer closes. Repeating the same, open myapp out of order and NO to MB_YESNO after exit myapp the remaining two installers close perfectly. Here's the brief (this is not raw code, this is interpreted code)version of KiCHiK's script modified. ComponentText "choose" Sections 0-10 (including required components) .onInit remembers which one is selected .onSelChange turns off the old selection and turns on the new one Function CALLEDBYSECTIONS 1-10 ExecWait myapp onexit MB_YESNO "another?" IDYES goto ShowIT If NO goto STOPIT ShowIT: ExecWait Installer.exe goto STOPIT STOPIT: QUIT FunctionEnd This works once or twice, but definately not on the third one. So, I put MessageBox's at each logical crux so this I couldn't get lost in this simple program. The first time, all MB_OK's show up fine. The second and third times, "NO" MB_OK's show up. What do you guys think? Am I crazy? Is this a bug or am I thinking incorrectly about this? Let me KNOW, share with me your knowledge and experience jacob a working copy of trial is attached, i stripped everything but the essentials (still does the same thing, by the way) |
|
|
|
|
|
#2 |
|
Junior Member
|
Moderator - Please Kill this thread
Moderator,
Please cancel this thread unless you think this forum will be able to answer my question pretty well. I didn't realize that the developers at sourceforge.net/tracker would answer my query as fast as they have. Thanks, jacob |
|
|
|
|
|
#3 |
|
French Canadian
(Alumni) |
threads automatically expire after 30 days if no one posts to them. there's no need to thwack it really... someone might want to answer it also in the meantime.
--aus Aus -- NoisePort.Org, chronicles of the french canadian alien (Temporarly down during the move). |
|
|
|
|
|
#4 |
|
Junior Member
|
Thanks
Thanks,
jmetro |
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
That's what happens when you post at two places...
You can either use the solution I gave you at SourceForge (auto close the window) or you can use the new paging system. What you could do is ask the user weather he wants to install another part of your software, and if he does start backing up in the dialogs using the pre-functions and Abort. When you get to the starting page you stop with the Aborts, and vialloa, you have a new installation. This was actually possible with the old paging system too, just Abort -3 or something....
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#6 |
|
Junior Member
|
AUTOWINDOWCLOSE
I like your solution on SourceForge. It seems to work perfectly now.
thanks so much for your patience. jacob |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|