Creating a branch 1.1 where I will try to make the 1.1.7 build available, this means I need to merge some changes from 2.0 to here.

This commit is contained in:
RKrom 2013-12-04 17:46:02 +01:00
parent 2a8e2475d8
commit a03bc31aef
247 changed files with 6986 additions and 8233 deletions

View file

@ -108,12 +108,18 @@ namespace ExternalCommand {
private int CallExternalCommand(string commando, string fullPath, out string output) {
try {
return CallExternalCommand(commando, fullPath, null, out output);
} catch (Win32Exception ex) {
} catch (Win32Exception w32ex) {
try {
return CallExternalCommand(commando, fullPath, "runas", out output);
} catch {
throw ex;
w32ex.Data.Add("commandline", config.commandlines[presetCommand]);
w32ex.Data.Add("arguments", config.arguments[presetCommand]);
throw w32ex;
}
} catch (Exception ex) {
ex.Data.Add("commandline", config.commandlines[presetCommand]);
ex.Data.Add("arguments", config.arguments[presetCommand]);
throw;
}
}