Windows: Setting a relative path to shortcut's icon

Started by
0 comments, last by pseudomarvin 5 years, 6 months ago

I want to distributy a game I've made as a simple self extracting zip file. After extraction, the structure should look like this:


MyGame (shortcut to MyGame/Release/MyGame.exe)
MyGame (folder)
 --- /assets (folder)
 --- / Release (folder)
      --- MyGame.exe

I have already managed to make the shortcut point to the relative path of MyGame.exe by setting its target as: %windir%\explorer.exe "MyGame\Release\MyGame.exe". But I would also like to set its icon from a file in the assets folder in a relative way so that upon extracting on a different PC,

the icon is already set. Is this possible? Or how is it usually done?

This topic is closed to new replies.

Advertisement