| | 20 | * [結論] 光安裝就有點麻煩,得先裝 Eclipse 3.5 sr1 版本,然後還有 NSIS 、EclipseNSIS Plugin 要裝。若只是要產生安裝檔,似乎有點工程太大。加上仔細看了一下介紹,似乎都要寫 NSIS Script 腳本,EclipseNSIS 只是多了 !InstallOption 的介面設計工具罷了。所以還是改用指令好了~ |
| | 21 | * 在 Ubuntu 10.04 底下測試 NSIS 指令 - 其實只要找對範例程式,也不難寫啦~drbl-winroll 應該是用 nsExec 寫的。 |
| | 22 | {{{ |
| | 23 | ~$ sudo apt-get install nsis |
| | 24 | ~$ cp /usr/share/doc/nsis/Examples/nsExec/test.nsi . |
| | 25 | ~$ makensis test.nsi |
| | 26 | |
| | 27 | ... 略 ... |
| | 28 | Processed 1 file, writing output: |
| | 29 | Adding plug-ins initializing function... Done! |
| | 30 | Processing pages... Done! |
| | 31 | Removing unused resources... Done! |
| | 32 | Generating language tables... Done! |
| | 33 | |
| | 34 | Output: "nsExec Test.exe" |
| | 35 | Install: 2 pages (128 bytes), 3 sections (3144 bytes), 46 instructions (1288 bytes), 47 strings (946 bytes), 1 language table (198 bytes). |
| | 36 | Datablock optimizer saved 8092 bytes (~13.4%). |
| | 37 | |
| | 38 | Using zlib compression. |
| | 39 | |
| | 40 | EXE header size: 48128 / 50688 bytes |
| | 41 | Install code: 987 / 6032 bytes |
| | 42 | Install data: 4046 / 27660 bytes |
| | 43 | CRC (0x93CB145C): 4 / 4 bytes |
| | 44 | |
| | 45 | Total size: 53165 / 84384 bytes (63.0%) |
| | 46 | }}} |
| | 47 | * 如果要設計網路安裝版,倒也可以用 [http://nsis.sourceforge.net/Builtin_NSISdl_plug-in NSISdl] 這個 plugin 來開發。 |