-- Based on primes.nsi from NSIS
--
-- This is an example of the possibities of the NSIS Script language.
-- It calculates prime numbers.

----------------------------------

primes = do

    name "primes"
    allowRootDirInstall True
    outFile "primes.exe"
    caption "Prime number generator"
    showInstDetails Show
    installDir "$EXEDIR"
    requestExecutionLevel User

    ----------------------------------

    --Pages

    page Directory
    page InstFiles

    ----------------------------------

    section "" [] $ do
        setOutPath "$INSTDIR"
        hideProgress doPrimes
primes = do

    name "primes"
    allowRootDirInstall True
    outFile "primes.exe"
    caption "Prime number generator"
    showInstDetails Show
    installDir "$EXEDIR"
    requestExecutionLevel User

    ----------------------------------

    --Pages

    page Directory
    page InstFiles

    ----------------------------------

    section "" [] $ do
        setOutPath "$INSTDIR"
        hideProgress doPrimes
primes = do

    name "primes"
    allowRootDirInstall True
    outFile "primes.exe"
    caption "Prime number generator"
    showInstDetails Show
    installDir "$EXEDIR"
    requestExecutionLevel User

    ----------------------------------

    --Pages

    page Directory
    page InstFiles

    ----------------------------------

    section "" [] $ do
        setOutPath "$INSTDIR"
        hideProgress doPrimes