{"id":122,"date":"2010-04-17T23:02:08","date_gmt":"2010-04-18T08:02:08","guid":{"rendered":"\/blog\/?p=122"},"modified":"2023-09-21T09:39:22","modified_gmt":"2023-09-21T00:39:22","slug":"nsis-%eb%b0%b0%ed%8f%ac-%ed%94%84%eb%a1%9c%ea%b7%b8%eb%9e%a8-%eb%a7%8c%eb%93%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=122","title":{"rendered":"NSIS-\ubc30\ud3ec \ud504\ub85c\uadf8\ub7a8 \ub9cc\ub4e4\uae30"},"content":{"rendered":"\n<P align=left><STRONG><SPAN style=\"FONT-SIZE: 12pt\"><SPAN style=\"FONT-SIZE: 12pt\">\u203b <\/SPAN>\ub2e4\uc6b4\ub85c\ub4dc<\/SPAN><\/STRONG> (\uc644\uc804 \ubb34\ub8cc)<\/P>\n<P><a class=\"con_link\" href=\"http:\/\/nsis.sourceforge.net\/\" target=\"_blank\" rel=\"noopener\">http:\/\/nsis.sourceforge.net\/<\/A><\/P>\n<P>\uc124\uce58 \ud6c4 \uc544\ub798 \uc608\uc81c\ub97c \ub530\ub77c\ud558\uba74 \uc27d\uac8c \ubc30\ud3ec \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub2e4.<\/P>\n<P>&nbsp;<\/P>\n<P><STRONG><SPAN style=\"FONT-SIZE: 12pt\">\u203b \uc608\uc81c<\/SPAN><\/STRONG><\/P>\n<P>&nbsp;<\/P>\n<P>1. \ud3f4\ub354 \uc0dd\uc131<\/P>\n<P>&nbsp; 1.1 \ubc30\ud3ec \ud504\ub85c\uadf8\ub7a8\uc5d0 \ud3ec\ud568\ub418\ub294 \ud30c\uc77c\uc774 \uc788\ub294 \ud3f4\ub354\ub97c \ub9cc\ub4e0\ub2e4.<\/P>\n<P>&nbsp; &nbsp; &nbsp;&nbsp; c:\\NSIS Test\\SourceFile<\/P>\n<P>&nbsp; &nbsp; 1.1.1 \ud3f4\ub354\ub97c \uc0dd\uc131\ud558\uace0 \ubc30\ud3ec \ud30c\uc77c\uc744 \ub9cc\ub4e0\ub2e4. \ub9c8\uc6b0\uc2a4 \uc624\ub978\ucabd \ubc84\ud2bc\uc73c\ub85c \ubcf4\uc774\ub294 \uba54\ub274\uc5d0\uc11c \"\uc0c8\ub85c \ub9cc\ub4e4\uae30&gt;\ud14d\uc2a4\ud2b8 \ubb38\uc11c\"\ub85c \uc77c\ubc18 \ud14d\uc2a4\ud2b8 \ubb38\uc11c\ub97c \ub9cc\ub4e4\uace0 \uac01\uac01 \ud14d\uc2a4\ud2b8\ud30c\uc77c\uc548\uc5d0 \uc784\uc758\uc758 \ubb38\uc790\ub97c \uc4f4\ub2e4.<\/P>\n<P>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; a.txt<\/P>\n<P>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; b.txt<\/P>\n<P>&nbsp; 1.2 \ubc30\ud3ec \ud504\ub85c\uadf8\ub7a8\uc774 \uc0dd\uc131\ub418\ub294 \ud3f4\ub354\ub97c \ub9cc\ub4e0\ub2e4.<\/P>\n<P>&nbsp; &nbsp; &nbsp;&nbsp; c:\\NSIS Test\\InstallFile<\/P>\n<P> <\/P>\n<P><SPAN style=\"FONT-SIZE: 12pt\"><\/SPAN>&nbsp;<\/P>\n<P>2. \uc608\uc81c NSIS \uc2a4\ud06c\ub9bd\ud2b8 \ubcf5\uc0ac<\/P>\n<P>&nbsp; 2.1 NSIS\ub97c \uc2e4\ud589\ud55c\ub2e4. (\uc2dc\uc791&gt;\ud504\ub85c\uadf8\ub7a8&gt;NSIS)<\/P>\n<P>&nbsp; &nbsp; &nbsp;&nbsp; \ube68\uac04\uc0c9 \uc0c1\uc790 \ubd80\ubd84\uc744 \ud074\ub9ad\ud558\uba74 \uc608\uc81c \uc2a4\ud06c\ub9bd\ud2b8\uac00 \uc788\ub294 \ud3f4\ub354\uac00 \uc5f4\ub9b0\ub2e4.<\/P>\n<BLOCKQUOTE style=\"MARGIN-RIGHT: 0px\" dir=ltr>\n<P align=left><IMG style=\"CURSOR: pointer\" onclick=\"popview(this, '90000003_000000000000000DFC0A6B7F')\" src=\"http:\/\/blogfiles13.naver.net\/data32\/2008\/2\/22\/108\/00_dajean.jpg\" width=547 height=334><\/P><\/BLOCKQUOTE>\n<P dir=ltr align=left>&nbsp; 2.2 \uc5f4\ub9b0 \ud0d0\uc0c9\uae30\uc5d0\uc11c StartMenu&gt;Example.nsi \ud30c\uc77c\uc744 \ubcf5\uc0ac\ud574\uc11c c:\\NSIS Test\\InstallFile \ud3f4\ub354\uc5d0 Install.nsi\ub85c \uc800\uc7a5\ud55c\ub2e4.<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>3. NSIS \uc2a4\ud06c\ub9bd\ud2b8 \uc5f4\uae30<\/P>\n<P dir=ltr align=left>&nbsp; 3.1 Compiler \uc2e4\ud589 : \ube68\uac04\uc0c9 \uc0c1\uc790 \ubd80\ubd84\uc744 \ud074\ub9ad\ud558\uba74 NSIS Complier\uac00 \uc2e4\ud589\ub41c\ub2e4.<\/P>\n<BLOCKQUOTE style=\"MARGIN-RIGHT: 0px\" dir=ltr>\n<P dir=ltr align=left><SPAN style=\"FONT-SIZE: 12pt\"><SPAN style=\"FONT-SIZE: 12pt\"><IMG style=\"CURSOR: pointer\" onclick=\"popview(this, '90000003_000000000000000DFC0A6B7F')\" src=\"http:\/\/blogfiles8.naver.net\/data32\/2008\/2\/22\/23\/01_dajean.jpg\" width=547 height=334><\/SPAN><\/SPAN><\/P>\n<P dir=ltr align=left><SPAN style=\"FONT-SIZE: 12pt\"><\/SPAN>&nbsp;<\/P>\n<P dir=ltr align=left><SPAN style=\"FONT-SIZE: 12pt\"><SPAN style=\"FONT-SIZE: 12pt\"><IMG style=\"CURSOR: pointer\" onclick=\"popview(this, '90000003_000000000000000DFC0A6B7F')\" src=\"http:\/\/blogfiles5.naver.net\/data33\/2008\/2\/22\/20\/02_dajean.jpg\" width=547 height=442><\/SPAN><\/SPAN><\/P><\/BLOCKQUOTE>\n<P dir=ltr align=left>&nbsp; 3.2 c:\\NSIS Test\\InstallFile \ud3f4\ub354\uc5d0 Install.nsi \ud30c\uc77c\uc744 \"\ud30c\uc77c&gt;Load Script...\"\ub85c \uc5f4\uac70\ub098 \ud0d0\uc0c9\uae30\uc5d0\uc11c \ub4dc\ub798\uadf8 &amp; \ub4dc\ub78d\uc73c\ub85c Compiler\uc5d0\uc11c \uc2a4\ud06c\ub9bd\ud2b8\uc758 \uc2e4\ud589\uc744 \ud655\uc778\ud560 \uc218 \uc788\ub2e4. Test Install \ubc84\ud2bc\uc744 \ub204\ub974\uba74 \uac00\uc0c1\uc73c\ub85c \ud504\ub85c\uadf8\ub7a8\uc774 \uc2e4\ud589 \ub41c\ub2e4.<\/P>\n<BLOCKQUOTE style=\"MARGIN-RIGHT: 0px\" dir=ltr>\n<P dir=ltr align=left><IMG style=\"CURSOR: pointer\" onclick=\"popview(this, '90000003_000000000000000DFC0A6B7F')\" src=\"http:\/\/blogfiles5.naver.net\/data32\/2008\/2\/22\/20\/03_dajean.jpg\" width=547 height=442><\/P><\/BLOCKQUOTE>\n<P dir=ltr align=left>&nbsp; 3.3 \"Script&gt;Edit Scrit\"\ub97c \uc120\ud0dd\ud558\uac70\ub098 \"Ctrl+E\"\ub97c \ub204\ub974\uba74 \uba54\ubaa8\uc7a5\uc774 \uc5f4\ub9ac\uace0 \uc2a4\ud06c\ub9bd\ud2b8\uc758 \uc18c\uc2a4\ub97c \ubcfc \uc218 \uc788\ub2e4. <\/P>\n<P dir=ltr align=left>&nbsp; 3.4 c:\\NSIS Test\\InstallFile \ud3f4\ub354\uc5d0 \ubcf4\uba74 Compiler\uc5d0\uc11c \uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589\uacfc \ud568\uaed8 StartMenu Test.exe \ud30c\uc77c \uc0dd\uc131\ub418\ub294 \uac83\uc744 \uc54c \uc218 \uc788\ub2e4.<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>4. NSIS \uc2a4\ud06c\ub9bd\ud2b8 \uc218\uc815<\/P>\n<P dir=ltr align=left># &nbsp; : \uc8fc\uc11d<\/P>\n<P dir=ltr align=left>-&gt; : \uc218\uc815<\/P>\n<P dir=ltr align=left>\uae00\uc790\uc0c9\uc774 \ud68c\uc0c9\uc778 \ubd80\ubd84\uc740 \uc0ad\uc81c\ud55c\ub2e4.<\/P>\n<P dir=ltr align=left>\uad75\uc740 \uae00\uc790\ub294 \uc218\uc815\ub418\ub294 \ubd80\ubd84\uc774\ub2e4.<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left><FONT color=#9a9a9a>Name \"StartMenu.dll test\"<\/FONT><\/P>\n<P dir=ltr align=left>-&gt; <STRONG>Name \"\ub300\ud55c\ubbfc\uad6d\"<\/STRONG><\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left><FONT color=#9a9a9a>OutFile \"StartMenu Test.exe\"<\/FONT><\/P>\n<P dir=ltr align=left>-&gt; <STRONG>OutFile \"Install.exe\"<\/STRONG><\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>XPStyle on<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>Page directory<\/P>\n<P dir=ltr align=left><br \/><FONT color=#9a9a9a>DirText \"This installer will create some shortcuts to MakeNSIS in the start menu.$\\nFor this it needs NSIS's path.\" \\<\/FONT><\/P>\n<P dir=ltr align=left>-&gt; <STRONG>DirText \"a.txt b.txt \ud30c\uc77c\uc744 \uc124\uce58\ud569\ub2c8\ub2e4.$\\n\uc131\uacf5\ud560\uae4c\uc694?\" \\<br \/><\/STRONG>&nbsp; <FONT color=#9a9a9a>\"Please specify the path in which you have installed NSIS:\"<\/FONT><\/P>\n<P dir=ltr align=left>-&gt; <STRONG>\"\uc124\uce58\ud560 \ud3f4\ub354\ub97c \uc120\ud0dd\ud558\uc138\uc694.\"<br \/><\/STRONG><FONT color=#9a9a9a>InstallDir \"${NSISDIR}\"<\/FONT><\/P>\n<P dir=ltr align=left>-&gt; <STRONG>InstallDir \"$PROGRAMFILES\\Test\"<br \/><\/STRONG><\/P>\n<P dir=ltr align=left><FONT color=#9a9a9a>Function .onVerifyInstDir<br \/>&nbsp;IfFileExists $INSTDIR\\makensis.exe +2<br \/>&nbsp; Abort<br \/>FunctionEnd<\/FONT><\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>Page custom StartMenuGroupSelect \"\" \": Start Menu Folder\"<br \/>Function StartMenuGroupSelect<br \/>&nbsp;Push $R1<\/P>\n<P dir=ltr align=left>&nbsp;<FONT color=#9a9a9a>StartMenu::Select \/checknoshortcuts \"Don't create a start menu folder\" \/autoadd \/lastused $R0 \"StartMenu.dll test\"<\/FONT><br \/>-&gt; <STRONG>StartMenu::Select \/checknoshortcuts \"\ud504\ub85c\uadf8\ub7a8\uc744 \ub4f1\ub85d\ud558\uc9c0 \uc54a\uace0 \uc124\uce58\" \/autoadd \/lastused $R0 \"Test \ud504\ub85c\uadf8\ub7a8\"<\/STRONG>&nbsp;<\/P>\n<P dir=ltr align=left>Pop $R1<\/P>\n<P dir=ltr align=left>&nbsp;StrCmp $R1 \"success\" success<br \/>&nbsp;StrCmp $R1 \"cancel\" done<br \/>&nbsp; ; error<br \/>&nbsp; MessageBox MB_OK $R1<br \/>&nbsp; <FONT color=#9a9a9a>StrCpy $R0 \"StartMenu.dll test\" # use default<\/FONT><br \/><STRONG>&nbsp; -&gt; StrCpy $R0 \"Test \ud504\ub85c\uadf8\ub7a8\" # use default<\/STRONG><\/P>\n<P dir=ltr align=left>&nbsp; Return<br \/>&nbsp;success:<br \/>&nbsp;Pop $R0<\/P>\n<P dir=ltr align=left>&nbsp;done:<br \/>&nbsp;Pop $R1<br \/>FunctionEnd<\/P>\n<P dir=ltr align=left>Page instfiles<br \/>Section<br \/>&nbsp;# this part is only necessary if you used \/checknoshortcuts<br \/>&nbsp;StrCpy $R1 $R0 1<br \/>&nbsp;StrCmp $R1 \"&gt;\" skip<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left><FONT color=#9a9a9a>&nbsp; CreateDirectory $SMPROGRAMS\\$R0<br \/>&nbsp; CreateShortCut $SMPROGRAMS\\$R0\\MakeNSISw.lnk $INSTDIR\\makensisw.exe<\/FONT><\/P>\n<P dir=ltr align=left><FONT color=#9a9a9a>&nbsp; SetShellVarContext All<br \/>&nbsp; CreateDirectory $SMPROGRAMS\\$R0<br \/>&nbsp; CreateShortCut \"$SMPROGRAMS\\$R0\\All users MakeNSISw.lnk\" $INSTDIR\\makensisw.exe<\/FONT><\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>&nbsp; CreateDirectory $SMPROGRAMS\\$R0<br \/>&nbsp; CreateShortCut \"$SMPROGRAMS\\$R0\\a.txt \uc5f4\uae30.lnk\" \"$INSTDIR\\a.txt\"<\/P>\n<P dir=ltr align=left>&nbsp; CreateShortCut \"$SMPROGRAMS\\$R0\\b.txt \uc5f4\uae30.lnk\" \"$INSTDIR\\b.txt\"<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>&nbsp; &nbsp; &nbsp; &nbsp; SetOutPath $INSTDIR<br \/>&nbsp; &nbsp; &nbsp; &nbsp; File \".\\..\\SourceFile\\a.txt\"<br \/>&nbsp; &nbsp; &nbsp; &nbsp; File \".\\..\\SourceFile\\b.txt\"<\/P>\n<P dir=ltr align=left><br \/>&nbsp;skip:<br \/>SectionEnd<\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>5. NSIS \uc2a4\ud06c\ub9bd\ud2b8 Compile<\/P>\n<P dir=ltr align=left>&nbsp; 5.1 Install.nsi \uc2a4\ud06c\ub9bd\ud2b8 \ud30c\uc77c\uc744 Compile \ud55c\ub2e4.(3\ubc88 \ucc38\uace0) Complier\ub97c \uc2e4\ud589\ud558\uace0 Install.nsi\ub97c \uc5f4\uc73c\uba74 \uc790\ub3d9\uc73c\ub85c \ucef4\ud30c\uc77c\ub41c\ub2e4. <\/P>\n<P dir=ltr align=left>&nbsp;<\/P>\n<P dir=ltr align=left>6. \uc644\ub8cc<\/P>\n<P dir=ltr align=left>c:\\NSIS Test\\InstallFile \ud3f4\ub354\uc5d0 Install.exe \ud30c\uc77c\uc744 \uc2e4\ud589\ud558\uc5ec \ud655\uc778\ud55c\ub2e4.<\/P>\n","protected":false},"excerpt":{"rendered":"<p>\u203b \ub2e4\uc6b4\ub85c\ub4dc (\uc644\uc804 \ubb34\ub8cc) http:\/\/nsis.sourceforge.net\/ \uc124\uce58 \ud6c4 \uc544\ub798 \uc608\uc81c\ub97c \ub530\ub77c\ud558\uba74 \uc27d\uac8c \ubc30\ud3ec \ud504\ub85c\uadf8\ub7a8\uc744 \ub9cc\ub4e4 \uc218 \uc788\ub2e4. &nbsp; \u203b \uc608\uc81c &nbsp; 1. \ud3f4\ub354 \uc0dd\uc131 &nbsp; 1.1 \ubc30\ud3ec \ud504\ub85c\uadf8\ub7a8\uc5d0 \ud3ec\ud568\ub418\ub294 \ud30c\uc77c\uc774 \uc788\ub294 \ud3f4\ub354\ub97c \ub9cc\ub4e0\ub2e4. &nbsp; &nbsp; &nbsp;&nbsp; c:\\NSIS Test\\SourceFile &nbsp; &nbsp; 1.1.1 \ud3f4\ub354\ub97c \uc0dd\uc131\ud558\uace0 \ubc30\ud3ec \ud30c\uc77c\uc744 \ub9cc\ub4e0\ub2e4. \ub9c8\uc6b0\uc2a4 \uc624\ub978\ucabd \ubc84\ud2bc\uc73c\ub85c \ubcf4\uc774\ub294 \uba54\ub274\uc5d0\uc11c &#8220;\uc0c8\ub85c \ub9cc\ub4e4\uae30&gt;\ud14d\uc2a4\ud2b8 \ubb38\uc11c&#8221;\ub85c \uc77c\ubc18 \ud14d\uc2a4\ud2b8 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[17],"tags":[],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-development_dev_tools"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}