Skip to content

Commit c3b2d0a

Browse files
committed
quick touch-up for consistency
1 parent c66e8c6 commit c3b2d0a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Synapse.NodeService/Utilities/Utilities.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,15 @@ public static bool InstallService(bool install, Dictionary<string, string> confi
6868
if( configValues != null )
6969
SynapseNodeConfig.Configure( configValues );
7070

71-
Type type = typeof( SynapseNodeServiceInstaller );
72-
71+
string fullFilePath = typeof( SynapseNodeServiceInstaller ).Assembly.Location;
7372
string logFile = $"Synapse.Node.InstallLog.txt";
7473

7574
List<string> args = new List<string>();
7675

7776
args.Add( $"/logfile={logFile}" );
7877
args.Add( "/LogToConsole=true" );
7978
args.Add( "/ShowCallStack=true" );
80-
args.Add( type.Assembly.Location );
79+
args.Add( fullFilePath );
8180

8281
if( !install )
8382
args.Add( "/u" );
@@ -90,7 +89,7 @@ public static bool InstallService(bool install, Dictionary<string, string> confi
9089
}
9190
catch( Exception ex )
9291
{
93-
string path = Path.GetDirectoryName( type.Assembly.Location );
92+
string path = Path.GetDirectoryName( fullFilePath );
9493
File.AppendAllText( $"{path}\\{logFile}", ex.Message );
9594
message = ex.Message;
9695
return false;

0 commit comments

Comments
 (0)