Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language NSIS

Date:04/20/05
Author:Mike Gogulski
URL:n/a
Comments:0
Info:http://nsis.sourceforge.net/site/index.php
Score: (2.37 in 19 votes)
; 99 bottles of beer for the Nullsoft Scriptable Install System (NSIS)
; By Mike Gogulski <mike@gogulski.com>
; See http://nsis.sourceforge.net/site/index.php 
;
; Save as "99Bottles.nsi", compile, execute, follow prompts

Name "99 Bottles of Beer"
OutFile "99Bottles.exe"

Page instfiles

Section "99 Bottles of Beer"
	StrCpy $R0 99
	loop:
		DetailPrint "$R0 bottles of beer on the wall,"
		DetailPrint "$R0 bottles of beer!"
		DetailPrint "Take one down, pass it around,"
		IntOp $R0 $R0 - 1
		IntCmp $R0 0 done
		DetailPrint "$R0 bottles of beer on the wall!"
	Goto loop
done:

	DetailPrint "No more bottles of beer on the wall!"

SectionEnd

Function .onGUIInit
	StrCpy $R9 "I'm going to sing the wonderful 99 bottles of beer
song!$\r$\n"
	StrCpy $R9 "$R9Press OK to start, then press 'Details' to see
the lyrics."
	MessageBox MB_OK $R9
FunctionEnd

Download Source | Write Comment

Alternative Versions

Comments

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: