NGT 進銷存 v1.0.0
Windows 10/11 · Intel/AMD x64 · 安裝與連線說明
已完成真正 Windows 10/11 電腦的實機驗收。
目前此程式尚未加入 Windows 發行者數位簽章。如需要有 Windows 發行者數位簽章的版本,請聯絡 info@ngtitai.com。
1. 安裝之前
- 需要 Windows 10 1809(組建 17763)以上或 Windows 11,Intel/AMD 64 位元。非 32 位元、非 Windows ARM 版。建議使用仍受安全更新支援的 Windows。
- 建議預留至少 2 GB 本機空間,並另留照片、縮圖、日常備份的成長空間。安裝程式會依實際封包大小、既有資料庫及剩餘空間再檢查。
- 使用將來要執行 NGT 主機的 Windows 帳號安裝。一般安裝不用系統管理員,不需另裝 Python、PostgreSQL 或 SQLite 伺服器。
- 請勿以「使用其他管理員帳號執行」安裝;否則會裝到該管理員的個人資料夾。程式與正式資料不要放在 OneDrive、網路磁碟或共用同步資料夾。
- 若已有舊版,先從舊版「備份與維運」製作含照片的完整備份,再儲存所有表單,從 Windows 通知區選擇「結束主機」。安裝程式不會強制關閉主機。
- 本版本尚未加入 Windows 發行者數位簽章,Windows 可能顯示 Microsoft Defender SmartScreen 警示。請先確認安裝程式下載自 www.ngtitai.com 或 download.ngtitai.com。確認來源後,若警示畫面提供「其他資訊 → 仍要執行(Run anyway)」,即可選擇繼續安裝。
2. 執行安裝精靈
- 執行
NGTInventory_Setup_1.0.0_Windows10-11_x64.exe,選擇繁體中文或 English。 - 確認「安裝位置與資料保留」。這是目前 Windows 使用者的固定安全位置;不寫入 Program Files 或其他人的資料夾。
- 選擇是否建立桌面捷徑,按「安裝」。安裝前會先測試磁碟空間、SQLite WAL,以及照片、縮圖與備份資料夾的實際寫入權限;有既有資料庫則建立資料庫與根目錄設定的安裝前快照。
- 完成後從「開始」→「NGT Inventory」→「NGT 進銷存」啟動。安裝結束頁的立即啟動選項預設不勾選。
- 若出現 SmartScreen 警示,請參考「安裝之前」第 6 項。
3. 開啟及首次登入
- 開啟後主機在 Windows 右下方通知區常駐,圖示可能在「顯示隱藏的圖示」內。按圖示/右鍵選擇「開啟 NGT 進銷存」,在瀏覽器操作。
- 本機預設網址為
http://127.0.0.1:5010。初始帳號 admin,密碼 NGT123;首次登入須變更密碼,也可改帳號名稱,沿用同一帳號與權限,不另占名額。 - 預設角色為精簡模式 a 主管;免費方案為 2 個啟用帳號/50 項正式料件。自核功能由該主管在「我的帳號」自行啟用,預設不啟用。
- 可先開啟 Operation_demos.html 中英文操作示範,或程式內「說明」查看教學。
- 關閉瀏覽器不會結束主機。選擇通知區「結束主機」才安全停止;重新啟動及停止會等待進行中的工作完成。不要以工作管理員強制終止。
- 「登入電腦後自動啟動」由使用者自行勾選。這是登入後的通知區程式,非 Windows 系統服務;登出 Windows、休眠或關機會中斷其他裝置連線。
重新安裝時若偵測到舊資料,安裝精靈預設「沿用舊資料」,請使用原帳號密碼登入。需要完全重新開始時,可選「清除並首次設定」,再次確認後才會執行。清除前會完整備份到 %LOCALAPPDATA%\NGT\Inventory-reset-backups,備份或環境檢查失敗就不清除。清除會移除使用中目錄的帳號、單據、照片、縮圖、設定與授權,重新產生主機識別;付費授權可能需要重新申請。忘記密碼時,若已設定系統通知信及帳號 Email,可在主機電腦的通知區選「忘記密碼(寄送驗證碼)」。登入頁的「說明」提供操作指引。
4. 資料、照片及權限
| 內容 | 位置 |
|---|
| 程式 | %LOCALAPPDATA%\Programs\NGTInventory |
| 資料庫 | %LOCALAPPDATA%\NGT\Inventory\instance\ngt.sqlite3 |
| 照片(本機私人儲存) | %LOCALAPPDATA%\NGT\Inventory\instance\uploads |
| 縮圖 | %LOCALAPPDATA%\NGT\Inventory\instance\photo_thumbnails |
| 主機識別、設定及授權資料 | 同一 instance 及其 SQLite 資料庫內;不要刪除、換成別台主機的內容或只複製部分檔案。 |
| 備份與復原資料 | %LOCALAPPDATA%\NGT\Inventory\backups |
| 安裝前資料庫/設定快照 | backups\installer\日期_識別碼;不含照片的另份拷貝,照片與縮圖保留原處。 |
| 安裝檢查、執行紀錄 | %LOCALAPPDATA%\NGT\Inventory\setup-report.json
instance\desktop-host.log |
可將以上路徑貼到檔案總管網址列。資料沿用 Windows 個人資料夾權限,不開放 Everyone 寫入。Windows 管理員仍可能存取;這不代表資料已加密。SQLite 的 -wal、-shm 是正常運作檔案,不要手動刪除。
備份應定期另存安全的外部位置。不同 Windows 使用者有不同資料;不要在另一個 Windows 帳號重新建主機後誤以為資料消失。若使用 GCS/S3 等照片儲存,依主機儲存設定管理,不在本機 uploads 另留完整拷貝。
5. 公司區網與 iPhone
- 主機內選擇「系統管理 → 系統設定」,按需求設定公司區網主機模式,儲存並依提示安全重啟。
- 從通知區的「主機連線網址」查看目前網址,例如
http://192.168.1.20:5010。其他裝置不能用主機的 127.0.0.1。 - 只在信任的公司網路將 Windows 網路類型設為「私人」。若需要區網連線,從開始選單執行「公司區網防火牆設定」,同意管理員授權並輸入 YES。工具只允許此程式、私人網路、同一子網的 TCP 連線,不開放公用網路、不更改路由器。
- 其他電腦瀏覽器使用上述網址;iPhone 在主機與連線設定輸入相同網址,使用 NGT 帳號登入後下載資料。保持主機登入與運作、避免休眠;訪客 Wi-Fi 隔離或公司防火牆政策可能阻擋連線。
- Port 預設 5010,被占用不會自動改號。從通知區「主機 Port 設定」更改並安全重啟後,其他裝置須使用新網址;可依程式提示建立通知郵件。
- 本工具非網際網路/HTTPS 部署精靈;不要直接將 5010 轉發到公網。移除額外規則可在程式資料夾執行
Setup-LANFirewall.cmd -Remove,需管理員同意。解除安裝保留此規則,可先移除。
6. 更新與解除安裝
使用同一 Windows 帳號,先完整備份並安全結束 NGT,再執行新版相同系列安裝精靈。程式檔更新,資料目錄、照片、縮圖、主機識別與授權保留;首次開啟由主機執行必要的資料庫升級。不要複製舊版資料庫覆蓋新版或只降回舊 EXE。
安裝前快照是資料庫與根目錄設定快照,不能取代含照片的完整備份。若環境檢查或快照失敗,安裝在覆寫程式前停止;磁碟/硬體故障仍須從可靠完整備份復原。
舊的可攜版、不同 Windows 帳號或自訂 --instance-dir/外部資料庫位置不會自動搜尋搬移。請先確認舊資料及授權位置,透過既有備份/復原程序處理,不要讓新舊兩份同時寫同一資料庫。
在 Windows「設定 → 應用程式」解除安裝只移除程式、捷徑及屬於這份程式的登入自動啟動登錄,保留資料庫、照片、縮圖、授權及備份;同一 Windows 帳號重新安裝可續用。刪除 Windows 使用者或手動刪除資料夾會導致資料遺失。
7. 無法啟動時,也能取得紀錄
- 不必登入 NGT。開始選單「NGT Inventory → 收集檢查紀錄」,或安裝資料夾的
Collect-Diagnostics.cmd,將環境與現有執行/安裝紀錄拷貝到桌面。 - 紀錄工具不會複製資料庫、照片、私鑰或授權;分享前檢閱紀錄中的帳號、網址及錯誤內容。請提供錯誤畫面及檢查紀錄,不要提供密碼或整份 instance。
- 安裝精靈在正式安裝前顯示的失敗位置為
%LOCALAPPDATA%\NGT\Inventory\setup-report.json。若安裝前就被 Windows 封鎖,請提供 Windows 的提示畫面;此時可能尚無 NGT 紀錄。 - 若可登入,則進入「系統管理 → 系統檢查」查看詳細原因;503 保護模式不能用反覆刪除資料庫處理。先備份與保留現場資訊。
NGT Inventory v1.0.0
Windows 10 / 11 · Intel / AMD x64 · Installation and connection guide
Acceptance testing has been completed on a Windows 10/11 PC.
This release does not currently have a Windows publisher signature. For a version with a Windows publisher signature, contact info@ngtitai.com.
1. Before installation
- Windows 10 1809 (build 17763) or later, or Windows 11, Intel/AMD x64. Not 32-bit or Windows ARM. Prefer a Windows version receiving security updates.
- Keep at least 2 GB free locally, plus growing photo, thumbnail and backup space. Setup also checks actual package size, existing database size and available space.
- Install as the Windows user who will run the host. Normal installation needs no administrator, separate Python or database server. Do not run as another administrator account.
- Do not store the live database in OneDrive, network shares or synchronization folders.
- For an upgrade, make a full backup including photos, save open forms, then choose Exit host from the notification-area menu. Setup never force-kills the host.
- This release is unsigned, so Windows may display a Microsoft Defender SmartScreen warning. First confirm that you downloaded the installer from www.ngtitai.com or download.ngtitai.com. Once you have verified the source, you can choose More info → Run anyway to continue if those options are available.
2. Installation wizard
- Run
NGTInventory_Setup_1.0.0_Windows10-11_x64.exe and choose Traditional Chinese or English. - Review installation and data locations. These are fixed per-user locations; setup does not write the database into Program Files.
- Optionally select a desktop shortcut and choose Install. Setup checks disk space, SQLite WAL and write access to the photo, thumbnail and backup folders. It snapshots an existing database and its root configuration before replacing program files.
- Start → NGT Inventory → NGT 進銷存 opens the host after installation. The finish-page launch option is unchecked by default.
- If a SmartScreen warning appears, see item 6 under “Before installation.”
3. First launch and account
- The host stays in the Windows notification area, possibly under hidden icons. Click/right-click its icon and choose Open NGT Inventory to use a browser.
- Default local address:
http://127.0.0.1:5010. Initial login: admin / NGT123. Change the password at first sign-in; you may rename admin while retaining its identity, permissions and account slot. - Default role: Simple mode a supervisor. Free plan: 2 active accounts and 50 formal materials. Self-approval is off by default and can be enabled in My account by that supervisor.
- See the bilingual Operation_demos.html or in-app Help.
- Closing the browser leaves the host running. Choose Exit host to stop safely. Stop/restart waits for work to finish; do not force-end it in Task Manager.
- Start at login is optional. This is a tray application, not a Windows system service. Windows sign-out, sleep or shutdown interrupts other devices.
On reinstall, detected existing data is kept by default; sign in with the original credentials. To start over, select Clear data and start first-time setup and confirm again. A complete backup is verified under %LOCALAPPDATA%\NGT\Inventory-reset-backups before clearing. Failed checks or backup prevent deletion. Reset removes active accounts, documents, photos, thumbnails, settings and licenses and generates a new host identity; paid licenses may need reissuance. For forgotten credentials, choose Forgot password (email a code) from the host computer’s notification area if system email and your account email are configured. Sign-in Help explains the process.
4. Storage and permissions
| Item | Location |
|---|
| Program | %LOCALAPPDATA%\Programs\NGTInventory |
| Database | %LOCALAPPDATA%\NGT\Inventory\instance\ngt.sqlite3 |
| Local private photos | %LOCALAPPDATA%\NGT\Inventory\instance\uploads |
| Thumbnails | %LOCALAPPDATA%\NGT\Inventory\instance\photo_thumbnails |
| Identity, configuration and license data | The same instance directory and SQLite database. Do not remove or mix files from another host. |
| Backups and recovery | %LOCALAPPDATA%\NGT\Inventory\backups |
| Pre-install database/config snapshot | backups\installer\timestamp_identifier. Photos/thumbnails remain in place, not duplicated into this snapshot. |
| Diagnostics | %LOCALAPPDATA%\NGT\Inventory\setup-report.json
instance\desktop-host.log |
Paste these paths into File Explorer. Data inherits Windows profile permissions; setup does not grant Everyone write access. Windows administrators may still access it; this is not data encryption. SQLite -wal and -shm files are normal; never delete them manually.
Keep full backups in another safe location. A different Windows account has a separate data directory. Configured cloud photo storage uses its selected GCS/S3 backend instead of retaining a full local uploads copy.
5. LAN and iPhone connections
- In System → System settings, select company LAN host mode as appropriate, save and restart safely when prompted.
- Read the current Host connection URL from the tray, for example
http://192.168.1.20:5010. Other devices cannot use the host's 127.0.0.1 address. - Use Windows Private network only for a trusted company network. To allow LAN access, run the Start-menu LAN firewall tool, approve administrator access and type YES. It permits only this program, TCP, Private profile and LocalSubnet. It does not change Public networks or router settings.
- Other PCs open that URL in a browser. Enter the same URL in iPhone Host and connection settings, sign in with an NGT account and download data. Keep the host logged in and awake. Guest Wi-Fi isolation or organization policies may block access.
- Default port 5010 does not auto-change when occupied. Use tray Host port settings, restart safely and give other devices the new address. The app can prepare a member-notification email.
- This is not an internet/HTTPS deployment wizard. Do not forward 5010 directly to the internet. To remove the additional firewall rule, run
Setup-LANFirewall.cmd -Remove with administrator approval, preferably before uninstalling. Uninstall leaves that rule in place.
6. Updates and uninstallation
Use the same Windows account. Make a complete backup, safely exit NGT and run a newer installer from the same product family. Program files are replaced; database, photos, thumbnails, host identity and licenses are retained. The host performs required database migrations on its next launch. Do not downgrade by replacing only the EXE or overwriting a new database with an old one.
The pre-install snapshot covers the database and root configuration only, not a complete photo backup. If environment checks or snapshot fail, setup stops before replacing the program. Hardware/disk failure still requires a reliable complete backup.
Older portable installations, other Windows accounts and custom instance/database locations are not discovered or migrated automatically. Locate the old data and license and use the established backup/restore process. Never run two hosts writing the same SQLite file.
Windows Settings → Apps uninstalls program files, shortcuts and this installation's login-startup entry. Database, photos, thumbnails, identity, licenses and backups remain. Reinstall as the same Windows user to continue. Deleting the Windows profile or data folders destroys those retained files.
7. Diagnostics without signing in
- Use Start → NGT Inventory → Collect diagnostics, or
Collect-Diagnostics.cmd in the installation folder. It copies available environment, setup and host logs to your Desktop without requiring NGT login. - It does not copy databases, photos, private keys or licenses. Review logs for names, URLs and error details before sharing. Send the error screenshot and diagnostic logs, never passwords or the whole instance folder.
- Setup failures can be examined in
%LOCALAPPDATA%\NGT\Inventory\setup-report.json. If Windows blocks setup before it runs, NGT logs may not exist; capture that Windows warning. - If login works, open System → System checks for details. Do not delete the database to bypass a 503 protection-mode error. Preserve the evidence and backup.