Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 21st May 2001, 08:02   #1
petersa
Senior Member
 
petersa's Avatar
 
Join Date: Apr 2001
Location: Melbourne, Australia
Posts: 207
Are the sections run in the order they are placed on the Components list? So, could I have this defined last:

code:
SectionDivider

Section "Run Program when Finished"
SetAutoClose True
Exec "$INSTDIR\PROGRAM.EXE"
SectionEnd



And rest assured that it will be executed last, if chosen?
petersa is offline   Reply With Quote
Old 21st May 2001, 08:29   #2
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

AFAIK the Sections are executed by the order they are written.

cu yzo
yazno is offline   Reply With Quote
Old 21st May 2001, 09:02   #3
petersa
Senior Member
 
petersa's Avatar
 
Join Date: Apr 2001
Location: Melbourne, Australia
Posts: 207
Well, I'll write it in anyway and hope. Thanks yzo!
petersa is offline   Reply With Quote
Old 21st May 2001, 09:10   #4
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

you could do it like this if you are not sure:

Section "Run Program when Finished"
StrCopy §0 '1'
Exec "$INSTDIR\PROGRAM.EXE"
SectionEnd

function .oninstsuccess
strcmp $0 '0' lbl_end lbl_close
lbl_close:
SetAutoClose True
lbl_end:
function end

cu yzo
yazno is offline   Reply With Quote
Old 21st May 2001, 09:22   #5
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

ups forget what i wrote, i forgot that .onInstSucess fires when you click Close, and then you don't need it anymore

cu yzo
yazno 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