nightrhyme
19th September 2006 12:02 UTC
Making installer for multiple exe's Help
I would like to make an installer who installs/launches several exe's. Basically a bunch of codec exe's for at codec guide I made..
I have tried several installers but they are quite complicated and I just haven't got the time.
Does anyone here know of and easy to use program that will let me specify a bunch of exe's that will be packed in one exe and when launched will install all the specified exe's one at the time.
I could not find the option to do this in NSIS Quick Setup Script Generator
Thanx in advance..
Comm@nder21
19th September 2006 16:34 UTC
write your own nsis script
then execute the exe files with "ExecWait".
very easy.
you could even work with macros to decrease work and increase copy-paste action :)
nightrhyme
19th September 2006 23:43 UTC
Easy to you maybe :)
Care to write me some code I could use ?
Thanx in advance
Comm@nder21
20th September 2006 17:38 UTC
copy all you exe files into one folder.
then paste the following code into a new textfile.
save it as blabla.nsi in the same folder.
then edit the "!insertmacro" lines, to fit your codecs.
done.
enhance it yourself, if you need more :)
Name "mysetup"
OutFile "mysetup.exe"
Page components
Page directory
Page instfiles
!macro add_codec NAME FILE
Section "${NAME}"
File "${FILE}"
ExecWait "$OUTDIR\${FILE}"
SectionEnd
!macroend
Section "-hiddenbegin"
SetOutPath "$PLUGINSDIR\codecs"
SectionEnd
!insertmacro add_codec "Codec 1" "codec1.exe"
!insertmacro add_codec "Codec 2" "codec2.exe"
!insertmacro add_codec "Codec 3" "codec3.exe"
Section "-hidden2"
SetOutPath "$EXEDIR"
RMDir /r "$PLUGINSDIR\codecs"
SectionEnd