Changeset 217 in Main for trunk/Server/install.nsi


Ignore:
Timestamp:
Oct 3, 2024, 4:50:16 AM (6 weeks ago)
Author:
Nishi
Message:

add a script to create specific installer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/install.nsi

    r208 r217  
    4040        CreateDirectory "$INSTDIR\bin"
    4141        SetOutPath "$INSTDIR"
    42         File /oname=LICENSE.txt "../LICENSE"
     42        !cd ..
     43        File /oname=LICENSE.txt "LICENSE"
    4344        SetOutPath "$INSTDIR\modules"
    44         File "../Module/*.dll"
     45        !cd Module
     46        File "*.dll"
     47        !cd ..
    4548        SetOutPath "$INSTDIR\etc"
    4649        SetOverWrite off
    47         File /oname=tewi.conf "../generated.conf"
     50        File /oname=tewi.conf "generated.conf"
    4851        SetOutPath "$INSTDIR\www"
    49         File /oname=index.html "../itworks.html"
    50         File /oname=pbtewi.gif "../Binary/pbtewi.gif"
     52        File /oname=index.html "itworks.html"
     53        !cd Binary
     54        File /oname=pbtewi.gif "pbtewi.gif"
     55        !cd ..
    5156        SetOutPath "$INSTDIR\www\icons"
    52         File "../Icons/*.png"
     57        !cd Icons
     58        File "*.png"
     59        !cd ..
     60        !cd Server
    5361        SetOverWrite on
    5462
     
    7381Section "$(EXEC_ONLY)" SEL_EXEC
    7482        SetOutPath "$INSTDIR\bin"
    75         File "../tewi.exe"
     83        !cd ..
     84        File "tewi.exe"
     85        !cd Server
    7686        WriteINIStr $INSTDIR\install.ini uninstall service false
    7787SectionEnd
    7888
     89!ifndef ONLY_EXEC
    7990Section /o "$(SERV_TOO)" SEL_SERVICE
    8091        WriteINIStr $INSTDIR\install.ini uninstall service true
     
    8899        CreateDirectory "$INSTDIR\logs"
    89100        SetOutPath "$INSTDIR\bin"
    90         File "../tewi.exe"
    91         File /oname=tewisrv.exe "../tewi-service.exe"
     101        !cd ..
     102        File "tewi.exe"
     103        File /oname=tewisrv.exe "tewi-service.exe"
     104        !cd Server
    92105        FileOpen $9 $INSTDIR\install.bat w
    93106        FileWrite $9 '"$SYSDIR\sc.exe" delete "TewiHTTPd"$\r$\n'
     
    99112        Delete $INSTDIR\install.bat
    100113SectionEnd
     114!endif
    101115
    102116Function .onInit
     
    107121        !insertmacro StartRadioButtons $1
    108122        !insertmacro RadioButton ${SEL_EXEC}
     123        !ifndef ONLY_EXEC
    109124        !insertmacro RadioButton ${SEL_SERVICE}
     125        !endif
    110126        !insertmacro EndRadioButtons
    111127FunctionEnd
Note: See TracChangeset for help on using the changeset viewer.