updated format, small changes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2282 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
39a9897cd8
commit
92acc0dd32
8 changed files with 394 additions and 233 deletions
|
@ -1,3 +1,10 @@
|
|||
; primes.nsi
|
||||
;
|
||||
; This is an example of the possibities of the NSIS Script language.
|
||||
; It calculates prime numbers.
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Name "primes"
|
||||
AllowRootDirInstall true
|
||||
OutFile "primes.exe"
|
||||
|
@ -7,13 +14,19 @@ AllowRootDirInstall true
|
|||
InstallDir "$EXEDIR"
|
||||
DirText "Select directory to write primes.txt"
|
||||
|
||||
Section "crap"
|
||||
;--------------------------------
|
||||
|
||||
Section ""
|
||||
SetOutPath $INSTDIR
|
||||
Call DoPrimes
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
||||
Function DoPrimes
|
||||
|
||||
; we put this in here so it doesn't update the progress bar (faster)
|
||||
|
||||
!define PPOS $0 ; position in prime searching
|
||||
!define PDIV $1 ; divisor
|
||||
!define PMOD $2 ; the result of the modulus
|
||||
|
@ -44,5 +57,5 @@ outerloop:
|
|||
Goto outerloop
|
||||
stop:
|
||||
FileClose $9
|
||||
FunctionEnd
|
||||
|
||||
|
||||
FunctionEnd
|
Loading…
Add table
Add a link
Reference in a new issue