Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a installer for the Launcher #69

Open
SonnyX opened this issue May 17, 2021 · 0 comments
Open

Create a installer for the Launcher #69

SonnyX opened this issue May 17, 2021 · 0 comments
Labels
Requirement Major Release This ticket is a requirement for the next major release

Comments

@SonnyX
Copy link
Member

SonnyX commented May 17, 2021

            IShellLink link = (IShellLink)new ShellLink();

            // setup shortcut information
            link.SetDescription("My Description");
            link.SetPath(@"c:\MyPath\MyProgram.exe");

            // save it
            IPersistFile file = (IPersistFile)link;
            string desktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
            file.Save(Path.Combine(desktopPath, "MyLink.lnk"), false);

https://docs.microsoft.com/en-us/windows/win32/shell/links#creating-a-shortcut-and-a-folder-shortcut-to-a-file

@SonnyX SonnyX added the Requirement Major Release This ticket is a requirement for the next major release label May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Requirement Major Release This ticket is a requirement for the next major release
Projects
None yet
Development

No branches or pull requests

1 participant