差異處
這裏顯示兩個版本的差異處。
java:installanywhere:slashinstallpathproblemonwindows [2016/02/03 17:38] tony [Problem] |
java:installanywhere:slashinstallpathproblemonwindows [2023/06/25 09:48] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | {{tag>InstallAnywhere java}} | ||
- | ====== Forward-Slash的安裝路徑,在Windows上無法正常反安裝 ====== | ||
- | ===== Problem ===== | ||
- | 在Windows上,silent mode properties中的USER_INSTALL_DIR,建議使用double backward-slash去當分隔號: | ||
- | <code> | ||
- | USER_INSTALL_DIR=C:\\Product\\Sub-Product1 | ||
- | </code> | ||
- | 然而有時為了和Linux一致,會改用: | ||
- | <code> | ||
- | USER_INSTALL_DIR=C:/Product/Sub-Product1 | ||
- | </code> | ||
- | 透過2008產生的Installer使用起來相當正常,而在2015則會發生無法移除的問題:\\ | ||
- | {{:java:installanywhere:ia_no_product_id.png|}}\\ | ||
- | \\ | ||
- | 在移除資料夾後,按新增移除程式的移除可能會發生以下錯誤:\\ | ||
- | {{:java:installanywhere:ia_cant_uninstall_add_remove_panel.png|}}\\ | ||
- | \\ | ||
- | 發生這個問題後,我是直接刪除以下Registry好重新安裝: | ||
- | <code> | ||
- | HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\${MyProduct} | ||
- | </code> | ||
- | ===== Reference ===== | ||
- | * [[https://community.flexerasoftware.com/showthread.php?176519-Evaluate-empty-string|如何使用空字串?]] | ||
- | * [[http://www.jb51.net/article/53022.htm|如何在windows batch echo不跳行?]] | ||
- | ===== ===== | ||
- | ---- | ||
- | \\ | ||
- | ~~DISQUS~~ |