summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Installer
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-05-22 18:55:09 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-05-22 18:55:09 -0400
commit5fa13459d367bc5e3248a8b1447f4f56354e1fae (patch)
treebb15472d8abd3a65adb255254892814bbff84e9e /src/StardewModdingAPI.Installer
parent51d56f1eecdc171052fea425f92562f695c068b0 (diff)
downloadSMAPI-5fa13459d367bc5e3248a8b1447f4f56354e1fae.tar.gz
SMAPI-5fa13459d367bc5e3248a8b1447f4f56354e1fae.tar.bz2
SMAPI-5fa13459d367bc5e3248a8b1447f4f56354e1fae.zip
show friendly error when running install.exe from within zip file
Diffstat (limited to 'src/StardewModdingAPI.Installer')
-rw-r--r--src/StardewModdingAPI.Installer/InteractiveInstaller.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs
index 01f7a01f..43cb7d70 100644
--- a/src/StardewModdingAPI.Installer/InteractiveInstaller.cs
+++ b/src/StardewModdingAPI.Installer/InteractiveInstaller.cs
@@ -158,7 +158,10 @@ namespace StardewModdingApi.Installer
****/
if (!packageDir.Exists)
{
- this.PrintError($"The 'internal/{platform}' package folder is missing (should be at {packageDir}).");
+ this.PrintError(platform == Platform.Windows && packageDir.FullName.Contains(Path.GetTempPath()) && packageDir.FullName.Contains(".zip")
+ ? "The installer is missing some files. It looks like you're running the installer from inside the downloaded zip; make sure you unzip the downloaded file first, then run the installer from the unzipped folder."
+ : $"The 'internal/{platform}' package folder is missing (should be at {packageDir})."
+ );
Console.ReadLine();
return;
}