2010年6月1日 星期二

NSIS Sections

NSIS的安裝與移除由許多的Sections所構成。Section的名稱若是安裝的部份,則用一般名稱即可,例如:"Section1"。若為移除的部份,則名稱前面加"un.",例如:"un.Section1"。
在自訂頁面的選項加入Page components即出現Section選取的畫面。

若要使Section3消失在頁面,可在名稱中加"-",
例如:
Section "-Section3"
SectionEnd


即消失在頁面中,且在執行Installer中會執行Section3的部份。

若要使Section1必勾選,則加入"SectionIn RO"。如下:
Section "Section1"
SectionIn RO #Read Only
SectionEnd


若要使Section2預設沒勾選,則在Section後加"/o"。如下:
Section /o "Section2"
SectionEnd



沒有留言:

張貼留言