mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
overwrite icon when creating shortcut
This commit is contained in:
@@ -19,7 +19,7 @@ internal sealed partial class ShellLinkInterop : IShellLinkInterop
|
||||
{
|
||||
string sourceLogoPath = Path.Combine(runtimeOptions.InstalledLocation, "Assets/Logo.ico");
|
||||
string targetLogoPath = Path.Combine(runtimeOptions.DataFolder, "ShellLinkLogo.ico");
|
||||
File.Copy(sourceLogoPath, targetLogoPath);
|
||||
File.Copy(sourceLogoPath, targetLogoPath, true);
|
||||
|
||||
IShellLinkW shellLink = (IShellLinkW)new ShellLink();
|
||||
shellLink.SetPath("powershell");
|
||||
|
||||
Reference in New Issue
Block a user