PTC Creo向けCoDesignerのコマンドラインインストール
コマンドラインによるインストール手順
バージョン 3.16 以降では、PTC Creo 向け Altium MCAD CoDesigner インストーラーは以下をサポートしています:
-
CoDesigner のサイレント / 単一行インストールフロー。
-
UI を操作せずに、Creo のバージョンおよびカスタム Creo インストールパスを指定可能。
概要
Altium.Designer.PtcCreo.InstallUI.exeでは、3 種類のコマンドライン使用方法をサポートしています:
-
従来の強制インストール
-
従来の強制アンインストール
-
静かな手動ターゲット登録
このドキュメントでは、各モードの引数、想定入力、および実際の使用方法について説明します。
実行ファイルの場所
Typical installed location:
C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer.PtcCreo.InstallUI.exe
Depending on environment and deployment history, the product may also exist under:
C:\Program Files\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer.PtcCreo.InstallUI.exe
コマンドモード
従来の強制インストール
Long form:
Altium.Designer.PtcCreo.InstallUI.exe -i "<plugin-install-root>"
Purpose:
-
内部 / パッケージ化されたインストーラのブートストラップフロー
-
指定された CoDesigner インストールルートにプラグインファイルをコピーします
Example:
& "C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer.PtcCreo.InstallUI.exe" `
-i "C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin"
Notes:
-
これは従来の強制フローです
-
-creo-versionを受け取りません。また、-creo-path -
静音モードの引数と組み合わせて使用しないでください
従来の強制アンインストール
Short form:
Altium.Designer.PtcCreo.InstallUI.exe -u
Alternative uninstall switch used in some places:
Altium.Designer.PtcCreo.InstallUI.exe -uninstall
Purpose:
-
内部 / パッケージ化されたアンインストールフロー
-
現在のアンインストールロジックに従って、プラグイン登録およびインストール内容を削除します
Example:
& "C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer.PtcCreo.InstallUI.exe"`
-u
Notes:
-
これは従来の強制フローです
-
静音モードの引数と組み合わせて使用しないでください
静かな手動ターゲット登録
Long form:
Altium.Designer.PtcCreo.InstallUI.exe -quiet -creo-version <version> -creo-path "<path>"
Short form:
Altium.Designer.PtcCreo.InstallUI.exe -q -cv <version> -cp "<path>"
Purpose:
-
インストーラー UI で Add を使用する代わりとなるヘッドレス動作
-
明示的な Creo ターゲットパスを 1 つ追加し、UI を開かずに通常のインストール / 更新ロジックを実行します
Examples:
& "C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer.PtcCreo.InstallUI.exe" `
-quiet `
-creo-version "11.0" `
-creo-path "C:\PTC\Creo 11.0.1.0\Common Files\text"
& "C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer.PtcCreo.InstallUI.exe" `
-q `
-cv "11.0" `
-cp "C:\PTC\Creo 11.0.1.0\Common Files\text"
"C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin\register\Altium.Designer. PtcCreo.InstallUI.exe" -quiet -creo-version "11.0" -creo-path "C:\PTC\Creo 11.0.1.0\ Common Files\text" echo %ERRORLEVEL%
引数リファレンス
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
重要なパスに関する条件
quiet モードでは、-creo-path / -cp は config.pro を含む Creo の text ディレクトリを指している必要があります。
Correct style:
C:\PTC\Creo 11.0.1.0\Common Files\text
Not the higher-level install root:
C:\PTC\Creo 11.0.1.0
現在のバックエンドは、config.pro を直接含むフォルダーを想定しています。
quiet モードの動作
quiet モードは、UI 内での手動 Add を置き換えることを目的としています。
Behavior:
-
UI は表示されません
-
明示的な Creo ターゲットが 1 つ、プログラムによって追加されます
-
UI パスと同じインストール / 更新ロジックが実行されます
-
その実行では、指定された Creo ターゲットのみが選択されます
Quiet mode should not be combined with:
-
-i -
-u -
-uninstall
終了コード
Current quiet-mode exit code contract:
0 = success
1 = invalid arguments
2 = invalid Creo target input
3 = registration failure
4 = unexpected internal error
無効な使用例
Missing quiet switch:
Altium.Designer.PtcCreo.InstallUI.exe -creo-version "11.0" -creo-path "C:\PTC\Creo 11.0.1.0\Common Files\text"
Missing version:
Altium.Designer.PtcCreo.InstallUI.exe -quiet -creo-path "C:\PTC\Creo 11.0.1.0\CommonFiles\text"
Missing path:
Altium.Designer.PtcCreo.InstallUI.exe -quiet -creo-version "11.0"
Conflicting modes:
Altium.Designer.PtcCreo.InstallUI.exe -i "C:\Program Files (x86)\Altium CoDesigner PTC Creo Plugin" -quiet -creo-version "11.0" -creo-path "C:\PTC\Creo 11.0.1.0\Common Files\ text"
Wrong path level:
Altium.Designer.PtcCreo.InstallUI.exe -quiet -creo-version "11.0" -creo-path "C:\PTC\Creo 11.0.1.0"
実用上の注意
-
quiet モードは、1 コマンドにつき 1 つの明示的な Creo ターゲット用です。
-
同じバージョンの複数の Creo ターゲットでも、異なる
textパスを使用していれば有効です。手動 / quiet ターゲットは、アクティブな CoDesigner インストールルート配下の installations.datに永続的に保存されます。 -
従来の強制モードと通常の UI / quiet フローでは、レジストリルート周りに歴史的な互換性動作があるため、トラブルシューティング時には実際の実行ファイルパスとアクティブなインストールルートを慎重に確認してください。