存在主要問題。我讀到Rob M說盡可能使用Guid="*"
,所以我把所有的Guid都改成了這個。儘管現在卸載我的產品已經搞亂了。這些文件已成功刪除,但快捷方式,服務和註冊表不是。請幫助更改GUID - 現在卸載不能正常工作
這是我的服務:
<Component Id="service" Guid="*">
<File Id="service.exe" Name="service.exe" KeyPath="yes" Source="$(var.Bin)\service.exe"/>
<ServiceInstall Id="service.exe" Name="[PRODUCTNAME]" Description="[ProductName]" Account="[SERVICEACCOUNT]" Password="[SERVICEPASSWORD]" Arguments=" /start [ProductName]" Start="auto" Interactive="yes" Type="ownProcess" Vital="yes" ErrorControl="critical" />
<ServiceControl Id="service.exe" Name="[PRODUCTNAME]" Stop="both" Start="install" Remove="uninstall" Wait="no"/>
</Component>
這是卸載日誌:
Service ''() could not be stopped. Verify that you have sufficient privileges to stop system services.
MSI (s) (DC:D0) [14:25:02:018]: Executing op: ActionStart(Name=DeleteServices,Description=
Deleting services
,Template=
Service: [1]
)
MSI (s) (DC:D0) [14:25:02:018]: Executing op: ProgressTotal(Total=2,Type=1,ByteEquivalent=1300000)
MSI (s) (DC:D0) [14:25:02:018]: Executing op: ServiceControl(,,Action=8,Wait=0,)
MSI (s) (DC:D0) [14:25:32:064]: Executing op: ServiceControl(,Name=OPC,Action=8,Wait=0,)
Info 1922.
Service ''() could not be deleted. Verify that you have sufficient privileges to remove system services.
它不是拿起名字,誰知道它爲什麼要這麼做?
這是否屬於您製作的產品?或者您是否更改了您安裝的其他人的程序? – hexafraction
@ObsessiveSSOℲ這是我自己的產品,我正在創建一個安裝程序。 –
好的。我真的不知道,但這個信息可以讓這個問題從downvoted /關閉/等等,如果你編輯ias很多信息,你可以進入帖子。 – hexafraction