1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-13 01:16:59 +02:00

Disable start menu icons (handled by installer) and delete shortcuts that cannot be moved

This commit is contained in:
2016-04-14 18:11:43 +02:00
parent d3d1fc808e
commit 7de79786c9

@@ -134,6 +134,9 @@ namespace TweetDick.Migration{
if (!File.Exists(renamed)){ if (!File.Exists(renamed)){
File.Move(linkFile,renamed); File.Move(linkFile,renamed);
} }
else{
File.Delete(linkFile);
}
}catch{ }catch{
// eh, too bad // eh, too bad
} }
@@ -175,12 +178,14 @@ namespace TweetDick.Migration{
yield return Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory); yield return Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory);
yield return Environment.ExpandEnvironmentVariables(@"%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"); yield return Environment.ExpandEnvironmentVariables(@"%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar");
/* already handled by the installer
string startMenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); string startMenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
string[] sub = Directory.GetDirectories(startMenu); string[] sub = Directory.GetDirectories(startMenu);
if (sub.Length > 0){ if (sub.Length > 0){
yield return Path.Combine(startMenu,sub[0],"TweetDeck"); yield return Path.Combine(startMenu,sub[0],"TweetDeck");
} }
*/
} }
private static void RunUninstaller(string guid, int timeout){ private static void RunUninstaller(string guid, int timeout){