mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Fixed windows installer
This commit is contained in:
parent
ce5972f806
commit
840fed13ee
@ -15,12 +15,6 @@ if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
msbuild UrBackupBackend.sln /p:Configuration=Release /p:Platform="x64"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
msbuild UrBackupBackend.sln /p:Configuration="Release Server PreVista" /p:Platform="win32"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
msbuild UrBackupBackend.sln /p:Configuration="Release Server PreVista" /p:Platform="x64"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
msbuild UrBackupBackend.sln /p:Configuration="Release Service" /p:Platform="x64"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
@ -42,18 +36,6 @@ if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
mkdir "x64\Release Server"
|
||||
copy /Y "urbackupserver\x64\Release Server\*" "x64\Release Server\"
|
||||
|
||||
msbuild urbackupserver\urbackupserver.vcxproj /p:Configuration="Release Server PreVista" /p:Platform="x64"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
mkdir "RRelease Server PreVista"
|
||||
copy /Y "urbackupserver\Release Server PreVista\*" "Release Server PreVista\"
|
||||
|
||||
msbuild urbackupserver\urbackupserver.vcxproj /p:Configuration="Release Server PreVista" /p:Platform="win32"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
mkdir "x64\Release Server PreVista"
|
||||
copy /Y "urbackupserver\x64\Release Server PreVista\*" "x64\Release Server PreVista\"
|
||||
|
||||
call "%~dp0urbackupserver_installer_win/generate_msi.bat"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
|
||||
Binary file not shown.
BIN
urbackupserver_installer_win/data_common/urbackup_ecdsa409k1.pub
Normal file
BIN
urbackupserver_installer_win/data_common/urbackup_ecdsa409k1.pub
Normal file
Binary file not shown.
@ -8,12 +8,12 @@ mkdir data
|
||||
copy /Y "..\Release Server\urbackupserver.dll" "data\urbackupserver.dll"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
copy /Y "..\Release Server PreVista\urbackupserver.dll" "data\urbackupserver_prevista.dll"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
copy /Y "..\release\fsimageplugin.dll" "data\fsimageplugin.dll"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
copy /Y "..\release\fileservplugin.dll" "data\fileservplugin.dll"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
mkdir data_common
|
||||
|
||||
copy /Y "..\server-license.txt" "data_common\license.txt"
|
||||
@ -72,3 +72,6 @@ if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
copy /Y "..\x64\Release\cryptoplugin.dll" "data_x64\cryptoplugin.dll"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
copy /Y "..\x64\release\fileservplugin.dll" "data_x64\fileservplugin.dll"
|
||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||
|
||||
@ -135,14 +135,13 @@ Section "install"
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
File "data_common\args.txt"
|
||||
File "data_common\args_prevista.txt"
|
||||
File "data_common\license.txt"
|
||||
File "data_common\cleanup.bat"
|
||||
File "data_common\remove_unknown.bat"
|
||||
File "data_common\reset_pw.bat"
|
||||
File "data_common\cleanup_database.bat"
|
||||
File "data_common\defrag_database.bat"
|
||||
File "data_common\urbackup_dsa.pub"
|
||||
File "data_common\urbackup_ecdsa409k1.pub"
|
||||
File "data_common\repair_database.bat"
|
||||
File "data_common\export_auth_log.bat"
|
||||
File "data_common\uncompress_image.bat"
|
||||
@ -184,49 +183,11 @@ Section "install"
|
||||
SetOutPath "$INSTDIR\urbackup\www\js"
|
||||
File "data_common\urbackup\www\js\*.js"
|
||||
|
||||
|
||||
|
||||
${IfNot} ${RunningX64}
|
||||
${If} ${IsWinXP}
|
||||
StrCpy $0 "$INSTDIR\args_prevista.txt" ;Path of copy file from
|
||||
StrCpy $1 "$INSTDIR\args.txt" ;Path of copy file to
|
||||
StrCpy $2 0 ; only 0 or 1, set 0 to overwrite file if it already exists
|
||||
System::Call 'kernel32::CopyFile(t r0, t r1, b r2) l'
|
||||
Pop $0
|
||||
;SetRebootFlag true
|
||||
${EndIf}
|
||||
${If} ${IsWin2003}
|
||||
StrCpy $0 "$INSTDIR\args_prevista.txt" ;Path of copy file from
|
||||
StrCpy $1 "$INSTDIR\args.txt" ;Path of copy file to
|
||||
StrCpy $2 0 ; only 0 or 1, set 0 to overwrite file if it already exists
|
||||
System::Call 'kernel32::CopyFile(t r0, t r1, b r2) l'
|
||||
Pop $0
|
||||
;SetRebootFlag true
|
||||
${EndIf}
|
||||
${Else}
|
||||
${If} ${IsWin2003}
|
||||
StrCpy $0 "$INSTDIR\args_prevista.txt" ;Path of copy file from
|
||||
StrCpy $1 "$INSTDIR\args.txt" ;Path of copy file to
|
||||
StrCpy $2 0 ; only 0 or 1, set 0 to overwrite file if it already exists
|
||||
System::Call 'kernel32::CopyFile(t r0, t r1, b r2) l'
|
||||
Pop $0
|
||||
;SetRebootFlag true
|
||||
${EndIf}
|
||||
${EndIf}
|
||||
|
||||
CreateDirectory "$SMPROGRAMS\UrBackup Server"
|
||||
CreateShortCut "$SMPROGRAMS\UrBackup Server\Uninstall.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0
|
||||
CreateShortCut "$SMPROGRAMS\UrBackup Server\UrBackup Server Interface.lnk" "http://localhost:55414" "" "$INSTDIR\urbackup\www\favico.ico" 0
|
||||
;SetOutPath "$SMPROGRAMS\UrBackup Server"
|
||||
;File "data_common\UrBackup Server Interface.htm"
|
||||
|
||||
${If} ${IsWinXP}
|
||||
nsisFirewallW::AddAuthorizedApplication "$INSTDIR\urbackup_srv.exe" "UrBackup Windows Server"
|
||||
${ElseIf} ${IsWin2003}
|
||||
nsisFirewallW::AddAuthorizedApplication "$INSTDIR\urbackup_srv.exe" "UrBackup Windows Server"
|
||||
${Else}
|
||||
liteFirewallW::AddRule "$INSTDIR\urbackup_srv.exe" "UrBackup Windows Server"
|
||||
${EndIf}
|
||||
liteFirewallW::AddRule "$INSTDIR\urbackup_srv.exe" "UrBackup Windows Server"
|
||||
Pop $0
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user