/build/static/layout/Breadcrumb_cap_w.png

How to delete a shortcut in Control Panel\Network and Internet\Network Connections?

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

Answers (7)

Posted by: andemats 11 years ago
2nd Degree Black Belt
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


Comments:
  • i deleted all the key but...shortcut still ther - roni86 11 years ago
Posted by: anonymous_9363 11 years ago
Red Belt
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.


Comments:
  • 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. - roni86 11 years ago
Posted by: piyushnasa 11 years ago
Red Belt
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.

Posted by: roni86 11 years ago
Blue Belt
0

any one got an idea?


Comments:
  • Have you tried locating the service and disabling it? - SMal.tmcc 11 years ago
Posted by: jagadeish 11 years ago
Red Belt
0

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


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

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

    Right click on your VPN adaptor and click Uninstall.. - jagadeish 11 years ago
Posted by: roni86 11 years ago
Blue Belt
-1

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


Comments:
  • I thought you are customizing some application..

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

    Right click on your VPN adaptor and click Uninstall.. - jagadeish 11 years ago
Posted by: andemats 11 years ago
2nd Degree Black Belt
-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

Comments:
  • 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. - andemats 11 years ago
  • the vpn is not in add/remove progrmas that the problem. ist are only files and a scritp that installs the vpn - roni86 11 years ago
  • Ahh.. My bad, I misread your post. - andemats 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