Servigistics InService 部署 > 部署 Servigistics InService Offline 系統 > 用戶端組態 > 配置安裝程式
  
配置安裝程式
安裝 Servigistics InService Offline 伺服器之前,您必須先配置安裝程式,以便所有 Servigistics InService Offline 系統皆指向主要伺服器。您也必須定義離線系統是 Dealer 還是 Customer 類型的離線系統。這些是安裝離線系統之前的必要先決條件。您也可以選擇配置使回饋動作在已連線離線系統時正常運作。
要這樣做,請遵循下列步驟:
1. 導覽至以下目錄:<InS_Package>/media/
2. 更新下列檔案︰InS.properties。此檔案將用來覆寫安裝程式的預設設定,以便環境的正確設定能夠傳播至各個 Servigistics InService Offline 系統。
3. 修改下列內容,使其指向適當的伺服器位置:com.ptc.sc.data.updates.master.baseurl
4. 定義離線系統的類型,針對 Dealer 網路授權定義為 network,或針對 Customer 定義為 customer
針對 Dealer 網路授權︰
WC_XCONF.[codebase.war/wt.properties].com.ptc.sc.systemType=network
針對 Customer 授權︰
WC_XCONF.[codebase.war/wt.properties].com.ptc.sc.systemType=customer
5. 選擇性地修改下列內容,配置使「傳送回饋」動作在已連線離線系統時在其上能夠正常運作:
WC_XCONF.[codebase.war/wt.properties].wt.mail.mailhost=<mailhost>
WC_XCONF.[codebase.war/wt.properties].com.ptc.sc.preferences.feedbackRecipient= <feedbackRecipient>
其中,<mailhost> 是客戶伺服器的郵件主機名稱,<feedbackRecipient> 是回饋表單收件者的電子郵件地址的逗號分隔清單。
如果您選擇不修改上述這些內容,也可使用如配置離線系統的回饋偏好設定所述的其他組態選項之一。
* 
使用下列語法來配置內容:
WC_XCONF.[propertyfile].propertyname=propertyvalue
例如,
WC_XCONF.[codebase.war/wt.properties].com.ptc.sc.data.updates.master.baseurl=<URL>
其中,<URL> 是您主 Servigistics InService 系統的伺服器位置。
建立自訂 Servigistics InService Offline Installer 封裝
您可以建立自訂程式碼指令集,以便在 Servigistics InService 安裝期間執行。這些自訂指令集可以在安裝流程中執行自訂動作。這些指令集包括:
<InS_Installer_Package>/customizations/software/setup.bat
這些指令集存在於預設 Servigistics InService 離線安裝程式封裝中,您需要視需要更新。更新之後,將在 Servigistics InService 更新安裝中執行指令集。
建立離線安裝的自訂面板
欲將自訂安裝面板新增至 Servigistics InService 安裝程式,請遵循下列步驟︰
1. 導覽至以下目錄:<InS_Package>/media/
2. 將下列內容新增至 InS.properties
cp.enable=true
cp.header=ABC
cp.prop.label.1=Enter Property 1
cp.prop.key.1=keyProperty1
cp.prop.val.1=valProperty1
cp.prop.des.1=<path to properties file where we you want keyProperty1= valProperty1 stored w.r.t. InS_HOME>
cp.prop.label.2=Enter Property 2
cp.prop.key.2=keyProperty2
cp.prop.val.2=valProperty2
cp.prop.des.2=<path to properties file where we you want keyProperty2= valProperty2 stored w.r.t. InS_HOME>