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) )



Answer Summary:
2 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer



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.

Answered 05/28/2013 by: VBScab
Red Belt

  • but I am unable to see that shortcut table.. all the files are hidden
  • Chome msi has no shortcut table
Please log in to comment
Answer this question or Comment on this question for clarity



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


Answered 05/28/2013 by: terebent
Second Degree Brown Belt

Please log in to comment

You can delete this registry key

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{8A69D345-D564-463c-AFF1-A69D9E530F96}]

and it is done.


Answered 10/28/2013 by: rovo2013
White Belt

  • It's Working. Thank you
  • Only Because of that active set up the shortcuts are not deleting. don't we need it yet all
Please log in to comment