Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stascorp/rdpwrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStas'M <x86corez@gmail.com>2017-12-27 17:12:28 +0300
committerStas'M <x86corez@gmail.com>2017-12-27 17:12:28 +0300
commit180f41197aa6384b918caaec24d2ce17b262b645 (patch)
treecc93226924938181687969a72b5d562620c69fe1
parent51b3421a65fce61ec5ce58d703c058a8edf8542a (diff)
Installer: Allow to install INI from current directory (fix #300)
-rw-r--r--src-installer/RDPWInst.dpr16
1 files changed, 14 insertions, 2 deletions
diff --git a/src-installer/RDPWInst.dpr b/src-installer/RDPWInst.dpr
index 3a97730..e5e43a6 100644
--- a/src-installer/RDPWInst.dpr
+++ b/src-installer/RDPWInst.dpr
@@ -1,5 +1,5 @@
{
- Copyright 2016 Stas'M Corp.
+ Copyright 2017 Stas'M Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -670,7 +670,19 @@ begin
OnlineINI.Free;
end;
if not Online then
- ExtractRes('config', ExtractFilePath(ExpandPath(WrapPath)) + 'rdpwrap.ini');
+ begin
+ S := ExtractFilePath(ParamStr(0)) + 'rdpwrap.ini';
+ if FileExists(S) then
+ begin
+ OnlineINI := TStringList.Create;
+ OnlineINI.LoadFromFile(S);
+ S := ExtractFilePath(ExpandPath(WrapPath)) + 'rdpwrap.ini';
+ OnlineINI.SaveToFile(S);
+ Writeln('[+] Current INI file -> ', S);
+ OnlineINI.Free;
+ end else
+ ExtractRes('config', ExtractFilePath(ExpandPath(WrapPath)) + 'rdpwrap.ini');
+ end;
RDPClipRes := '';
case Arch of