<span =“apple-style-span” style="font-family: arial, helvetica, sans-serif; font-size: 12px; ">有三個設定步驟來建立一個可在安裝完成後執行一個執行檔的安裝檔。
- 將執行檔加入專案:
- 開啟此應用程式的 Project Explorer 視窗。
- 在 My Computer 上按右鍵,選擇 Add File.
- 瀏覽至欲在安裝完成後執行的執行檔,按下 Add File 按鈕。
這個可執行檔將會出現在 Project Explorer 視窗中的 My Computer 下的列表。
- 將此可執行檔包含至安裝檔中:
- 在 Project Explorer 視窗中的 Build Specifications 上按右鍵,選擇 New » Installer。
- 在Category 列表的左側選擇 Source Files 。
- 在 Project View 展開 My Computer 。
- 在展開的列表中的這個可執行檔上按左鍵,在 Destination View 中確認被選擇的目的地是在專案資料夾中。
- 在 Project View 與 Destination View 視窗中間的藍色箭頭上按左鍵以將此可執行檔傳至目的地專案資料夾。
此時還不要離開 Installer Properties 視窗。
- 設定安裝檔,使其在安裝完成後執行此執行檔:
- 在 Category 列表的左側選擇 Advanced 。
- 在 Advanced dialog 視窗 Launch Executable After Installation 的部份,有兩個按鈕在執行檔檔案路徑顯示的右側。在 Add Executable 按鈕按下左鍵。
- 從專案列表中選擇此執行檔,並按下 OK。
注意可執行檔路徑目前顯示在 Executable 視窗, Command Line Arguments 顯示窗格現在可以打入指令。