기본 콘텐츠로 건너뛰기

라벨이 등록 에러인 게시물 표시

[윈도우즈 서비스] 설치 파일 만들기(WIX) - #4

이제 윈도우즈 서비스를 다 만들었기 때문에 설치 파일을 만들어 보겠습니다. 저희 같은 경우에는 불특정 다수의 PC에 설치하는 것이 아니고 서버에만 설치하면 되기 때문에 파일을 서버에 복사한 뒤 [윈도우즈 서비스] Console 실행 - #1 에서 설명한 방식대로 서비스를 등록해도 됩니다. 하지만 설치 파일을 만들면 이러한 작업을 자동으로 해주기 때문에 번거로운 작업을 하지 않아도 됩니다. WIX를 이용하여 윈도우즈 서비스를 등록하는 방법을 알아보도록 하겠습니다. How To: Install a Windows service To install a Windows service, use the  ServiceInstall  element. Other configuration can be made using the  ServiceControl  element and the  ServiceConfig  element from WixUtilExtension. Step 1: Install the service The  ServiceInstall  element contains the basic information about the service to install. This element should be the child of a  Component  element whose key path is a sibling  File  element that specifies the service executable file. Tip:  to specify a system account, such as LocalService or NetworkService, use the prefix  NT AUTHORITY . For example, use  NT AUTHORITY\LocalService  as the...