mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
dont delete callsign anymore for nsis
This commit is contained in:
parent
cf37622365
commit
77d95baf00
|
@ -54,16 +54,35 @@ Section "FreeData Server" SEC01
|
||||||
; Set output path to the installation directory
|
; Set output path to the installation directory
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
|
|
||||||
|
; Check if "config.ini" exists and back it up
|
||||||
|
IfFileExists $INSTDIR\config.ini backupConfig
|
||||||
|
|
||||||
|
doneBackup:
|
||||||
; Add your application files here
|
; Add your application files here
|
||||||
File /r "modem\server.dist\*.*"
|
File /r "modem\server.dist\*.*"
|
||||||
|
|
||||||
; Additional installation commands here
|
; Restore the original "config.ini" if it was backed up
|
||||||
|
IfFileExists $INSTDIR\config.ini.bak restoreConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
; Create a shortcut in the user's desktop
|
; Create a shortcut in the user's desktop
|
||||||
CreateShortCut "$DESKTOP\FreeData Server.lnk" "$INSTDIR\freedata-server.exe"
|
CreateShortCut "$DESKTOP\FreeData Server.lnk" "$INSTDIR\freedata-server.exe"
|
||||||
|
|
||||||
; Create Uninstaller
|
; Create Uninstaller
|
||||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||||
|
|
||||||
|
; Backup "config.ini" before overwriting files
|
||||||
|
backupConfig:
|
||||||
|
Rename $INSTDIR\config.ini $INSTDIR\config.ini.bak
|
||||||
|
Goto doneBackup
|
||||||
|
|
||||||
|
; Restore the original "config.ini"
|
||||||
|
restoreConfig:
|
||||||
|
Delete $INSTDIR\config.ini
|
||||||
|
Rename $INSTDIR\config.ini.bak $INSTDIR\config.ini
|
||||||
|
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
; Uninstaller Section
|
; Uninstaller Section
|
||||||
|
|
Loading…
Reference in a new issue