조회 수 12624 추천 수 0 댓글 4
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

온라인 설치프로그램(Online Installer)만드는 방법

 

온라인 설치는 설치패키지를 웹서버에 두고 설치프로그램의 런타임 시에 다운로드 받아 설치한다. 

 

온라인 설치프로그램을 제작하는 과정은 오프라인 설치프로그램과 비슷하며 온라인 Repository 용 디렉토리 구성을 해준다는 점이 약간다르다.

 

이 문서에서는 명령줄에서 설치프로그램을 만드는 방법을 설명한다. 

 

테스트를 위해 웹서버는 파이썬을 이용한 로컬 웹서버를 구축한다. (웹서버 구축 방법은 자유다.)

 

Qt Installer Framework가 설치되어 있지않다면 QtMaintenanceTool을 실행해서 Qt Installer Framework를 설치한다.

install_IFW.png

 

작업 디렉터리를 만들고 다음과 같은 구조의 폴더 트리를 만든다. 아래 예제는 A, B의 두개의 컴포넌트로 구성된 경우를 나타낸다.

directorytree.png

 

config디렉토리에는 설치프로그램을 만들때 기본으로 사용되는 정보들이 지정된 config.xml이 있어야 한다.

config.xml은 다음과 같이 작성되며 RemoteRepositories 는 온라인 설치프로그램에만 적용된다. Repository는 컴포넌트가 있는 서버의 위치를 포함한다.

<?xml version="1.0" encoding="UTF-8"?>
<Installer>
    <Name>Online Installer Example</Name>
    <Version>1.0.0</Version>
    <Title>Online Installer Example</Title>
    <Publisher>The Qt Company</Publisher>
    <!-- Directory name is used in component.xml -->
    <StartMenuDir>Qt IFW Examples</StartMenuDir>
    <TargetDir>@HomeDir@/IfwExamples/online</TargetDir>
    <RemoteRepositories>
        <Repository>
            <Url>http://localhost/repository</Url>
        </Repository>
    </RemoteRepositories>
</Installer>

 

 

각 컴포넌트의 data 에는 설치대상이되는 파일들을 넣는다. meta에는 컴포넌트의 세부 정보들을 설명하는 package.xml이 있어야 한다.

package.xml의 예는 다음과 같다.

<?xml version="1.0" encoding="UTF-8"?>
<Package>
    <DisplayName>A</DisplayName>
    <Description>Example component A</Description>
    <Version>1.0.2-1</Version>
    <ReleaseDate>2015-01-01</ReleaseDate>
    <Default>true</Default>
</Package>

 

명령프롬프트 실행 후 환경 변수 설정

C:\Users\User>set path=%path%;C:\Qt\Tools\QtInstallerFramework\3.1\bin;

 

 

작업 디렉터리로 이동 후 

 

온라인 Repository 폴더 생성

 

repogen -p packages repository

 

온라인 설치 프로그램 생성

 

binarycreator.exe --online-only -c config\config.xml -p packages installer.exe

 

repogen.png

 

작업 디렉토리에 다음과 같이 Repository 디렉토리와 설치프로그램이 만들어 졌다.

working_directory.png

 

이제 이 Repository를 위한 웹서버를 구축해줘야한다. (파이썬을 이용한 웹서버 구축)

작업 디렉토리에서 80포트로 지정해줬다.

http.server.png

 

웹브라우저로 http://localhost/Repository 를 접속해보면 다음과 같이 목록이 나온다면 준비가 된것이다.

localhost_repository.png

 

이제 installer.exe 를 실행해서 기본위치에 설치 해본다. 

downloads.png

 

A, B 컴포넌트 data 파일들과 maintenancetool.exe 도 잘 설치되었다.

