Pregunta

Tengo dos archivos, un archivo EXE una DLL

el exe es una versión de una aplicación vb.net y necesito el archivo DLL en allí también

Lo que quiero es un extractor de auto que ponga estos archivos juntos, entonces cuando se ejecuta se va a extraer de ellos y immeidately ejecutar el EXE

¿hay un simple MUY y fácil de usar software de A PARTIR DE LA CAJA que va a hacer esto? comercial o no, que no importa

¿Fue útil?

Solución

Otros consejos

Puede utilizar NSIS (libre y de código abierto). Es muy flexible, sin embargo, puede ser utilizado para este tipo de tareas sencillas, también (y esto me ha servido bien en estos casos). Suponiendo sus archivos se denominan yourapp.exe y yourlib.dll, usted podría usar este script:

# 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

Instalar NSIS, crear este script como archive.nsi, haga clic derecho sobre él y seleccione "Compilar con NSIS". se creará el archivo de archive.exe.

A continuación, en el sistema de destino, todo el usuario tiene que hacer es archive.exe lanzamiento; el guión se descomprimirá y ejecutar su programa.

(Si usted desea conseguir la suposición, se puede mirar en los tutoriales que se instalan con NSIS, o ver esta página .)

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top