Archive: checking windows version and execute file


checking windows version and execute file
i found the "GetWindowsVersion-Function".

but now, how can i execute a file according to the windows version (2000 -> w2k.exe, 98 -> w98.exe ...)

the files are in the same folder as the setup.exe. i want to execute those files before the installer start to copy the files to the harddisk.

how can i do this ? any hints, examples ... ?

thx in advance


Use Exec, ExecWait, ExecShell or nsExec (a plug-in) to execute whatever executable file you want. To execute according to the Windows verseion use StrCmp on the return value. To execute it before the installation starts, do it in .onInit, .onGUIInit or any callback function that is called before the sections are executed.


http://nsis.sourceforge.net/site/ind...&tx_faq_faq=25