Hi! I am writing a C# WinForms program that needs to create a shortcut from the shell:appsfolder folder. I am trying to use the IWshRuntimeLibrary, but Visual Studio 2022 marks it as an error, although I have added the reference Windows Script Host Object Model to the project. I have even tried to manually add the DLL interop.iwshruntimelibrary.dll to the project as an asset, but no good. Please help!
Loading

Sam HobbsPosted Oct 5, 2023, 7:14 PM
Probably you can use ShellLinkObject instead.
ShellLinkObject object (Shldisp.h) - Win32 apps | Microsoft Learn
https://learn.microsoft.com/en-us/windows/win32/shell/shelllinkobject-object
Sachin SinghPosted Oct 5, 2023, 4:50 PM
Have you used delay signing on your project then open VS Command Prompt and run