|
@@ -41,34 +41,26 @@ namespace WingCloudServer
|
|
|
//=========================================================================//
|
|
|
|
|
|
//启动 工具
|
|
|
- var _dependencies = ConfigurationManager.GetParammeter<StringParameter>("Dependencies", "Data").Value;
|
|
|
+ var _dependencies = ConfigurationManager.GetParammeter<StringParameter>("Dependencies", "Apps").Value;
|
|
|
if (!string.IsNullOrEmpty(_dependencies))
|
|
|
{
|
|
|
- var items = _dependencies.Split(',');
|
|
|
- foreach (var item in items)
|
|
|
+ var dependenciesApps = _dependencies.Split(',');
|
|
|
+ foreach (var item in dependenciesApps)
|
|
|
{
|
|
|
- var array = item.Split('-');
|
|
|
- if (array == null || array.Length <= 1)
|
|
|
+ if (!string.IsNullOrEmpty(item))
|
|
|
{
|
|
|
- if (item.Contains('\\'))
|
|
|
+ var appPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, item);
|
|
|
+ ProcessStarter.StartProcess(appPath);
|
|
|
+ var arry = item.Split('.');
|
|
|
+ if (arry.Length > 0)
|
|
|
{
|
|
|
- ProcessStarter.StartProcess(item);
|
|
|
- var arrayexe = item.Split('\\');
|
|
|
- if (arrayexe.Length > 0)
|
|
|
- {
|
|
|
- _dependencieNames.Add(arrayexe[1]);
|
|
|
- }
|
|
|
+ _dependencieNames.Add(arry[0]);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- ProcessStarter.StartTool(item);
|
|
|
_dependencieNames.Add(item);
|
|
|
}
|
|
|
- }
|
|
|
- if (array.Length == 2)
|
|
|
- {
|
|
|
- ProcessStarter.StartTool(array[0], array[1]);
|
|
|
- _dependencieNames.Add(array[0]);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|