アプリケーションをEドライブ(E:\ MyApp)にインストールしたい場合はDドライブ(D:\ MyApp)、Dドライブもターゲットコンピューターに存在しない場合はCドライブ(C :\ MyApp)。ドライブの存在を確認するために、プリプロセッサでどの変数を使用する必要がありますか?誰か助けてもらえますか?
<?if E Drive exists ?>
<?define varRootDrive = "E:\" ?>
<?elseif D Drive exists ?>
<?define varRootDrive = "D:\" ?>
<?else ?>
<?define varRootDrive = "C:\" ?>
<?endif ?>
<?endif ?>
<Property Id="TARGETDIR"> $(var.varRootDrive) </Property>