Archive: Execute files not on target system


Execute files not on target system
Hi,

how can one transport a small executable in an NSIS install and copy it to the target system to execute it at the very beginning of the install (i.e. before the first GUI appears) ?

Actually I need to check 3 things:
- is directX installed (most likely yes)
- what version of directX is installed
- is MSXML 4.0 installed

I wrote a small C++ executable that checks this, but maybe I should turn it into a plugin?

Thanks


You can execute your program from installer's .onInit function and check exit code (ExecWait).
NSIS Archive scripts may also help http://nsis.sourceforge.net/archive/...nstances=0,110
Script registry and file instructions - Manual 4.9.
(ReadRegStr, FindFirst, GetDLLVersion)