install_directory.png

  • ?
    뛰어 2020.02.17 18:13

    안녕하세요. 좋은글 잘 보고 갑니다.ㅎ

    질문 하나 드려도 될까요? 

    repogen 명령어를 사용하게 되면 지금 7zip not enough memory 에러가 발생하는데 혹시 해결 방안이 있으신가요?

  • ?
    makersweb 2020.02.17 21:58

    해당문제가 수정되었는지는 모르겠으나 파일사이즈 400MB 이상의 것들을 포함하면 안되는 거 같네요!

  • ?
    뛰어 2020.02.18 16:49

    답변 감사합니다. 말씀해주신대로 400MB이상은 압축이 안되는것 같아서 방법을 달리했습니다.

     

    여러 Component를 정의하고 이 정의된 Component의 의존관계를 설정하면 지금 제가 당면한 문제를 해결할것 같습니다.

     

    답변 주셔서 감사합니다.

  • ?
    makersweb 2020.02.19 08:53

    의견 공유 감사합니다.ㅎㅎ


  1. No Image notice

    Qt프로그래밍(QtQuick) Beginner를 위한 글 읽는 순서

    Date2019.01.05 CategoryQML and Qt Quick By운영자 Views131086
    read more
  2. No Image

    컨테이너에 적재된 객체를 편리하게 삭제하기

    Date2019.09.18 CategoryGeneral and Desktop Bymakersweb Views7034
    Read More
  3. C++로 구현된 모델을 QML의 ListView에서 참조

    Date2019.09.07 CategoryQML and Qt Quick Bymakersweb Views10323
    Read More
  4. No Image

    QSocketNotifier로 파일 디스크립터의 활동감지

    Date2019.08.28 CategoryQML and Qt Quick Bymakersweb Views9184
    Read More
  5. No Image

    MCU용 Qt에 대해서

    Date2019.08.22 CategoryMobile and Embedded Bymakersweb Views7405
    Read More
  6. [Qt News] Qt for Python을 위한 기술 비전

    Date2019.08.20 CategoryGeneral and Desktop Byj2doll Views10127
    Read More
  7. No Image

    열거형(enum)을 QML에서 사용하는 방법과 문자열(QString)로 얻기

    Date2019.08.20 CategoryQML and Qt Quick Bymakersweb Views10760
    Read More
  8. No Image

    [Qt News] Qt 6 기술 비전 (Technical vision for Qt 6)

    Date2019.08.08 CategoryGeneral and Desktop Byj2doll Views8175
    Read More
  9. No Image

    [Qt News] Qt6 Git 개발 초기 단계 시작하기

    Date2019.08.02 CategoryInstallation and Deployment Byj2doll Views9604
    Read More
  10. No Image

    [Qt] Google Play의 향후 요구 사항을 준수하는 방법

    Date2019.07.29 CategoryQML and Qt Quick Byj2doll Views9160
    Read More
  11. No Image

    Qt기반의 오픈소스 프로젝트들 - 2

    Date2019.07.21 CategoryGeneral and Desktop By운영자 Views11739
    Read More
  12. No Image

    QML, 이미지, 폰트등을 바이너리 리소스로 만들기

    Date2019.06.24 CategoryInstallation and Deployment Bymakersweb Views8389
    Read More
  13. Qt Creator에서 임베디드 장치로 deploy설정(Custom Process Step)

    Date2019.06.15 CategoryInstallation and Deployment Bymakersweb Views9170
    Read More
  14. Qt Quick Controls 2사용 및 스타일 설정

    Date2019.06.07 CategoryQML and Qt Quick Bymakersweb Views11950
    Read More
  15. No Image

    QML 강좌 - 동적 Listing (ListView)

    Date2019.06.01 CategoryQML and Qt Quick Bymakersweb Views15143
    Read More
  16. QtInstallerFramework로 온라인 설치프로그램(Online Installer)만드는 방법

    Date2019.05.28 CategoryInstallation and Deployment Bymakersweb Views12624
    Read More
  17. QtCreator Design으로 GUI만들기 (QML로 만드는 Hello World -2)

    Date2019.05.26 CategoryQML and Qt Quick Bymakersweb Views23627
    Read More
  18. No Image

    QML에서 멀티 스레드(multithreading) 프로그래밍

    Date2019.05.25 CategoryQML and Qt Quick Bymakersweb Views8085
    Read More
  19. No Image

    QtSerialPort를 사용한 시리얼(Serial)통신

    Date2019.05.21 CategoryGeneral and Desktop Bymakersweb Views21344
    Read More
  20. No Image

    Qt기반의 오픈소스 프로젝트들

    Date2019.05.15 CategoryGeneral and Desktop Bymakersweb Views11057
    Read More
  21. No Image

    Q_D매크로와 d-pointer

    Date2019.05.07 CategoryGeneral and Desktop Bymakersweb Views7527
    Read More
Board Pagination Prev 1 4 5 6 7 8 9 Next
/ 9