Old 13th October 2003, 12:46   #1
0kermit0
Junior Member
 
Join Date: Oct 2003
Posts: 9
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
0kermit0 is offline   Reply With Quote
Old 13th October 2003, 12:49   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 13th October 2003, 13:47   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
http://nsis.sourceforge.net/site/ind...&tx_faq_faq=25
Joost Verburg is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump