Hello! Here is a Python Script that anyone can use to change the Desktop Shortcut icons for Roblox Player and Roblox Studio on Windows.
All you have to do is add your file paths and run the code, and it will automatically change the icons for you.
This requires Python to be installed, and a library called pywin32 (command to install provided)
pip install pywin32
And here is the script:
import os
import win32com.client
def update_shortcut_icon(shortcut_path, icon_file, icon_index=0):
"""
Update the icon for a given Windows shortcut.
Parameters:
shortcut_path: Full path to the .lnk shortcut file.
icon_file: Full path to the .ico file.
icon_index: Index of the icon within the .ico file (defaults to 0).
"""
# Verify that the shortcut file exists.
if not os.path.exists(shortcut_path):
print(f"Shortcut not found: {shortcut_path}")
return
# Verify that the icon file exists.
if not os.path.exists(icon_file):
print(f"Icon file not found: {icon_file}")
return
try:
# Create the WScript.Shell COM object.
shell = win32com.client.Dispatch("WScript.Shell")
shortcut = shell.CreateShortcut(shortcut_path)
# Set the IconLocation with format "FullPath,Index".
shortcut.IconLocation = f"{icon_file},{icon_index}"
shortcut.Save()
print(f"Updated icon for '{shortcut_path}' to '{icon_file},{icon_index}'")
except Exception as e:
print(f"Error updating icon for {shortcut_path}: {e}")
if __name__ == "__main__":
# Define the specific shortcut paths.
roblox_player_shortcut = r"C:\path\to\desktop\shortcut\player" # <- Change to Roblox Player Shortcut Path
roblox_studio_shortcut = r"C:\path\to\desktop\shortcut\studio" # <- Change to Roblox Studio Shortcut Path
# Specify the corresponding icon files.
# Replace these with the full path to your actual icon files.
roblox_player_icon = r"C:\path\to\ico\icon\file\for\player" # <- Change to Path of desired .ico image file for Player
roblox_studio_icon = r"C:\path\to\ico\icon\file\for\studio" # <- Change to Path of desired .ico image file for Studio
# Update icons for both shortcuts.
update_shortcut_icon(roblox_player_shortcut, roblox_player_icon, icon_index=0)
update_shortcut_icon(roblox_studio_shortcut, roblox_studio_icon, icon_index=0)
print("Icon update complete!")
To get an ICO file for any specific image you want, you can use the following converter (This one is safe. Thanks @xXTheRealCamelXx!):
And yeah, I hope this helps anyone on Windows who doesnāt like the new Icons.
I get that they will change back every time either update, but all you have to do is simply run the code again and boom!
I would NOT trust free online convert websites. I went to that website and all my anti-viruses responded pretty badly. The only āgoodā converter for files is probably CloudConvert. Just donāt trust those websites. I would scan your computer for viruses if I were you. Those websites have nasty Trojans.
Windows Defender, Malwarebytes, and Ultra AV. I even went to the website on my phone, and even Safari blocked the website for potential malware and leak risks.
Those websites function differently then other malicious websites I think. They try to hide viruses in the most cruel and secretive ways possible. Iām not familiar with uBlock Origin, so I have no idea.
Nice, however. I donāt really care for adblockers. Mostly because I donāt really go to websites with a TON of ads. But, Covenant Eyes is good for safety, control and reliability with whatever the internet throws at you these days.
As a chrome user, Apparently uBlock origin is removed from the chrome webstore. so you would have to download a different adblocker if you want to avoid ads or use a different browser that supports uBlock Origin
Another way to do this would be to download Resource Hacker.
Then all you have to do is drag the desktop shortcut to the application. Open the icon group folder and delete the file. At the top click Action ā Add Image or Other Binary Resource. Then add your .ico. Hit Add Resource then Ctrl + S to save. Finally, restart your computer.
It wouldnāt be required, you COULD, but you could also just slap the code into a .txt file and then change it to a .py file, put it on the desktop, and you could just click it whenever you want the icon changed back.
Why would you change the icon anyway? It is not that bad all things considered, I could be assuming, but I donāt honestly know quite. But it could even be annoying Hyperion perhaps? But unlikely, Iād say.
Anyhow, the converter for an image⦠itās just a converter, bro . Itās not going to magically inject a RAT into a PNG file; the probability of an attack like that is so low, almost null, Iād say. The last time I recall that is a webp or the metadata zero-day, all were patched a long time ago.