@@ -21,18 +21,18 @@ public Option(string name, int id, bool check)
2121 public static class Install
2222 {
2323 static bool done ;
24- static int percentage ;
25- public static string appdataDir = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , "EZCode" ) ;
26- public static string tempDirectory = Path . Combine ( Path . GetTempPath ( ) , "EZCode" ) ;
24+ public static string appdataDir = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . CommonApplicationData ) , "EZCode" ) ;
25+ public static string tempDirectory = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . Windows ) , "Temp" , "EZCode" ) ;
2726 public static string filepath = "C:\\ Program Files\\ EZCode\\ " ;
27+ public static string githubRepoUrl = "https://github.com/JBrosDevelopment/EZCode" ;
2828 static string _MainText ;
29+ static int percentage ;
2930 static string MainText
3031 {
3132 get => _MainText ;
3233 set
3334 {
3435 _MainText = value ;
35- //Console.WriteLine(_MainText);
3636 }
3737 }
3838 public static void DownloadMain ( )
@@ -41,9 +41,8 @@ public static void DownloadMain()
4141 Option [ ] options = Options ( ) ;
4242 try
4343 {
44- string githubRepoUrl = "https://github.com/JBrosDevelopment/EZCode" ;
45- string type = "Official" ;
46- string realTag = "2.0.0" ;
44+ string type = "" ;
45+ string realTag = "2.0.2" ;
4746 string releaseTag = type != "" ? $ "v{ realTag } _{ type . ToLower ( ) } " : $ "v{ realTag } ";
4847 string releaseTitle = type != "" ? $ "v{ realTag } _{ type } " : $ "v{ realTag } ";
4948
@@ -116,8 +115,8 @@ void ezcodeplayer() // Install EZCode Main
116115 }
117116 Directory . Delete ( tempDirectory , true ) ;
118117
119- Program . CreateShortcut ( "EZCode" , Path . Combine ( decompressDirectory , "EZCodePlayer.exe" ) ) ;
120-
118+ Program . CreateShortcut ( "EZCode Player " , Path . Combine ( decompressDirectory , "EZCodePlayer.exe" ) ) ;
119+ Program . CreateStartMenuShortcut ( "EZCode" , "EZCode Player" , Path . Combine ( decompressDirectory , "EZCodePlayer.exe" ) ) ;
121120 Program . SetUpFile ( Path . Combine ( decompressDirectory , "EZCodePlayer.exe" ) , Path . Combine ( appdataDir , "EZCode" , "EZCode_Logo.ico" ) ) ;
122121 }
123122
@@ -146,6 +145,7 @@ void slnbuilder() // Install Sln Builder
146145 Directory . Delete ( tempDirectory , true ) ;
147146
148147 Program . CreateShortcut ( "SLN Builder" , Path . Combine ( decompressDirectory , "EZ_SLN_Builder.exe" ) ) ;
148+ Program . CreateStartMenuShortcut ( "EZCode" , "SLN Builder" , Path . Combine ( decompressDirectory , "EZ_SLN_Builder.exe" ) ) ;
149149 }
150150
151151 void ez_ide ( ) // Install IDE
@@ -172,7 +172,8 @@ void ez_ide() // Install IDE
172172 }
173173 Directory . Delete ( tempDirectory , true ) ;
174174
175- Program . CreateShortcut ( "EZCode IDE" , Path . Combine ( decompressDirectory , "EZ_IDE.exe" ) ) ;
175+ Program . CreateShortcut ( "EZ IDE" , Path . Combine ( decompressDirectory , "EZ_IDE.exe" ) ) ;
176+ Program . CreateStartMenuShortcut ( "EZCode" , "EZ IDE" , Path . Combine ( decompressDirectory , "EZ_IDE.exe" ) ) ;
176177 }
177178 }
178179 catch ( Exception ex )
0 commit comments