gravitl / netclient

Apache License 2.0
67 stars 32 forks source link

v0.20.3 windows uninstall bug #489

Closed STeffaine closed 1 year ago

STeffaine commented 1 year ago

When uninstalling netclient from windows get the following error;

PS C:\Program Files (x86)\Netclient> .\netclient.exe uninstall
[netclient.exe] 2023-07-04 07:32:47 setting OS
[netclient.exe] 2023-07-04 07:32:47 setting version
[netclient.exe] 2023-07-04 07:32:47 setting netclient hostid
[netclient.exe] 2023-07-04 07:32:47 setting name
[netclient.exe] 2023-07-04 07:32:47 setting macAddress
[netclient.exe] 2023-07-04 07:32:47 setting wireguard keys
[netclient.exe] 2023-07-04 07:32:47 setting wireguard interface
[netclient.exe] 2023-07-04 07:32:47 setting listenport
[netclient.exe] 2023-07-04 07:32:47 setting proxyListenPort
[netclient.exe] 2023-07-04 07:32:47 setting MTU
[netclient.exe] 2023-07-04 07:32:47 setting traffic keys
[netclient.exe] 2023-07-04 07:32:47 migration to v0.18 started

removing netclient binary and supporting files
[netclient.exe] 2023-07-04 07:32:47 wrote the daemon config file to the Netclient directory
[netclient.exe] 2023-07-04 07:32:47 error running command: "C:\Program Files (x86)\Netclient\winsw.exe" "stop"
[netclient.exe] 2023-07-04 07:32:47 2023-07-04 07:32:47,738 FATAL - The specified service does not exist as an installed service.
[netclient.exe] 2023-07-04 07:32:47 error with stop of Windows Netclient daemon: exit status 1060 : 2023-07-04 07:32:47,738 FATAL - The specified service does not exist as an installed service.

remove C:\Program Files (x86)\Netclient\\netclient.exe: Access is denied.
remove C:\Program Files (x86)\Netclient\\netclient.exe: Access is denied.

this was run as administrator. Could be the double \\ in the path?

mattkasun commented 1 year ago

running netcclient uninstall on windows now directs user to complete uninstall use add/remove program.

https://docs.netmaker.io/netclient.html#uninstalling