mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-09 23:34:06 +02:00
Disable start menu icons (handled by installer) and delete shortcuts that cannot be moved
This commit is contained in:
parent
d3d1fc808e
commit
7de79786c9
@ -134,6 +134,9 @@ private static bool BeginMigration(MigrationDecision decision, Action<Exception>
|
||||
if (!File.Exists(renamed)){
|
||||
File.Move(linkFile,renamed);
|
||||
}
|
||||
else{
|
||||
File.Delete(linkFile);
|
||||
}
|
||||
}catch{
|
||||
// eh, too bad
|
||||
}
|
||||
@ -175,12 +178,14 @@ private static IEnumerable<string> GetLnkDirectories(){
|
||||
yield return Environment.GetFolderPath(Environment.SpecialFolder.CommonDesktopDirectory);
|
||||
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[] sub = Directory.GetDirectories(startMenu);
|
||||
|
||||
if (sub.Length > 0){
|
||||
yield return Path.Combine(startMenu,sub[0],"TweetDeck");
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
private static void RunUninstaller(string guid, int timeout){
|
||||
|
Loading…
Reference in New Issue
Block a user