how remove Taskbar short cut of google chrome
Hi Everybody,
I am trying to package google chrome. After installing chrome am getting desktop short cut and task bar short cut. Any how I have deleted desktop shortcut and taskbar short cut also. But the shortcut icon is not removing from taskbar until we do it manually like click on chrome task bar short cut then it will ask you do you want to remove the short cut on choosing yes it will remove that icon too. Can any body tell me how to do it silently.
I have used autoIT script to remove the shortcuts.
$PATH = ""&@DesktopCommonDir&"\Google Chrome.lnk"&""
RunWait ( FileDelete ($PATH) )
$Path2 = ""&@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Google Chrome.lnk"&""
RunWait ( FileDelete ($PATH2) )
$Path3 = ""&@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\Google Chrome.lnk"&""
RunWait ( FileDelete ($PATH2) )
-
Hi Swetha you are using WIN7 or WINXP ? - KommineniSudheer 11 years ago
-
On Win7 you need to use a script to unpin the taskbar shortcut - KommineniSudheer 11 years ago
Answers (3)
Pretty much all of the Google products have separate downloads for personal and corporate use. The corporate ones are MSI-based, so you should use those (from a licensing perspective, if nothing else - read the terms!!). Make your changes - editing the Shortcut table - via a transform, obviously.
Just replace the path from below script to your path to the file and add the script to the installation. You can add how many files do you want.
DeleteFile ("c:\Temp\test2.pdf ")
DeleteFile ("c:\Temp\test1.pdf ")
Function DeleteFile(strFilePath)
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
If (objFSO.FileExists (strFilePath)) Then
objFSO.DeleteFile (strFilePath)
End if
End Function
You can delete this registry key
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}]
and it is done.