Browse Source

fix to setup to handle whitespace in exe name

Scrublord1336 6 năm trước cách đây
mục cha
commit
f094b2e01d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/XUnity.AutoTranslator.Setup/Program.cs

+ 1 - 1
src/XUnity.AutoTranslator.Setup/Program.cs

@@ -122,7 +122,7 @@ namespace XUnity.AutoTranslator.Setup
 
          shortcut.WorkingDirectory = Path.GetDirectoryName( targetFileLocation );
          shortcut.TargetPath = targetFileLocation;
-         shortcut.Arguments = "-c " + Path.GetFileNameWithoutExtension( shortcutName ) + ".ini";
+         shortcut.Arguments = "-c \"" + Path.GetFileNameWithoutExtension( shortcutName ) + ".ini\"";
          shortcut.Save();
       }
    }