l--*_*''' 7 .net exe self-extracting
我有两个文件,一个EXE和一个DLL
exe是一个vb.net应用程序的构建,我也需要DLL
我想要的是一个自我提取器,将这些文件放在一起,然后运行时它将提取它们并立即运行EXE
是否有一个非常简单,易于使用的BOX软件将执行此操作?商业与否,无所谓
Pis*_*3.0 10
您可以使用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一起安装的教程,或者查看此页面.)
| 归档时间: | 
 | 
| 查看次数: | 5717 次 | 
| 最近记录: |