Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nsis スクリプトをコンパイルするときに、ファイル (config.json) からいくつかの変数にいくつかの値を読み込みたいと考えています。どうすればそれを行うことができますか?
前もって感謝します。
実行時に json ファイルを解析する必要がある場合は、次!defineの/fileオプションを使用できます。
!define
/file
!define /file OPTIONS json.txt
json.txt の内容で OPTIONS を定義します。
生成されたexeを変更するためにコンパイル時にjsonファイルを利用したい場合は、実際に行っていることであるある種のプリコンパイラが必要です。