MSIEXEC: “Executing op: ShortcutRemove” step is very slow

守給你的承諾、 提交于 2021-02-10 14:22:03

问题


We have ".msi" installation package.
I try to uninstall it with appropriate commnd:

MsiExec.exe /x{5D719E68-C010-4DD9-A1C3-7BC1581781F0} /lv log.txt

In the log I see follow records:

MSI (s) (D4:14) [17:38:41:595]: Executing op: ShortcutRemove(Name=n80p5njq|Sample Playlist Transcoding)
MSI (s) (D4:14) [17:38:41:601]: Verifying accessibility of file: Sample Playlist Transcoding.lnk
MSI (s) (D4:14) [17:38:41:602]: Using source file security for destination.
MSI (s) (D4:14) [17:38:41:602]: Note: 1: 2318 2: C:\Config.Msi\b5120.rbf 
MSI (s) (D4:14) [17:38:46:847]: Executing op: ShortcutRemove(Name=8vdz7yeg|Sample Writer)
MSI (s) (D4:14) [17:38:46:853]: Verifying accessibility of file: Sample Writer.lnk
MSI (s) (D4:14) [17:38:46:855]: Using source file security for destination.
MSI (s) (D4:14) [17:38:46:856]: Note: 1: 2318 2: C:\Config.Msi\b5121.rbf 

All steps are taken acceptable interval except "ShortcutRemove".
What can I do, for increase the speed of uninstall process?


回答1:


Question: A few questions:

  • If you remove the shortcuts in a test version, is the uninstall quick?
  • Is the binary on some embedded device?
  • Does the shortcut point to a URL, a local path, a network path or some other resource - like a mapped drive letter?
  • If you do a major upgrade, is that equally slow to uninstall?
  • Is the behavior different if the embedded device (if any) is connected and not in sleep or hibernation mode while you uninstall?

Need For Speed: I have some general "MSI speed improvement suggestions" here in this old answer from serverfault.com: How can I speed up MSI package install and uninstall?

I would try the MSIFASTINSTALL property and set it to either 3 or 7.


Debug Logging (Verbose): You can sometimes get better information by using a debugging logging option. Here is a command line to use advanced, slow logging for maximum details captured:

msiexec.exe /i C:\Path\Your.msi /L*vx! C:\Path\Your.log

Logging Links: Here is more information and links on MSI logging: Enable installation logs for MSI installer without any command line arguments - this also contains a parameter explanation section for the command line used above. Please check it out. Also check the section "Interpreting MSI Log Files".


Links:

  • Uninstalling an MSI file from the command line without using msiexec (various ways to uninstall)


来源:https://stackoverflow.com/questions/57926701/msiexec-executing-op-shortcutremove-step-is-very-slow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!