Commit a17f2a1f authored by AP matsuo koji's avatar AP matsuo koji 😲

cli 1

parent 6873e93e
This diff is collapsed.
......@@ -8,6 +8,8 @@ include::config.adoc[]
//:!sectnums:
//:imagesdir: Images
// hoge
//@ICON_CUSTOM@
{ExtendStyle}
......
......@@ -31,6 +31,7 @@ include("comfuncs.js");
// exit.push(function(){ if (isOk(stopWach)) echo("exit spend time=",stopWach.stop());});
// [get command-arguments] コマンド引数の取得
var pm = uParam()
// 任意;オプションキーパラメータ群を指定する(なければ行コメントアウト)
// .set("inFile").opt("/I").next("*") .init("") .desc("input file")
......@@ -49,11 +50,13 @@ var pm = uParam()
// [Main process] 処理を記述
var InstRegURL = "HKCU\\Software\\Dainippon Screen Mfg.Co.,Ltd.\\ToolJsFuncScript\\1.0";
var InstPath = readParam.reg(InstRegURL).get("InstallPath");
if ( isNone(InstPath) ){
echo(-1,"警告::インストール先が見つかりません:",InstRegURL);
InstPath = getEnv().exeDir;
}
InstPath = getEnv().exeDir; // レジストリ参照をやめます。exeの場所のみ。
// var InstPath = readParam.reg(InstRegURL).get("InstallPath");
// if ( isNone(InstPath) ){
// echo(-1,"警告::インストール先が見つかりません:",InstRegURL);
// InstPath = getEnv().exeDir;
// }
/////////////////////////////////////////////////////////////
var adocTPL = uHereDoc.hereDoc(function(){/*
......@@ -142,6 +145,9 @@ if ( pm.bOneDoc ) {
}else{
if ((!pm.bForce)&&(!copySure(tgtconfigPath)))
exit(-1);
echo("configPath=",configPath.FP());
echo("tgtconfigPath=",tgtconfigPath.FP());
copyFile(configPath,tgtconfigPath);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment