ファイルを抽出して実行する自己抽出者
-
29-09-2019 - |
質問
2つのファイル、exe and dllがあります
exeはvb.netアプリケーションのビルドであり、そこにもdllが必要です
私が欲しいのは、これらのファイルをまとめるセルフ抽出装置で、実行するとそれらを抽出し、Exeを押し出して実行します
これを行う非常にシンプルで使いやすいボックスソフトウェアはありますか?コマーシャルかどうかは関係ありません
解決
試してみることができます winzip.
他のヒント
使用できます NSIS (無料およびオープンソース)。それは非常に柔軟ですが、そのような単純なタスクにも使用できます(そして、そのような場合は私に役立ちました)。ファイルに名前が付けられていると仮定します yourapp.exe
と yourlib.dll
, 、このスクリプトを使用できます。
# this will be the created executable archive
OutFile "archive.exe"
# define the directory to install to, the installer's directory in this case
InstallDir $EXEDIR
# don't create a window for the unarchiver
# You could get fancy and do all kinds of configuration
# in the non-silent install; this example is the simplest it can be.
SilentInstall silent
# the executable part
Section
# define the output path for the following files
SetOutPath $INSTDIR
# define what to install and place it in the output path...
# ...your app...
File yourapp.exe
# ...and the library.
File yourlib.dll
# run your application
ExecShell yourapp.exe
# done
SectionEnd
NSISをインストールし、このスクリプトを作成します archive.nsi
, 、それを右クリックして、「NSISでコンパイル」を選択します。ファイル archive.exe
作成されます。
次に、ターゲットシステムでは、ユーザーが行う必要があるのは起動することです。 archive.exe
;スクリプトは、プログラムを開梱して実行します。
(空想を取得したい場合は、NSISでインストールされているチュートリアルを調べることができます。 このページを参照してください.)
所属していません StackOverflow