瀏覽代碼

fix to setup to handle whitespace in exe name

Scrublord1336 6 年之前
父節點
當前提交
f094b2e01d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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();
       }
    }