Forum Discussion
Jesse13579
Jan 15, 2024Brass Contributor
Win32 app installed desktop shortcut with no custom icon
I'm installing a desktop shortcut to all my endpoints. I'm installing it as a win32 app with this script. #Create directory to hold icon file and copy file there New-Item -Path "c:\" -Name "scu...
- Jan 17, 2024Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico ---> Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico" , you mist the last " I think 😉
Jesse13579
Jan 17, 2024Brass Contributor
The install script.
#Create directory to hold icon file and copy file there
New-Item -Path "c:\" -Name "scut" -ItemType "directory" -Force
Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico
#Shortcut creation and specify settings
$Shell = New-Object -ComObject ("WScript.Shell")
$ShortCut = $Shell.CreateShortcut("C:\users\public\desktop\UKG Time.lnk")
$ShortCut.TargetPath="https://poarchbandcreeks-sso.prd.mykronos.com"
#$Shortcut.Arguments="https://poarchbandcreeks-sso.prd.mykronos.com"
$ShortCut.IconLocation = "c:\scut\UKGi.ico";
$ShortCut.Description = "UKG Time";
$ShortCut.Save()
Inside the folder.
Jan 17, 2024
Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico ---> Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico" , you mist the last " I think 😉
- Jan 23, 2024Any update?
- Jesse13579Jan 17, 2024Brass ContributorI sure did. I just made the change and updated the app. I'll let you know. Thanks for the help.