Explorar el Código

fix to setup to handle whitespace in exe name

Scrublord1336 hace 6 años
padre
commit
f094b2e01d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();
       }
    }