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

[BUG] Fix FileNotFoundException - Option GenerateDriveShortcuts - in case Windows Defender triggered #272

Closed
Hofknecht opened this issue Dec 14, 2021 · 0 comments
Assignees
Labels
Projects
Milestone

Comments

@Hofknecht
Copy link
Owner

Peter M. reported:

System.IO.FileNotFoundException: Das System kann die angegebene Datei nicht finden. (0x80070002) at IWshRuntimeLibrary.IWshShortcut.Save() at SystemTrayMenu.Utilities.GenerateDriveShortcuts.CreateShortcut(String linkPath, String targetPath) in D:\a\1\s\Utilities\GenerateDriveShortcuts.cs:line 42 at SystemTrayMenu.Utilities.GenerateDriveShortcuts.Start() in D:\a\1\s\Utilities\GenerateDriveShortcuts.cs:line 23 at SystemTrayMenu.Business.Menus.LoadMenu(Object senderDoWork, DoWorkEventArgs eDoWork) in D:\a\1\s\Business\Menus.cs:line 698 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

Settings> Folder> tick Create shortcuts to drives and press OK.
Windows 11, 64bit, version 10.0.22000.348, virtual drive (Boxcryptor) and network drive.

After your exe was in the exception list, I was able to tick the box without an error message.

=> Add try catch there
=> Consider other solutions for showing drives without creating that shortcuts

@Hofknecht Hofknecht added this to the 1.3 milestone Dec 14, 2021
@Hofknecht Hofknecht added this to Analyze / Spec in STM 1.3.0 via automation Dec 14, 2021
Hofknecht added a commit that referenced this issue Dec 27, 2021
…case Windows Defender triggered (#272), version 1.2.0.3
@Hofknecht Hofknecht self-assigned this Dec 27, 2021
@Hofknecht Hofknecht moved this from Analyze / Spec to Review / Test in STM 1.3.0 Dec 27, 2021
STM 1.3.0 automation moved this from Review / Test to Closed Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
STM 1.3.0
  
Closed
Development

No branches or pull requests

1 participant