Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
public:computer:nsis [2022/07/20 15:09] – [Scripts] alex | public:computer:nsis [2022/07/20 17:05] (current) – alex | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== NSIS ====== | ====== NSIS ====== | ||
+ | > Make Install Package using Nullsoft Install System. | ||
===== Setting Environment ===== | ===== Setting Environment ===== | ||
Line 11: | Line 11: | ||
===== Preparing Files ===== | ===== Preparing Files ===== | ||
- | * 설치 패키지를 위한 파일을 준비한다. | + | * 설치 패키지를 위한 파일을 준비한다. |
- | * NSIS Script file; 설치 패키지를 만드는 스크립트, | + | * NSIS Script file; 설치 패키지를 만드는 스크립트, |
* Prepare files to install; 설치할 파일을 준비한다. | * Prepare files to install; 설치할 파일을 준비한다. | ||
- | * make 7z file into Input directory < | + | * make 7z file into Input directory; 생성한 ustra.7z 파일을 Input 디렉토리에 넣는다. |
├─tools | ├─tools | ||
│ ├─apache-maven-3.8.1 | │ ├─apache-maven-3.8.1 | ||
Line 28: | Line 28: | ||
</ | </ | ||
* Create Output Directory; 설치 패키지의 최종 결과 파일을 저장할 디렉토리를 생성한다. | * Create Output Directory; 설치 패키지의 최종 결과 파일을 저장할 디렉토리를 생성한다. | ||
- | * Structures; 설치 패키지를 위한 디렉토리 구조는 아래와 같다. < | + | * Structures; 설치 패키지를 위한 디렉토리 구조는 아래와 같다. < |
└─*.nsi | └─*.nsi | ||
| | ||
Line 38: | Line 38: | ||
===== Scripts ===== | ===== Scripts ===== | ||
- | * 스크립트를 작성한다. < | + | |
+ | | ||
; Script generated by the HM NIS Edit Script Wizard. | ; Script generated by the HM NIS Edit Script Wizard. | ||
Line 164: | Line 165: | ||
Function InstallNodejs | Function InstallNodejs | ||
; Install Node.js v12.22.9 | ; Install Node.js v12.22.9 | ||
+ | ReadRegStr $R0 HKLM " | ||
+ | |||
${If} $R0 == "" | ${If} $R0 == "" | ||
;ExecWait ' | ;ExecWait ' | ||
Line 285: | Line 288: | ||
===== Build & Test ===== | ===== Build & Test ===== | ||
- | * Build; 작성한 스크립트를 빌드한다. 오류가 없으면 설치 파일이 생성된다. | + | * Build; 작성한 스크립트를 빌드한다. 오류가 없으면 설치 파일이 생성된다. |
* Test on Windows | * Test on Windows | ||
* 설치 테스트를 위한 Windows 운영체제를 준비한다; | * 설치 테스트를 위한 Windows 운영체제를 준비한다; | ||
Line 310: | Line 313: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | * {{: |