我有两个文件,一个exe and dll

EXE是VB.NET应用程序的构建,我也需要DLL

我想要的是一个将这些文件放在一起的自我提取器,然后运行时会提取它们并不可思议地运行EXE

是否有一个非常简单易于使用的包装软件可以这样做?无论商业与否,都没关系

有帮助吗?

解决方案

你可以尝试 温齐普.

其他提示

您可以使用 NSIS (免费和开源)。它非常灵活,但也可以用于此类简单的任务(在这种情况下,它对我有好处)。假设您的文件是命名的 yourapp.exeyourlib.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安装的教程或 请参阅此页面.)

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top