mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-07 21:40:35 +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)){
|
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 @@ private static IEnumerable<string> GetLnkDirectories(){
|
|||||||
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){
|
||||||
|
Loading…
Reference in New Issue
Block a user