AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Automatic installation of DPKs

Ein Thema von alpha04 · begonnen am 3. Dez 2018 · letzter Beitrag vom 3. Dez 2018
Antwort Antwort
alpha04

Registriert seit: 19. Nov 2018
3 Beiträge
 
#1

Automatic installation of DPKs

  Alt 3. Dez 2018, 10:59
I have a Group project(.groupproj), which has a list of 11 dpk's / bpl. I need to build and install all these dpk's via command line.

How can I do this via the command line?

The idea is to setup Jenkins job like a .bat file to do this automatically.

Thanks in Advance.
  Mit Zitat antworten Zitat
Delphi.Narium

Registriert seit: 27. Nov 2017
2.415 Beiträge
 
Delphi 7 Professional
 
#2

AW: Automatic installation of DPKs

  Alt 3. Dez 2018, 11:49
https://stackoverflow.com/questions/...e-command-line

https://blog.dummzeuch.de/2014/05/11...m-commandline/
  Mit Zitat antworten Zitat
Benutzerbild von GPRSNerd
GPRSNerd

Registriert seit: 30. Dez 2004
Ort: Ruhrpott
239 Beiträge
 
Delphi 10.4 Sydney
 
#3

AW: Automatic installation of DPKs

  Alt 3. Dez 2018, 11:58
I do that with the help of a batch script:

Code:
CALL "C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\rsvars.bat"
ECHO %BDS%
ECHO %BDSCOMMONDIR%
SET BPLREG="HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0\Known Packages"
ECHO %BPLREG%
SET BPLPATH="%BDSCOMMONDIR%\Bpl"
ECHO %BPLPATH%
ECHO ================================================================================

rem MPHexEditor
ECHO MPHexEditor...
ECHO  MPHexEditor
msbuild ".\MPHexEditor\Packages\MPHexEditor.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
ECHO  MPHexEditorDsgn
msbuild ".\MPHexEditor\Packages\MPHexEditorDsgn.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
reg delete %BPLREG% /v "%BPLPATH%\MPHexEditorDsgn.bpl" /f >NUL 2>&1
reg add   %BPLREG% /v "%BPLPATH%\MPHexEditorDsgn.bpl" /t REG_SZ /d "MP HexEditor Designtime" >NUL

rem PNGComponents
ECHO PNGComponents...
ECHO  PngComponents
msbuild ".\PngComponents\PackagesRio\PngComponents.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
ECHO  PngComponentsDesign
msbuild ".\PngComponents\PackagesRio\PngComponentsDesign.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
reg delete %BPLREG% /v "%BPLPATH%\PngComponentsDesign260.bpl" /f >NUL 2>&1
reg add   %BPLREG% /v "%BPLPATH%\PngComponentsDesign260.bpl" /t REG_SZ /d "Png Components Designtime" >NUL

...

GOTO DONE

:ERROR
ECHO ================================================================================
ECHO FEHLER aufgetreten! ERRORLEVEL = %ERRORLEVEL%
ECHO ================================================================================
PAUSE
GOTO END

:DONE
ECHO ================================================================================
ECHO Build erfolgreich!
ECHO ================================================================================
PAUSE

:END
SET BPLREG=
SET BPLPATH=
The packages are build with msbuild and "installed" into the IDE by setting the corresponding values in the registry.
Stefan
  Mit Zitat antworten Zitat
3. Dez 2018, 12:01
Dieses Thema wurde am "03. Dec 2018, 13:01 Uhr" von "Luckie" aus dem Forum "Sonstige Werkzeuge" in das Forum "Die Delphi-IDE" verschoben.
alpha04

Registriert seit: 19. Nov 2018
3 Beiträge
 
#5

AW: Automatic installation of DPKs

  Alt 3. Dez 2018, 18:19
Thanks for the batch file. I can similarly add to install Lockbox3 modifying the value of the key Computer\HKEY_CURRENT_USER\Software\Embarcadero\BD S\19.0\Library\Win64\SearchPath.

However, what more needs to be done for installing Component "Microsoft ActiveX Data Objects"?
Should I create a new package for the same and make a similar batch file?


I do that with the help of a batch script:

Code:
CALL "C:\Program Files (x86)\Embarcadero\Studio\20.0\bin\rsvars.bat"
ECHO %BDS%
ECHO %BDSCOMMONDIR%
SET BPLREG="HKEY_CURRENT_USER\Software\Embarcadero\BDS\20.0\Known Packages"
ECHO %BPLREG%
SET BPLPATH="%BDSCOMMONDIR%\Bpl"
ECHO %BPLPATH%
ECHO ================================================================================

rem MPHexEditor
ECHO MPHexEditor...
ECHO  MPHexEditor
msbuild ".\MPHexEditor\Packages\MPHexEditor.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
ECHO  MPHexEditorDsgn
msbuild ".\MPHexEditor\Packages\MPHexEditorDsgn.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
reg delete %BPLREG% /v "%BPLPATH%\MPHexEditorDsgn.bpl" /f >NUL 2>&1
reg add   %BPLREG% /v "%BPLPATH%\MPHexEditorDsgn.bpl" /t REG_SZ /d "MP HexEditor Designtime" >NUL

rem PNGComponents
ECHO PNGComponents...
ECHO  PngComponents
msbuild ".\PngComponents\PackagesRio\PngComponents.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
ECHO  PngComponentsDesign
msbuild ".\PngComponents\PackagesRio\PngComponentsDesign.dproj" /t:Build /p:Configuration=Release /p:platform=Win32
IF NOT %ERRORLEVEL%==0 GOTO ERROR
reg delete %BPLREG% /v "%BPLPATH%\PngComponentsDesign260.bpl" /f >NUL 2>&1
reg add   %BPLREG% /v "%BPLPATH%\PngComponentsDesign260.bpl" /t REG_SZ /d "Png Components Designtime" >NUL

...

GOTO DONE

:ERROR
ECHO ================================================================================
ECHO FEHLER aufgetreten! ERRORLEVEL = %ERRORLEVEL%
ECHO ================================================================================
PAUSE
GOTO END

:DONE
ECHO ================================================================================
ECHO Build erfolgreich!
ECHO ================================================================================
PAUSE

:END
SET BPLREG=
SET BPLPATH=
The packages are build with msbuild and "installed" into the IDE by setting the corresponding values in the registry.
  Mit Zitat antworten Zitat
alpha04

Registriert seit: 19. Nov 2018
3 Beiträge
 
#6

AW: Automatic installation of DPKs

  Alt 3. Dez 2018, 18:20
Thanks a lot for the links.

Can you also have a look at my other comment about installation of ADODB_TLB?



  Mit Zitat antworten Zitat
Antwort Antwort

 

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:04 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz