Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 20th June 2003, 19:52   #1
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
How to run a program at the end of install (not users choice) automatic?

How do you get a program to run at the end of an installation? Not the kind of program where the finish page ask the user "run...".

In other words I have a batch file which is required to run in order to complete some task. It has to run otherwise the project might not work and could offer some trouble.

How do I get it to with or without the users permission?

Thank you for any information on this
vbgunz is offline   Reply With Quote
Old 20th June 2003, 20:21   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Add an extra section at the end with an empty name or a name starting with -.
Joost Verburg is offline   Reply With Quote
Old 20th June 2003, 21:52   #3
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
I am sure it works but I had a little trouble with your suggestion. Instead I took your idea about ExecWait on this thread http://forums.winamp.com/showthread....hreadid=139665 and applied it to a section which is called last during installation.

It so far works so is this wise? Could there be another place which guarentees for it to be called last before the finishpage pops up?

I believe this is cool but would like to know for sure.

Thank you Joost
vbgunz is offline   Reply With Quote
Old 22nd June 2003, 21:14   #4
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Like a said before:
code:
Section bla

;This is your section

Section

Section -post

;Executed before the Finish page

SectionEnd

Joost Verburg is offline   Reply With Quote
Old 23rd June 2003, 00:57   #5
vbgunz
Senior Member
 
Join Date: Jun 2003
Posts: 284
Send a message via AIM to vbgunz
Thank you Joost,

I did create my own section and I placed it as the last section called in the script "right above Function un.onUninstSuccess". It seems to work as requested and it is now my preferred method in launching applications before the install finishes.

I hope this is wise.

Thank you Joost.
vbgunz 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