Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
e5135e85
Commit
e5135e85
authored
11 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
:D
parent
22903a35
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install/synchronet-install.exe
+0
-0
0 additions, 0 deletions
install/synchronet-install.exe
install/synchronet.nsi
+0
-117
0 additions, 117 deletions
install/synchronet.nsi
with
0 additions
and
117 deletions
install/synchronet-install.exe
deleted
100644 → 0
+
0
−
0
View file @
22903a35
File deleted
This diff is collapsed.
Click to expand it.
install/synchronet.nsi
deleted
100644 → 0
+
0
−
117
View file @
22903a35
!include "winmessages.nsh"
!include "ZipDLL.nsh"
!define env_hklm 'HKLM "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"'
!define env_hkcu 'HKCU "Environment"'
Name "Synchronet Nightly"
OutFile "synchronet-install.exe"
InstallDir '$PROGRAMFILES\Synchronet'
ShowInstDetails show
RequestExecutionLevel highest
Page directory
Page instfiles
Function RollBack
DetailPrint "Installation failed. Cleaning up."
SetOutPath $TEMP
RMDir /r $INSTDIR
Abort
FunctionEnd
Function CVSCheckout
pop $0
DetailPrint "-Checking '$0' out of CVS ..."
nsExec::Exec '"$INSTDIR\temp\cvs.exe" -d :pserver:anonymous@cvs.synchro.net:/cvsroot/sbbs checkout $0'
IfFileExists '$INSTDIR\$0' PathGood
DetailPrint "CVS checkout of '$0' failed. Aborting installation."
Call RollBack
PathGood:
FunctionEnd
Section ""
IfFileExists '$INSTDIR' ask true
ask:
MessageBox MB_YESNO '$INSTDIR exists. Files will be overwritten. Proceed?' IDYES true
DetailPrint "Installation aborted."
Quit
true:
IfFileExists $SYSDIR\MSVCR100.dll ok_msvcr100 install_msvcr100
install_msvcr100:
DetailPrint 'Installing MSVCR100.dll to $SYSDIR:'
SetOutPath $SYSDIR
File MSVCR100.dll
ok_msvcr100:
SetOutPath $INSTDIR\temp
File cvs.exe
SetOutPath $INSTDIR
DetailPrint "Downloading files. Be patient ..."
push 'ctrl'
Call CVSCheckout
push 'docs'
Call CVSCheckout
push 'exec'
Call CVSCheckout
push 'node1'
Call CVSCheckout
push 'node2'
Call CVSCheckout
push 'node3'
Call CVSCheckout
push 'node4'
Call CVSCheckout
push 'text'
Call CVSCheckout
push 'web'
Call CVSCheckout
push 'xtrn'
Call CVSCheckout
DetailPrint "-Fetching nightly build from ftp.synchro.net ..."
inetc::get ftp://ftp.synchro.net/sbbs_dev.zip '$INSTDIR\sbbs_dev.zip'
IfFileExists '$INSTDIR\sbbs_dev.zip' FileGood
DetailPrint "File sbbs_dev.zip wasn't downloaded. Aborting."
Call RollBack
FileGood:
DetailPrint "Extracting executables into '$INSTDIR\exec' ..."
!insertmacro ZIPDLL_EXTRACT "$INSTDIR\sbbs_dev.zip" "$INSTDIR\exec" "<ALL>"
Pop $0
StrCmp $0 "success" UnzipGood
DetailPrint "Failed to unzip sbbs_dev.zip. Aborting."
Call RollBack
UnzipGood:
Delete '$INSTDIR\sbbs_dev.zip'
DetailPrint "Setting SBBSCTRL environment variable to '$INSTDIR\ctrl' ..."
WriteRegExpandStr ${env_hklm} SBBSCTRL '$INSTDIR\ctrl'
SendMessage ${HWND_BROADCAST} ${WM_WININICHANGE} 0 "STR:Environment" /TIMEOUT=5000
DetailPrint "Copying 'sbbs.dll' to '$SYSDIR' ..."
CopyFiles '$INSTDIR\exec\sbbs.dll' $SYSDIR
DetailPrint "Compiling BAJA scripts ..."
SetOutPath $INSTDIR\exec
FindFirst $0 $1 $INSTDIR\exec\*.src
baja_compile_loop:
StrCmp $1 "" done_baja_compile_loop
DetailPrint " -Compiling $1"
nsExec::Exec '"$INSTDIR\exec\baja.exe" $1'
FindNext $0 $1
Goto baja_compile_loop
done_baja_compile_loop:
FindClose $0
DetailPrint "Cleaning up ..."
RMDir /r '$INSTDIR\temp'
CreateShortCut '$SMPROGRAMS\Synchronet Control Panel.lnk' '$INSTDIR\exec\sbbsctrl.exe'
SectionEnd
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment