Page 1 of 1
[SOLVED] Uninstallation problem.
Published: Dec 6, 2019 - 09:08
by chrisclet
Hello,
I'm using version 1.5, a Linux server, and a Windows 7 administration machine.
I created a package from an MSI file, and before deploying it, I always test it using the command:
`wapt-get -ldebug install C:\waptdev\my_mypackage-wapt
&
wapt-get -ldebug remove C:\waptdev\my_mypackage-wapt`.
The package uninstalls successfully using the command; it correctly retrieves the uninstallation key. However, once the package is uploaded, when deployed to a client, the installation works fine, but when trying to uninstall the package from a client machine, it's impossible; the package remains intact and functional on the client machine. I've tried restarting the machine, but nothing changes.
If you have any ideas...
Thank you in advance.
Re: Uninstallation problem.
Published: Dec 9, 2019 - 10:31 PM
by dcardon
Good evening,
chrisclet wrote: ↑Dec 6, 2019 - 09:08
I am on version 1.5, Linux server, and W7 administration machine.
The first thing to note would be to update it.
I created a package from an MSI. Before deploying it, I always test it using the command:
`wapt-get -ldebug install C:\waptdev\my_mypackage-wapt
&
wapt-get -ldebug remove C:\waptdev\my_mypackage-wapt`.
The package uninstalls successfully using the command; it correctly retrieves the uninstallation key. However, once the package is uploaded, when deployed to a client, the installation works fine, but when trying to uninstall the package from a client machine, it's impossible; the package remains intact and functional on the client machine. I've tried restarting the machine, but nothing changes.
The best approach would be to copy the setup.py script. The first point to note is that you're using something that's no longer available after uninstallation.
Sincerely,
Denis
Re: Uninstallation problem.
Published: Dec 10, 2019 - 08:45
by chrisclet
Good morning,
Thank you for your reply.
Here is the script for setup.py:
Code: Select all
from setuphelpers import *
uninstallkey = []
def install():
print('installing my_AnyConnect')
install_msi_if_needed('anyconnect-win-4.8.01090-core-vpn-predeploy-k9.msi')
Thanks in advance.
Re: Uninstallation problem.
Published: Dec 11, 2019 - 6:48 PM
by dcardon
Hello Chrisclet,
chrisclet wrote: ↑Dec 10, 2019 - 08:45
Thank you for your reply.
Here is the script for setup.py:
Code: Select all
from setuphelpers import *
uninstallkey = []
def install():
print('installing my_AnyConnect')
install_msi_if_needed('anyconnect-win-4.8.01090-core-vpn-predeploy-k9.msi')
Thanks in advance.
The main difference between installing via PyScripter and installing via the agent is the context. In the case of agent installation, it's done using the Local System user (one difference being that Local System doesn't have a Desktop directory...). However, I haven't yet encountered an issue with an incorrect uninstallation key. Could you check the UninstallKey and UninstallString using the `wapt-get list-registry` command to see if it yields different results? Are you certain that anyconnect installs systemwide?
I have already deployed anyconnect with WAPT for 802.1x and it did not cause any problems.
Sincerely,
Denis
Re: Uninstallation problem.
Published: Dec 16, 2019 - 3:46 PM
by chrisclet
Hello,
I found a solution and it works.
`uninstallstring = ['"C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\Uninstall.exe" -remove -silent']`
Thank you!