[ InstallShield ] ビルドエラー(1014):Cannot rename directory ・・・

Pocket

インストールシールドでセットアッププロジェクトのビルド時に意味不明なエラーに悩まされたのでその備忘録として残しておきます。なお、Visual Studio 2015 を利用していました(関係ないような気もしますが)。

スポンサーリンク

ビルドエラー(1014):Cannot rename directory

一旦は正常にインストールするまでの動作確認まではしていたのですが、なぜか急にインストールに失敗するようになりました。

Why not?

困ったときのリビルド

なぜ、インストールに失敗するようになったのかわかりません。途方に暮れていると Eclipse を思いました。

「よしっ!クリーンしよう!リビルドしよう」

我ながら良いアイデアです。そしてリビルドすると、セットアッププロジェクトがビルドエラーを出力しています。

「ビルドエラー(1014):Cannot rename directory ・・・・」

なんですか?これ?

すると、ここに答えがありました。英語は苦手(無理)なんですけど・・・

  • Windows Explorer or the DOS Prompt is open and pointing to the build location.
  • The existing release that the build is trying to overwrite is in use. This happens when one of the setup files or folders in the build location are being accessed by some external application on the machine.
  • The build location may be a network location that may not be accessible during the time of the build.

 

この時の答えは1番目のものでした。

前回のビルド時のビルドログ(セットアッププロジェクト配下のフォルダに存在)をエクスプローラで表示したままの状態だったため、ビルドエラーとなっていたようです。

 

めでたく、このエクスプローラを閉じてリビルドすると、ビルドエラーもなくインストールもアンインストールもエラーとはならなくなりました。

 

めでたしめでたし。

 

が、結局は、「単純に運が悪く、無駄な時間おつかれさん」って感じの話です。

 

スポンサーリンク


Pocket

Leave a Comment

Your email address will not be published. Required fields are marked *