cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
206665
Views
40
Helpful
28
Replies

Anyconnect re-install on Windows 10 Hanging

johnmotley
Level 1
Level 1

I am posting this as a solution as I saw many registry related solutions that did not work but this approach did.  This is two parts A) Getting a reinstll to work on Windows 10.  B) Getting the Windows 10 install to work. 

Symptoms:  

-User upgraded to windows 10 without uninstalling Anyconnect first.

-Uninstall anyconnect after upgrade reports no error

-Reinstall will not complete and will post error to event log:

Product: Cisco AnyConnect Secure Mobility Client -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.  Action VACon64_ndis6_Install, location: C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\VACon64.exe, command: -install "C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\\vpnva-6.inf" VPNVA 

 

PART A:  Getting the re-install to work

Issue and solution (In this case):

There is a directory that contains driver libraries.  If they are present the installer uses old ones and the service will not register and will roll back the installation.  Delete the registry store (using pnputil NOT through the file system directly).

 

Resolution Steps (Assuming you are trying to install the Windows 10 compatible versions of anyconnect issued after 7/22/2015)

1) See if this is your problem

a) Uninstall Anyconnect

b) Navigate to >> Windows\System32\DriverStore\FileRepository  see if you have a directory named vpnva-6.inf_amd64_....

If this directory has any file older than 7/22/2015 then this is causing your install to fail.

c) Find the OEM###.INF file associated with this directory by looking in C:\Windows\inf\setupapi.dev.log

Search for Anyconnect  you will find a section that reads

{Plug and Play Service: Device Install for ROOT\NET\0000}
     ndv:           Driver INF Path: C:\WINDOWS\INF\oem24.inf
     ndv:           Driver Node Name: vpnva-6.inf:573bd3b1d858e0ac:Cisco.ndi.NTamd64:3.1.6019.0:vpnva
     ndv:           Driver Store Path: C:\WINDOWS\System32\DriverStore\FileRepository\vpnva-6.inf_amd64_f4ee011be27e2804\vpnva-6.inf

Note the "oem24.inf" file in this case

Delete this driver store:

i) Open a cmd box as Administrator

ii)  For safety you can double check you have the right oem file by piping the following output to a text file and reviewing the entry for oem24.inf (or whatever your file is).  The entry in the text file you create should say that it is from Cisco and that the driver with oem##.inf is a network adapter.

pnputil -e > c:\driver_data.txt

iii) Delete the driver store (after you verified you have the right oem file).

pnputil -d oem24.inf

you should get "Driver package delete successfully"

Your installation will now complete (if this was the big issue.  I already tried all the registry related issues before this in other responses).

Part B: Getting the installation to work  (this section is courtesy of andrew oracle on technet)

1) Upgraded to latest version of AnyConnect (3.1.05182) from Cisco
2) Changed registry entry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\vpnva\DisplayName string to “Cisco AnyConnect VPN Virtual Miniport Adapter for Windows x64″
3) Navigate to Cisco Install folder
4) Right-click vpnagent.exe and select properties
5) Navigate to the compatibility tab
6) Click "Change Settings for All Users" (the vpnagent.exe runs as a service under the LocalSystem context)
7) Change compatibility mode to Windows 8
8) Click OK
9) Click OK
10) Right-click vpnui.exe and select properties
11) Navigate to the compatibility tab
12) Click "Change Settings for All Users"
13) Change compatibility mode to Windows 8
14) Click OK
15) Click OK
16) Restart "Cisco AnyConnect Secure Mobility Agent for Windows" service

I am now able to connect to VPN without issue. Huzzah!

  • Proposed as answer by Andrew Oracle Thursday, October 02, 2014 3:04 PM

 

I was finally back in business!

 

28 Replies 28

collinks2
Level 5
Level 5

Hello, I am having challenges with any connect vpn. I have uploaded the any connect  package 4.2.*.*.* in the router (2911 ios version 15). The problem is that the package is not specified in the Web vpn folder. I try to execute this command Web vpn install  flash....  but it fails. I read the article, ssl vpn configuration steps and saw another command 'crypto vpn any connect.... sequence 1 but it fails as well. However the ssl vpn homepage is displaying but the tunnel mode doesn't run.

Does anyone have a better idea on how to resolve this issue. Thanks in anticipation

Here is a second method I also found:

 

1.  Uninstall the old version of Anyconnect.
2.  Do a search on anyconnect in your registry and pull out everything you can find.
3.  Download the new Anyconnect software.  Put this in the C:/ drive.  It has to be in the C:/ drive for the command in step 5 to work.
4.  Start the command line as administrator.  (Hit the windows key, type in cmd, right click on cmd.exe and select Run As Administrator.)
5.  On the command line type cd c:/
6.  Type: msiexec /quiet /norestart /i [name of Anyconnect version in C:/]
7.  It's going to immediately give you your prompt back.  Let it sit for a full minute and then look in your list of programs for the Cisco folder and start anyconnect.  
8.  Connect to VPN.  Login.  This will repair any issues which might have occurred during the install.  If you have multiple VPNs you login to, login to the highest version of Anyconnect you have to access.  It repairs it to the version you are connecting to.

After many hours, this did the trick. So simple! Thank you!

msoublie
Level 1
Level 1

I could find a directory named vpc.inf_amd64_but did find one named a directory named vpnva-6.inf_amd64_

The generated driver_data.txt file does not show any Cisco drivers. There is no Cisco AnyConnect program to uninstall though I am still getting the uninstall "Cisco AnyConnect NAM" message.

An overall frustrating experience.

msoublie
Level 1
Level 1

As far as I know, I have never loaded Cisco AnyCannect NAM and yet I get this message.

Hello,

I have resolved my issue. The only issue I have now is that my phone cannot connect using vpn connect. Mine is working on Windows 8.all u need to do is to reinstall the vpn on your Windows 10 and u r good to go

marko.mard
Level 1
Level 1

I have this exact issue on WIndows 10 1703 and Cisco 4.5.01044:

Product: Cisco AnyConnect Secure Mobility Client -- Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.  Action VACon64_ndis6_Install, location: C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\VACon64.exe, command: -install "C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\\vpnva-6.inf" VPNVA 

 

about the part

b) Navigate to >> Windows\System32\DriverStore\FileRepository  see if you have a directory named vpnva-6.inf_amd64_....

If this directory has any file older than 7/22/2015 then this is causing your install to fail.

 

all the files in my FileRepository are from 2014 even after I do the pnputil delete stuff (Driver Store Explorer RAPR is a nice tool for this too btw).

 

Nice to find forum posts from 2010 about this issue and on them the only solution is to reimage the machine. Well that is the only thing working for me. so the installer works but the reinstall or upgrade does not. 

 

So, where to go from here. Cisco supprt said that some cumulative update in 1607 has helped in some case and will not do anything on this matter before I have shown it is not a MS issue. 

 

Looks like most of my problems were because my uninstall order was wrong.

What we use is the core-vpn package and nam-package. The naming of the packages was changed in version 4.4 so by habit I collected the msi guids in the file order and uninstalled them in that order.

 

So in 4.3 versions all went the correct way, nam was uninstalled before core-vpn. And after 4.4 it was core-vpn first wich seemed to remove the nam also, but did a lousy job, might have only removed the netry from Programs and features list and the files.

 

When I suddenly realised this and corrected the old version uninstall order I have managed to update my cisco installations. So far, about 10 successes so far, only about 1000 to go:)

dpbell
Level 1
Level 1

Here is the modified version of what is working for me:

 

1. Go through the registry and delete any entry for Anyconnect.

 

  1. Run as on the command line as administrator:

 

pnputil -e > c:\driver_data.txt

 

  1. Look in the driver_data file and find the oem##.inf file associated with Anyconnect.  Run from command line as administrator:

 

pnputil -d oem##.inf

 

  1. Go to C:\WINDOWS\System32\DriverStore\FileRepository\

 

Check and see if there is a file that starts with the name vpna (it's a long file name).  Step three should have deleted it.  This file is the culprit but you can't just deleted it because it's system protected.  If you see this file, reboot and try step three again.  

 

  1.  Shut the system down for at least one minute.  A reboot won't work.  There appears to be something stuck in cache that is only cleared if you completely shut the system down.  Run the install for the new VPN software. 

BeachAdmin
Level 1
Level 1

Thank you for this guide! I followed the steps outlined and was still having issues with the installation. 

 

I was able to finally fix the problem by additionally updating my drivers, specifically the NIC and chipset. After a restart, checking for the oemXX.inf and confirming it is not on the laptop, I was able to install AnyConnect as expected.

 

Anybody experiencing problems after deleting the existing anyconnect drivers may want to update the rest of their drivers as well, and try again.

Pierre A.
Level 1
Level 1

Awesome,

After 48 hours of research and trying different solutions. This worked like a charm !! :-)

Thank you

zacharyarias
Level 1
Level 1

There is a bug with certain AV's that have registry protection.  Both AV's have patches one is OfficeScan and the other is CheckPoint

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvb59209/

 

Once un-checking the box for this option i was able to install and re-check.

Please help me!!! Dear cisco!!

Please revert this issue!!

Scott Reedman
Level 1
Level 1

Hi All,

 

Has anyone had a working fix for this yet? I am sure there are a lot of us with over double the amount of remote users right now due to Covid but the above methods seem to not work completely for everyone. In my case, if I remove old versions of Anyconnect from the firewall forcing clients to a new version about 20% fail and end up without a working client. The fastest way for my team to resolve this is to remote into the users' machine and remove AnyConncet entries from the registry and re-run the MSI. Works every time without a reboot. We are running Umbrella also and I would really love to turn the auto-upgrade feature on but my team is bombarded with calls whenever an upgrade fails. I am hoping someone out there has a solution. I know this is said to be a windows issue but we are not seeing any other software installs or upgrades fail on the same machines that run into this issue.