Old 15th November 2005, 07:20   #1
flyakite
Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 50
Send a message via AIM to flyakite Send a message via Yahoo to flyakite
MUI_FINISHPAGE_RUN & Reboot Option

Okay I have no idea, but the Search feature has come up with absolutely NOTHING when I search for: MUI_FINISHPAGE_RUN. Even if I search for "MUI_FINISHPAGE_RUN" and *MUI_FINISHPAGE_RUN* it comes up with nothing, and I've been looking through threads that use the exact phrase. Bizarre.

Anyway, I have MUI_FINISHPAGE_RUN set, and set the text etc. However my finish page gives reboot options also.

Is there a way to get the "Reboot Now" and "Reboot Later" options to show AND show the "Run program" checkbox as well?
flyakite is offline   Reply With Quote
Old 16th November 2005, 16:58   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
I think the search engine has a limit on the word limit. Try MUI_FINI* or something similar.

Anyway, as to your question, it doesn't make any sense to show a run program checkbox along with the reboot options. Requiring a reboot usually means the program can't run until the computer is rebooted. And when rebooting, it makes no sense to run the program because it'll either close right away or not even start.

But, if you really want to do this, you can always edit the Finish page INI page in its pre callback function.

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 16th November 2005, 17:01   #3
flyakite
Member
 
Join Date: Dec 2003
Location: Chicago
Posts: 50
Send a message via AIM to flyakite Send a message via Yahoo to flyakite
I understand the logic behind that, however you might want to schedule a program that runs on startup all the time.

So the checkbox could say "Run program at startup", and the MUI_FINISHPAGE_RUN_FUNTION or whatever could set the Registry RunOnce variable so that the program runs on next startup.

I just think the checkbox would be a much cleaner option than having a message box come up asking the user. Plus there is plenty of room on the reboot page, under both options to have the checkbox there.

I'll take a look at editing the finish page ini though. Thanks.
flyakite is offline   Reply With Quote
Old 16th November 2005, 17:06   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You can have another InstallOptions page that'll present that question with more information on it, or simply another section to show on the components page.

Persoanlly, I don't think the finish page will look good and simple with both a check box and a radio button set. But that's just me.

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
Reply
Go Back   Winamp & Shoutcast 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