我在MSI安裝程序中使用了Squirrel安裝程序。 MSI安裝程序調用Squirrel安裝程序。由於MSI安裝程序將在添加/刪除程序中具有條目,因此我想刪除(或不創建)由Squirrel安裝程序創建的條目。在不刪除Squirrel.Windows安裝程序中的應用程序的情況下刪除卸載條目
我所做的是在事件處理程序使用RemoveUninstallerRegistryEntry
爲onFirstRun
,但它給我以下錯誤:
Couldn't write uninstall icon, don't care: System.IO.IOException: Illegal operation attempted on a registry key that has been marked for deletion.
基於這個錯誤,我覺得我除去在錯誤的地方卸載項。應該刪除卸載條目的地方是什麼?或者有沒有辦法阻止Squirrel創建這些條目?
當我在安裝程序中使用'-s'標誌時,它將繼續並創建卸載程序條目,因爲它沒有運行第一次安裝。 – skjoshi