Go Back   Winamp Forums > Developer Center > NSIS Discussion

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

Reply
Thread Tools Search this Thread Display Modes
Old 1st November 2002, 21:59   #1
Jacob Metro
Junior Member
 
Jacob Metro's Avatar
 
Join Date: Nov 2002
Location: Alabama, United States of America
Posts: 31
Send a message via AIM to Jacob Metro Send a message via Yahoo to Jacob Metro
Smile Trial Installations

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)
Attached Files
File Type: txt choice.txt (5.4 KB, 111 views)
Jacob Metro is offline   Reply With Quote
Old 1st November 2002, 22:58   #2
Jacob Metro
Junior Member
 
Jacob Metro's Avatar
 
Join Date: Nov 2002
Location: Alabama, United States of America
Posts: 31
Send a message via AIM to Jacob Metro Send a message via Yahoo to Jacob Metro
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
Jacob Metro is offline   Reply With Quote
Old 1st November 2002, 23:35   #3
Aus
French Canadian
(Alumni)
 
Aus's Avatar
 
Join Date: Dec 2001
Location: A shiny Igloo.
Posts: 333
Send a message via AIM to Aus
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).
Aus is offline   Reply With Quote
Old 1st November 2002, 23:46   #4
Jacob Metro
Junior Member
 
Jacob Metro's Avatar
 
Join Date: Nov 2002
Location: Alabama, United States of America
Posts: 31
Send a message via AIM to Jacob Metro Send a message via Yahoo to Jacob Metro
Thanks

Thanks,
jmetro
Jacob Metro is offline   Reply With Quote
Old 4th November 2002, 15:02   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
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
kichik is offline   Reply With Quote
Old 4th November 2002, 15:34   #6
Jacob Metro
Junior Member
 
Jacob Metro's Avatar
 
Join Date: Nov 2002
Location: Alabama, United States of America
Posts: 31
Send a message via AIM to Jacob Metro Send a message via Yahoo to Jacob Metro
AUTOWINDOWCLOSE

I like your solution on SourceForge. It seems to work perfectly now.
thanks so much for your patience.
jacob
Jacob Metro is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump