Hello

 

I need to do an msi that delets a vpn shorcut in Control Panel\Network and Internet\Network Connections or a scirpit athat will do that.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

1

Have a look for your VPN connection here:

HKLM\SOFTWARE\Policies\Microsoft\Windows\Network Connections

And/Or here:

HKCU\SOFTWARE\Policies\Microsoft\Windows\Network Connections

*****

And the Internet Connections here:

HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections

And/Or here:

HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections

*****

Note: Take backup of the keys before you do anything with them.

The command is: REG DELETE [KEYNAME] /f

Answered 08/13/2012 by: andemats
Second Degree Black Belt

  • i deleted all the key but...shortcut still ther
Please log in to comment
1

>you could try removing the registry key for the product.
I know it doesn't particularly apply in this case but this is really *NOT* a good idea, as it leaves all manner of junk in the registry (feature and component details) to say nothing of potentially leaving broken references in terms of shared DLL usage.

Answered 08/13/2012 by: VBScab
Red Belt

  • I know...... can you tell me whit reg key to delate?or how to find it? i try all day and can't find it.
Please log in to comment
1

Best would be to take a capture of deleting it manually. You can use tool like InstallRite which is free and will tell you which file is deleted. Then you will exactly know what to use in your package.

Answered 08/14/2012 by: piyushnasa
Red Belt

Please log in to comment
0

any one got an idea?

Answered 08/13/2012 by: roni86
Blue Belt

  • Have you tried locating the service and disabling it?
Please log in to comment
0

There should be a application related .cpl file in C:\Windows\System32 folder.. Remove it and check.

Answered 08/13/2012 by: jagadeish
Red Belt

  • Try what jagadeish said ,it should work for you :)
  • Network connections do not have a .cpl file i guess.
  • cant find it....wher is it:(
  • I thought you are customizing some application..

    Are you asking your same question in different way?
    http://www.itninja.com/question/windows-vpn-services
  • Goto Device Manager - <HostName> - Network Adaptors

    Right click on your VPN adaptor and click Uninstall..
Please log in to comment
-1

"There should be a application related .cpl file in C:\Windows\System32 folder.. Remove it and check." wher is it cant find it:(

Answered 08/14/2012 by: roni86
Blue Belt

  • I thought you are customizing some application..

    Are you asking your same question in different way?
    http://www.itninja.com/question/windows-vpn-services
  • Goto Device Manager - <HostName> - Network Adaptors

    Right click on your VPN adaptor and click Uninstall..
Please log in to comment
-2

Is there a reason why you want to do this?

If your VPN installation is an MSI, you have the option to handle this directly in the MSI.

The image below shows the Add/Remove Programs options in Wise. As you can see there is options to show in Add/Remove Programs or show/hide modify button.

If it's already installed on your clients, you could try removing the registry key for the product.
Go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Find the Key corresponding to your VPN application and delete the entire key.
 
The command line for this would be:
REG DELETE  HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{PRODUCTKEY} /f
Answered 08/13/2012 by: andemats
Second Degree Black Belt

  • However, that last tip isn't really optimal, as it's not sure it will remove the entry in Add/Remove Program, but it will remove the remove/repair functionallity.
  • the vpn is not in add/remove progrmas that the problem. ist are only files and a scritp that installs the vpn
  • Ahh.. My bad, I misread your post.
Please log in to comment
Answer this question or Comment on this question for clarity