Easily change the new Roblox Player/Studio Icons (on Windows)

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!

Have a nice day! :wave::slightly_smiling_face:

7 Likes

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.

4 Likes

Holy crap. What Anti-Virus do you use?

2 Likes

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.

2 Likes

I haven’t gotten any nasty pop-ups or anything, I AM using uBlock Origin.

1 Like

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.

1 Like

I DID use this one online converter once and it put custom launch arguments inside of an audio file.

If you use Microsoft Edge or Chrome, I highly recommend uBlock Origin. It’s the best free adblocker.

1 Like

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.

not sponsored

1 Like

I mean, this one even works for YouTube.

(We are pretty off-topic now…)

4 Likes

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

Yeah… I already had it installed before it was taken off.

Yeah I use cloud convert only for safety, you get 10 free converts per day with no account so its worth it

5 Likes

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.

I have to download the Python interpreter.

Their approach also doesn’t need to download any applications assuming you already have Resource Hacker installed.

Roblox Studio or your code? Would I use VS code to run it?

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.

Files don’t just ā€˜run’ by clicking unless they’re a .exe

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 :skull:. 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.

I wasn’t the one worried about safety in the beginning. (I had a different site for it before)

A lot of people have been complaining about it, I just felt like providing something to help them change it to something more preferrable for them.

2 Likes