diff --git a/newforlaptopmake.bat b/newforlaptopmake.bat new file mode 100644 index 0000000..c264642 --- /dev/null +++ b/newforlaptopmake.bat @@ -0,0 +1,276 @@ +@echo off +cls +cd c:\data\ayanova + +set m=Unknown error + + + +echo. +echo ********************************************************* +echo CLEAN OUT OBFUSCATED FOLDER AND PREVIOUS INSTALLERS +echo ********************************************************* +echo. +echo. + +del /q release\obfuscated\* +del /q Installs\*.exe + + + +echo. +echo ********************************************************* +echo START OF OBFUSCATE AND BUILD INSTALLERS +echo ********************************************************* +echo. +echo. + +:: **** OBFUSCATE AyaNova files +:: rename the hopefully existing ayanova.exe in the x86 folder under spice which should have been built by selecting x86 in the project config in visual studio after the main build +:: this will then get obfuscated properly automatically and ready for the installer to build it in + +echo Obfuscating X86AyaNova... +echo. +echo. +@copy release\x86\AyaNova.exe release\x86\x86AyaNova.exe /Y + +"C:\Program Files (x86)\LogicNP Software\Crypto Obfuscator For .Net 2010 R2\co.exe" projectfile=release\x86AyaNovaOnly.obproj checkfulllicense=true +IF %ERRORLEVEL% NEQ 0 ( +set m=Obfuscator failed x86AyaNova +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo Obfuscating AyaNova files PART 1 +echo. +echo. +"C:\Program Files (x86)\LogicNP Software\Crypto Obfuscator For .Net 2010 R2\co.exe" projectfile=release\AyaNovaPart1.obproj checkfulllicense=true +IF %ERRORLEVEL% NEQ 0 ( +set m=Obfuscator failed AyaNova +goto FAIL +) + + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo Obfuscating AyaNova files PART 2 +echo. +echo. +"C:\Program Files (x86)\LogicNP Software\Crypto Obfuscator For .Net 2010 R2\co.exe" projectfile=release\AyaNovaPart2.obproj checkfulllicense=true +IF %ERRORLEVEL% NEQ 0 ( +set m=Obfuscator failed AyaNova +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo Obfuscating WBI / MBI... +echo. +echo. +"C:\Program Files (x86)\LogicNP Software\Crypto Obfuscator For .Net 2010 R2\co.exe" projectfile=release\WBI_MBI.obproj checkfulllicense=true +IF %ERRORLEVEL% NEQ 0 ( +set m=Obfuscator failed WBI_MBI +goto FAIL +) + + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo Building setups... +echo. +echo. + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build AyaNova setup file +echo. +echo. + +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\AyaNovaINNO\AyaNova.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building AyaNova.iss +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build CEImport setup file +echo. +echo. +:: **** CEImport build setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\CEImportINNO\CEImport.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building CEImport.iss +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build QuickNotify plugin setup file +echo. +echo. +:: **** Build QuickNotify Plugin setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\QuickNotify\QuickNotify.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building QuickNotify.iss +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build ExportToXLS plugin setup file +echo. +echo. +:: **** Build ExportToXLS Plugin setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\ExportToExcel\ExportToExcel.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building ExportToExcel.iss +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build Outlookschedule plugin setup file +echo. +echo. +:: **** Build Outlookschedule ayanova plugin setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\OutlookSchedule\OutlookSchedule.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building OutlookSchedule.iss +goto FAIL +) + + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build AyaNovaOL setup file +echo. +echo. +:: *** Build AyaNovaOL Outlook plugin setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\AyaNovaOL\AyaNovaOL.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building AyaNovaOL.iss +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build AyaScript setup file +echo. +echo. +:: *** Build AyaScript setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\AyaScript\AyaScript.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building AyaScript.iss +goto FAIL +) + + +:: ** Build web project installers + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build WBI setup file +echo. +echo. +:: *** Build WBI setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\WBI\WBI.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building WBI.ISS +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build MBI setup file +echo. +echo. +:: *** Build MBI setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\MBI\MBI.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building MBI\MBI.iss +goto FAIL +) + +echo. +echo -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- +echo. +echo. +echo. +echo **** Build RI setup file +echo. +echo. +:: *** Build RI setup file +"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Installs\RI\RI.iss +IF %ERRORLEVEL% NEQ 0 ( +set m=INNO failed building RI\RI.iss +goto FAIL +) + +::Completed processing without error +goto OK + +::------------------------ +:FAIL +echo. +echo. +echo. +echo. +echo. +echo Error: +echo %m% +pause +goto DONE + +::------------------------ +:OK +echo. +echo. +echo. +echo. +echo. +@echo Completed without error +pause + + +:DONE