I use VB6 package and deployment wizard...
It creates 3 files:
setup.exe
setup.lst
dbobjectcreator.cab
I want to make it where it's just 1 file. like: dbobjectcreator.exe only.
I thought maybe the Zip2Exe in this program could do that, maybe it can, but I cannot figure out how.
I need it to create a setup.zip and when someone clicks on that file it needs to extract all the files to their Temp folder in windows and then auto-run the setup.exe inside of dbobjectcreator.exe.
Is this possible with this program?
Thanks for any information,
Duder
Zip to EXE then run specific file... possible?
9 posts
bot directly, sry.
it will just create an nsis installer that behaves like an SFX archive.
for you purposes you should rather try NSIS Self Extractor.
search the forums or the NSIS Wiki for it.
it's more powerful than Zip2Exe and looks nicer 🙂
beware:
the resulting .exe file will be a nsis installer executable, no SFX, so you'll be unable to extract it with an unzipper.
it will just create an nsis installer that behaves like an SFX archive.
for you purposes you should rather try NSIS Self Extractor.
search the forums or the NSIS Wiki for it.
it's more powerful than Zip2Exe and looks nicer 🙂
beware:
the resulting .exe file will be a nsis installer executable, no SFX, so you'll be unable to extract it with an unzipper.
You can try this:
It comes with a DirToEXE program which is probably what you really need.
-Stu
It comes with a DirToEXE program which is probably what you really need.
-Stu
Originally posted by Comm@nder21What file do you edit to tell the installer to autorun after it extracts? Or is there a help page you can point me at?
bot directly, sry.
it will just create an nsis installer that behaves like an SFX archive.
for you purposes you should rather try NSIS Self Extractor.
search the forums or the NSIS Wiki for it.
it's more powerful than Zip2Exe and looks nicer 🙂
beware:
the resulting .exe file will be a nsis installer executable, no SFX, so you'll be unable to extract it with an unzipper.
I'm just interested in the Zip to EXE.
I'm zipping my 3 files. Then i want to create a exe using this program. Then when you run that EXE it should place the 3 zipped files into a TEMP folder and then auto-run the setup.exe file.
Think i misread the previous post.
If you want to keep it simple, then your script would need to look like this:
-Stu
Put it in the same folder as your files, then right click on it and select Compile NSIS Script.
Name "MyApp"
OutFile "MyApp_install.exe"
Function .onInit
# Extract files.
SetOutPath $EXEDIR
File "setup.exe"
File "setup.lst"
File "dbobjectcreator.cab"
# Run setup.
Exec "$EXEDIR\setup.exe"
# Exit.
Abort
FunctionEnd
Section
SectionEnd
-Stu
Originally posted by Afrow UKThanks.
Put it in the same folder as your files, then right click on it and select Compile NSIS Script.
-Stu [/B]
Originally posted by Afrow UKWhat about deleteing the files once your done?
If you want to keep it simple, then your script would need to look like this:
Put it in the same folder as your files, then right click on it and select Compile NSIS Script.
Name "MyApp"
OutFile "MyApp_install.exe"
Function .onInit
# Extract files.
SetOutPath $EXEDIR
File "setup.exe"
File "setup.lst"
File "dbobjectcreator.cab"
# Run setup.
Exec "$EXEDIR\setup.exe"
# Exit.
Abort
FunctionEnd
Section
SectionEnd
-Stu
I tried this:
Delete "setup.exe"
Delete "setup.lst"
Delete "dbobjectcreator.cab"
This does not work though.
I tried to make it extract into a certain folder. Like:
SystemDir/Program Files/XYZ
but XYZ would not be created?
I've put a MessageBox in there so you can check that the installer is waiting for setup.exe to complete. If you get the MessageBox immediately then you'll need to pass a command line parameter to setup.exe to make it wait (which we do not know at this time).
Name "MyApp"
OutFile "MyApp_install.exe"
Function .onInit
# Extract files.
SetOutPath $EXEDIR
File "setup.exe"
File "setup.lst"
File "dbobjectcreator.cab"
# Run setup.
ExecWait "$EXEDIR\setup.exe"
MessageBox MB_OK "Waiting!"
# Delete temp files.
Delete "$EXEDIR\setup.exe"
Delete "$EXEDIR\setup.lst"
Delete "$EXEDIR\dbobjectcreator.cab"
# Exit.
Abort
FunctionEnd
Section
SectionEnd
-Stu