PTC Creo向けCoDesignerのコマンドラインインストール
コマンドラインでのインストール手順
バージョン3.16以降、PTC Creo用のAltium MCAD CoDesignerインストーラーは、次の機能をサポートしています。
-
CoDesignerのサイレントインストール/単一コマンドによるインストール。
-
UIを操作せずに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の「追加」操作を置き換えるヘッドレス処理
-
明示的に指定された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%
引数リファレンス
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
パスに関する重要な要件
クワイエットモードでは、-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を直接含むフォルダーを指定する必要があります。
クワイエットモードの動作
クワイエットモードは、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"
使用上の注意
-
クワイエットモードでは、コマンドごとにCreoターゲットを1つ明示的に指定します。
-
textのパスが異なれば、同じバージョンのCreoターゲットを複数登録できます。 -
手動/クワイエットモードのターゲットは、アクティブなCoDesignerインストールルート配下の
installations.datに永続的に保存されます。 -
従来の強制モードと通常のUI/クワイエットモードの処理には、レジストリルートに関して従来からの互換性維持のための動作があるため、トラブルシューティング時には、実際の実行ファイルのパスとアクティブなインストールルートを慎重に確認してください。