Hey guys, this is probably something simple but I can't wrap my head around it.  What I'm trying to create is a shortcut to call chrome then launch the google apps website.  This is easy, it works using the configuration wizard.  The higher ups want it to have our custom icon like it's had in the past using another deployment product.

I figured I could simply create a script using it as a dependancy then a quick xcopy to the desktop.  The problem here is when I pick the shortcut as a dependancy it uploads chrome.exe :(.  

I also was looking at using filesyncronization - how ever it requires a software title to be choosen even though all I'm making is a quick shortcut (several different ones).

I really appreciate any input!!!

 

1 Comment   [ + ] Show Comment

Comments

  • So you need a shortcut with a custom Icon.
    Cant you create the shortcut like your want on your desktop, with the icon change you would like then just xcopy that to where you need it. Of course the software will have to be installed etc for it to work. In regards to the icon, you will need to xcopy that to the computer as well, to the same reference point.

    Hope you get what I mean.
Please log in to comment

Community Chosen Answer

4

Create your shortcut(s). Zip them up. Add the ZIP to a dependency in a Kscript.

Verify: File exist

C:\path\to\shortcut\shortcut.lnk

Remediation: Unzip a file

Dir: $(KACE_DEPENDENCY_DIR)

File: <name_of_zip>.zip

Target: %public%\desktop
Answered 10/14/2013 by: dugullett
Red Belt

  • This doesn't necessarily give you the icon you want for the shortcut if it's a custom icon. I had a similar issue with pushing a custom Help Desk icon to all our desktops.

    I zipped the shortcut and the icon file together. Then unzipped them in the public folder and then ran a vbs script to set the icon for the shortcut:

    Option Explicit

    On Error Resume Next

    Dim objShell
    Dim objDesktop
    Dim objLink
    Dim strAppPath
    Dim strWorkDir
    Dim strIconPath

    strWorkDir ="C:\Users\Public\Desktop"
    strAppPath = "https://helpdesk.yourdomain.org"
    strIconPath = "C:\Users\Public\helpdesk.ico"

    Set objShell = CreateObject("WScript.Shell")
    objDesktop = objShell.SpecialFolders("AllUsersDesktop")
    Set objLink = objShell.CreateShortcut(objDesktop & "\Waco ISD Help Desk.lnk")


    objLink.Description = "Waco ISD Help Desk"
    objLink.IconLocation = strIconPath
    objLink.TargetPath = strAppPath
    objLink.WindowStyle = 3
    objLink.WorkingDirectory = strWorkDir
    objLink.Save
    • Looks familiar, glad to see it's helping elsewhere ;)
    • It looks like this will do the trick! I have one more quick question.

      This particular shortcut needs to call chrome (not default browser) then browse to www.google.com/a/ourdomain. I've tried every variant of "strAppPath = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" https://www.google.com/a/ourdomain" that I can come up with.

      Any thoughts on this one? Thanks for the pointers :).
Please log in to comment

Answers

0

You're just missing the following parameter.  The program and the arguments are two separate items.

 

 objLink.Arguments = " https://www.google.com/a/ourdomain"

Answered 10/16/2013 by: lkitsmiller
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity