Skip to content
⌘ NSIS Forum Archive

Driver Installation Package

5 posts

RockmanNeo#

Driver Installation Package

I am very new to this and would like to know how to create an installer for 7-8 drivers shown from a list. I came across this: Two installations in one installer - NSIS (sourceforge.io)​ though don't know how to proceed from there.

For example: where and what do I put the instruction so that the script will run the driver's setup.exe inside a driver folder?

TIA


## Sections Group 1
SectionGroup /e "Program #1" PROG1
Section "Main" SEC1
##All the files in Group 1 will be installed to the same location, $INSTDIR
SetOutPath "$INSTDIR"
## Main files to install here

messagebox mb_ok sec1

SectionEnd

Section "Other" SEC2
## Other files to install here

messagebox mb_ok sec2

SectionEnd

SectionGroupEnd​
Anders#
I'm not sure if you need the "Two installations in one installer" mode to install drivers.

RequestExecutionLevel Admin
Page Components
Page InstFiles
Section "-Prepare"
InitPluginsDir
SectionEnd
Section "Driver Foo"
SetOutPath $PluginsDir
File "FooDriver.exe"
ExecWait '"$PluginsDir\FooDriver.exe" /silent /whatever'
Delete "$PluginsDir\FooDriver.exe"
SectionEnd
Section "Driver Bar"
SetOutPath $PluginsDir
File "BarBar.exe"
ExecWait '"$PluginsDir\BarBar.exe"'
Delete "$PluginsDir\BarBar.exe"
SectionEnd​
Section "-Cleanup"
SetOutPath $Temp
SectionEnd​ 
RockmanNeo#
Thank you for the reply.
The drivers are in the form of .zip files where there are folders of exe, inf, cfg and others inside.
How do you tell the script to extract the zip files then run the extracted setup.exe?
I've read about lzma compressor and 7z plug-ins but everything is still quite confusing to me.
Anders#
You can't just extract the .zip on your own system before building the installer?

Otherwise, https://nsis.sourceforge.io/ZipDLL_plug-in
RockmanNeo#
Thanks!
I didn't know the compiler has its own compressor built-in. I was just trying to make the exe as small as possible.
I'm starting to get a hang of this, though I still have a lot to learn, like how to change icon, graphics, etc.