RAD 3월 9일에 포스트됨 공유하기 3월 9일에 포스트됨 원문제목: Streamlining RAD Studio Upgrades with GetIt 원문: https://blogs.embarcadero.com/streamlining-rad-studio-upgrades-with-getit 작성자: Jim McKeeth (2023.2) This guide covers streamlining GetIt packages during and upgrade and installation for a smoother upgrade experience. 겟잇 패키지를 활용해 보다 원활하게 업그레이드 환경을 구축하는 방법을 정리하였다. When upgrading between major versions, the Settings Migration Tool simplifies keeping your settings. It is also great for migrating a subset of your settings between alternative registry keys. When upgrading minor versions, your registry settings are automatically persisted if you use the default settings during the upgrade, but it is still a good idea to use the settings tool to backup your settings. 메이저 버전을 업그레이드할 때, 설정 마이크레이션 도구(Setting Migration Tool)를 사용하면 기존 설정을 쉽게 유지할 수 있다. 또한 이 방법은 대체 레지스트리 키들 간의 설정 서브셋을 마이그레이션 할 때도 유용하게 활용할 수 있다. 마이너 버전을 업그레이드할 경우, 업그레이드하는 동안 기본 설정을 그대로 적용한다면, 기존 레지스트리 설정도 자동유지된다. 하지만 설정 도구를 사용해 여러분이 설정해놨던 항목을 백업해두는 것이 좋다. It would also be nice to keep your GetIt packages installed. Both over minor releases and major releases. With the new release of 11.3 Alexandria I’ll walk you through my process for streamlining upgrades using the GetItCmd.exe command-line too. You can simplify the process with David Cornelius’ excellent AutoGetIt too. I’ll show both via the command-line too, and with AutoGetIt. 설치된 겟잇 패키지를 남겨두는 것도 좋다. 마이너 업그레이드든, 메이저 릴리스든 말이다. 이 글에서는 11.3 알렉산드리아에서 GetItCmd.exe 명령줄을 사용해 업그레이드를 간소화하는 방법을 정리했다. David Cornelius의 뛰어난 AutoGetIt을 사용하면 이 절차가 간단해지는데, 명령줄과 AutoGetIt을 활용하는 방법도 같이 정리하였다. 목차 필수 요소 1) 백업 패키지 목록 2) 겟잇 패키지 언인스톨 (마이너 업데이트) 3) RAD스튜디오 업그레이드 진행 4) 겟잇 패키지 버전 확인 5) 겟잇 패키지 재설치 요약 및 안내 필수 요소 When using GetItCmd.exe there are a few prerequisites. AutoGetIt uses GetItCmd automatically behind the scenes. GetItCmd.exe를 사용할 경우에는, 다음과 같이 필수로 필요한 요소들이 있다. AutoGetIt의 경우에는, GetItCmd를 자동 활용한다. RAD스튜디오가 여러분의 PC에 설치되어 있다 (기본 설치). Command Prompt를 사용한다 (PowerShell 아님). PowerShell을 실행한 경우, cmd로 전환할 수 있다. 고급 명령 프롬프트 (관리자 권한으로 실행)를 사용할 것을 권장한다. 그렇지 않은 경우, 하나 이상의 elevation을 입력하라는 메세지가 표시될 수 있다. rsvars.bat을 실행해 모든 환경 변수를 설정한다. 1) 백업 패키지 목록 A good developer always has backups (plural!) especially before starting something like an upgrade. Let’s create a backup list of our installed GetIt packages. 좋은 개발자는 항상 백업을 한다. 특히 업그레이드와 같은 작업을 시작하기 전에! 설치된 겟잇 패키지의 백업 목록을 만들어보자. getitcmd --list= --sort=name --filter=installed 다음과 같은 결과가 출력될 것이다. GetIt Package Manager - Version 7.0 Copyright (c) 2023 Embarcadero Technologies, Inc. All Rights Reserved. Id Version Description -- ------- ----------- Bookmarks-11-1.6.3 1.6.3 Navigate your code! Bookmarks re... BossExperts-1.0 1.0 Boss Experts is an IDE utility f... Delphi4PythonExporter-D11-1.2.1 1.2.1 Design your Python GUI using Del... DOSCommand-2021.09-D11 2021.09 TurboPack DOSCommand component l... FMXStyle-PolarLight-1.0 1.0 FMX Multi-Device Light Style - P... Navigator-11-1.6.3 1.6.3 Your code at your fingertips. Ev... OpenAIforDelphi 5.0 The library provides access to t... ParallelDebugger-11-1.0.3 1.0.3 Modern apps have multiple thread... Skia4Delphi-4.1.1 4.1.1 Cross-platform 2D graphics API b... SVGIconImageList-11-3.9.3 3.9.3 Four advanced components to simp... VCLStyle-Calypso-1.0 1.0 VCL Windows Style - Calypso. Inc... VCLStyle-FlatUILight-1.0 1.0 VCL Windows Style - Flat UI Ligh... VCLStyle-MaterialOxfordBlue-1.0 1.0 VCL Windows Style - Material Oxf... VCLStyle-MineShaft-1.0 1.0 VCL Windows Style - Windows11 Mi... VCLStyle-PolarDark-1.0 1.0 VCL Windows Style - Windows11 Po... VCLStyle-PuertoRico-1.0 1.0 VCL Windows Style - Puerto Rico.... VCLStyle-Stellar-1.0 1.0 VCL Windows Style - Stellar. Inc... VCLStyle-WedgewoodLight-1.0 1.0 VCL Windows Style - Wedgewood Li... VCLStyle-WhiteSmoke-1.0 1.0 VCL Windows Style - Windows11 Wh... VCLStyle-Windows10BlackPearl-1.0 1.0 VCL Windows Style - Windows10 Bl... VCLStyle-Windows10BlueWhale-1.0 1.0 VCL Windows Style - Windows10 Bl... VCLStyle-Windows10Charcoal-1.0 1.0 VCL Windows Style - Windows10 Ch... VCLStyle-Windows10ClearDay-1.0 1.0 VCL Windows Style - Windows10 Cl... VCLStyle-Windows10Malibu-1.0 1.0 VCL Windows Style - Windows10 Ma... VirtualTreeView-11 2022.09 Delphi and CBuilder treeview con... XMLMapper-28 28.0.8300.35351 XML Mapper is the Swiss knife fo... Command finished with success! That first column is what you need to backup. Just redirect it to a text file, open it in your favorite text editor, and use a column select to remove the extra text. AutoGetIt has a feature to do this automatically. 첫번째 열이 백업해야 하는 항목들이다. 텍스트 파일로 리다이렉트하고, 원하는 텍스트 편집기에서 해당 파일을 연다. 그리고 열을 선택헤(column select) 추가 텍스트를 제거한다. AutoGetIt에는 이 작업을 자동으로 진행하는 기능이 있다. Installed Only 항목을 체크한다. Refresh Package List를 클릭한다. 컨텍스트 메뉴를 직접 모두 선택하거나, Ctrl+A 단축키를 누른다. 컨텍스트 메뉴에서 Saved checked items를 선택하거나, Ctrl+S 단축키를 누른다. 2) 겟잇 패키지 언인스톨 (마이너 업데이트) Behind the scenes the RAD Studio installed uses the GetIt package manager. When you upgrade a minor release (e.g. going from 11.2 to 11.3) it uninstalls all GetIt packages but uses a different process. I’ve found this sometimes causes errors after the new version is installed as it still tries to load some packages. So if you are performing a minor update, then I recommend uninstalling your GetIt packages first. 설치된 RAD스튜디오의 뒷단에서는 겟잇 패키지 매니저가 사용된다. 마이너 릴리스(예. 11.2에서 11.3으로의 업그레이드)로 업그레이드하는 경우에는, 전체 겟잇 패키지를 삭제하게 되는데, 프로세스가 다르다. 새 버전을 설치한 후에도 일부 패키지를 불러오려고 할 때 오류가 발생할 수도 있다는 걸 알게되었다. 그렇기 때문에 마이너 업데이트를 진행하는 경우에는, 겟잇 패키지를 우선 삭제하는 것이 좋다. Note: If you are moving to a new major version of RAD Studio then you don’t need to uninstall the packages first as nothing is installed during the upgrade process. 참고: RAD 스튜디오의 새 메이저 버전을 설치할 경우에는, 패키지를 삭제할 필요가 없다. 업그레이드 절차 중 설치되는 것이 없기 때문이다. getitcmd -v=minimal -u=Bookmarks-11-1.6.3;BossExperts-1.0;Delphi4PythonExporter-D11-1.2.1;DOSCommand-2021.09-D11;FMXStyle-PolarLight-1.0;Navigator-11-1.6.3;OpenAIforDelphi;ParallelDebugger-11-1.0.3;VCLStyle-Calypso-1.0;VCLStyle-FlatUILight-1.0;VCLStyle-MaterialOxfordBlue-1.0;VCLStyle-MineShaft-1.0;VCLStyle-PolarDark-1.0;VCLStyle-PuertoRico-1.0;VCLStyle-Stellar-1.0;VCLStyle-WedgewoodLight-1.0;VCLStyle-WhiteSmoke-1.0;VCLStyle-Windows10BlackPearl-1.0;VCLStyle-Windows10BlueWhale-1.0;VCLStyle-Windows10Charcoal-1.0;VCLStyle-Windows10ClearDay-1.0;VCLStyle-Windows10Malibu-1.0;VirtualTreeView-11;XMLMapper-28;Skia4Delphi-4.1.1 Or from AutoGetIt just use the Uninstall checked context menu item. AutoGetIt를 사용하는 경우, 컨텍스트 메뉴에서 Uninstall checked 항목을 선택하면 된다. 3) RAD스튜디오 업그레이드 진행 Now just upgrade RAD Studio as usual. I recommend backing up your settings with the Migration Assistant, but if you like to live dangerously that is your call. 이제 RAD스튜디오를 평소처럼 업그레이드하면 된다. Migration Assistant를 사용해 설정을 백업해두길 바란다. 위험하게 살고싶다면, 하지 않아도 된다. 4) 겟잇 패키지 버전 확인 If you are migrating your packages to a new major version, or even on some minor upgrades, some of the package numbers may have changed. So it might be a good idea to export the full package list for the new install, then do a comparison with the best text compare tool and see if the version numbers changed. If they did, you will want to change the version numbers before installing the packages again, otherwise they will fail to install. 패키지를 새 메이저 버전으로 마이그레이션하거나 마이너 업그레이드를 진행하는 경우, 일부 패키지 번호가 변경될 수 있다. 따라서 새 설치를 위해 전체 패키지 목록을 내보내고(export), 최상의 텍스트 비교 도구를 활용해 비교해본 다음, 버전 번호가 변경되었는지 체크해보는 것이 좋다. 번호가 변경된 경우, 패키지를 다시 설치하기에 앞서 버전 번호를 변경해야 한다. 그렇지 않을 경우, 설치가 제대로 되지 않을 수 있다. getitcmd --list= --sort=name --filter=all AutoGetit를 사용한다면, Installed Only 항목의 체크를 해제한다. Refresh Package List를 클릭한다. 컨텍스트 메뉴를 직접 모두 선택하거나, Ctrl+A 단축키를 누른다. 컨텍스트 메뉴에서 Saved checked items를 선택하거나, Ctrl+S 단축키를 누른다. I found it easiest to spot changes if you sort the lists first. You can use UltraEdit’s Sort function or the sort command-line utility included with Windows. Then when viewing in Beyond Compare only show differences and hide context to spot any issues quickly. Notice the preview on the left only shows one difference for the right file, which is our package list. When we look at the package list we see that is the 11.2 Patch 1, which naturally isn’t available in 11.3. 먼저 목록을 분류하면, 변경된 내용을 파악하기 가장 쉽다. UltraEdit의 Sort 기능 또는 윈도우에 있는 sort command-line 유틸리티를 사용하면 된다. 그런 다음 Beyond Compare에서 컨텍스트를 숨김처리하고 차이점만 보이도록 설정하면, 문제가 되는 부분을 빠르게 확인할 수 있다. 왼쪽에 있는 미리보기를 통해 해당 파일에 대한 차이점이 표시된다. 아래 이미지를 보면, 11.3에서는 당연히 제공되지 않는 11.2 패치 1이 차이점으로 표시되는 걸 확인할 수 있다. 5) 겟잇 패키지 재설치 Once you’ve finished installing RAD Studio, close the IDE and reinstall your GetIt packages. The -ae argument automatically accepts the EULA prompts. RAD스튜디오 설치가 완료되고 나면, IDE를 종료하고 겟잇 패키지를 재설치해야 한다. -ae 인수가 EULA 프롬프트를 자동 승인한다. getitcmd -ae -v=minimal -i=Bookmarks-11-1.6.3;BossExperts-1.0;Delphi4PythonExporter-D11-1.2.1;DOSCommand-2021.09-D11;FMXStyle-PolarLight-1.0;Navigator-11-1.6.3;OpenAIforDelphi;ParallelDebugger-11-1.0.3;VCLStyle-Calypso-1.0;VCLStyle-FlatUILight-1.0;VCLStyle-MaterialOxfordBlue-1.0;VCLStyle-MineShaft-1.0;VCLStyle-PolarDark-1.0;VCLStyle-PuertoRico-1.0;VCLStyle-Stellar-1.0;VCLStyle-WedgewoodLight-1.0;VCLStyle-WhiteSmoke-1.0;VCLStyle-Windows10BlackPearl-1.0;VCLStyle-Windows10BlueWhale-1.0;VCLStyle-Windows10Charcoal-1.0;VCLStyle-Windows10ClearDay-1.0;VCLStyle-Windows10Malibu-1.0;VirtualTreeView-11;XMLMapper-28;Skia4Delphi-4.1.1 AutoGetIt를 사용한다면, Installed Only 항목의 체크를 해제한다. Refresh Package List를 클릭한다. 컨텍스트 메뉴에서 Load checked items를 선택해 저장한 목록을 불러온다. 컨텍스트 메뉴에서 Install checked를 선택한다. 요약 및 안내 Just fire up your new RAD Studio, and all your packages installed with none of those pesky error messages. A much smoother process. 이제 설치한 새 RAD스튜디오를 열어보면, 성가신 오류 메세지없이 모든 패키지가 설치되어 있을 것이다. 훨씬 더 깔끔하고 원활한 프로세스로 말이다. 겟잇 패키지 목록을 백업한다. 겟잇 패키지를 언인스톨한다 (마이너 버전 업그레이드의 경우). 새 버전의 RAD스튜디오를 설치/업그레이드한다. 버전 패키지 넘버를 확인한다. 겟잇 패키지를 설치한다. 1 인용하기 이 댓글 링크 다른 사이트에 공유하기 더 많은 공유 선택 사항
Recommended Posts
이 토의에 참여하세요
지금 바로 의견을 남길 수 있습니다. 그리고 나서 가입해도 됩니다. 이미 회원이라면, 지금 로그인하고 본인 계정으로 의견을 남기세요.