Forum Discussion
Win32 app installed desktop shortcut with no custom icon
- 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 😉
Harm_Veenstra I put the ico in the same folder that’s accessible on the share, rebuilt the Intunewin package, and completely removed the app from intune and set it up again. I’m still not getting the custom icon. The shortcut installs on the public desktop just fine. It just doesn’t have the icon.
- Jesse13579Jan 17, 2024Copper 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, 2024Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico ---> Copy-Item ".\UKGi.ico" -Destination "c:\scut\UKGi.ico" , you mist the last " I think 😉
- Jesse13579Jan 17, 2024Copper ContributorI sure did. I just made the change and updated the app. I'll let you know. Thanks for the help.