@@ -275,6 +275,17 @@ func RawInfoModal(id, title, description string, isOpenAsar bool) g.Widget {
275
275
g .Style ().SetFontSize (20 ).To (
276
276
g .Label (description ).Wrapped (isDynamic ),
277
277
),
278
+ & CondWidget {id == "#scuffed-install" , func () g.Widget {
279
+ return g .Column (
280
+ g .Dummy (0 , 10 ),
281
+ g .Button ("Take me there!" ).OnClick (func () {
282
+ // this issue only exists on windows so using Windows specific path is oki
283
+ username := os .Getenv ("USERNAME" )
284
+ programData := os .Getenv ("PROGRAMDATA" )
285
+ g .OpenURL ("file://" + path .Join (programData , username ))
286
+ }).Size (200 , 30 ),
287
+ )
288
+ }, nil },
278
289
g .Dummy (0 , 20 ),
279
290
& CondWidget {isOpenAsar ,
280
291
func () g.Widget {
@@ -445,8 +456,11 @@ func renderInstaller() g.Widget {
445
456
"Then, verify Vencord installed successfully by looking for its category in Discord Settings" ),
446
457
InfoModal ("#unpatched" , "Successfully Unpatched" , "You must now fully close Discord (from the tray)" ),
447
458
InfoModal ("#scuffed-install" , "Hold On!" , "You have a broken Discord Install.\n " +
448
- "Please reinstall Discord before proceeding!\n " +
449
- "Otherwise, Vencord will likely not work.\n " ),
459
+ "Sometimes Discord decides to install to the wrong location for some reason!\n " +
460
+ "You need to fix this before patching, otherwise Vencord will likely not work.\n \n " +
461
+ "Use the below button to jump there and delete any folder called Discord or Squirrel.\n " +
462
+ "If the folder is now empty, feel free to go back a step and delete that folder too.\n " +
463
+ "Then see if Discord still starts. If not, reinstall it" ),
450
464
RawInfoModal ("#openasar-confirm" , "OpenAsar" , "OpenAsar is an open-source alternative of Discord desktop's app.asar.\n " +
451
465
"Vencord is in no way affiliated with OpenAsar.\n " +
452
466
"You're installing OpenAsar at your own risk. If you run into issues with OpenAsar,\n " +
0 commit comments