[英]Uninstall a previous Installed msi created through cx_freeze bdist_msi
托馬斯K的答案很接近,但至少在我的情況下,並不確切。 經過一些試驗和錯誤后,我發現GUID需要用大括號括起來:
bdist_msi_options = {
"upgrade_code": "{96a85bac-52af-4019-9e94-3afcc9e1ad0c}"
}
並且這些選項需要與“build_exe”選項一起傳遞(一些在線示例使用其他名稱作為這些參數,但我發現只有bdist_msi可用):
setup( # name, version, description, etc...
options={"build_exe": build_exe_options, # defined elsewhere
"bdist_msi": bdist_msi_options},
executables=[Executable("run.py",
base="win32GUI",
shortcutName="My Program name",
shortcutDir='ProgramMenuFolder')])
使用此代碼,在我的情況下,以前的安裝程序已正確卸載並從添加/刪除程序列表中刪除。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.