Archive: Win2K or Windows XP


Win2K or Windows XP
Need to install files based on the operating system. If it is Win2K, then the file structure is WINNT\System. If it is Windows XP, it is Windows\System. Any ideas on how to handle this issue. Thanks in advance.


use Variables. They are processed at runtime, which means that the reflect the value in the current system.

$WINDIR for the Windows Directory
and $SYSDIR for the System (Win9x) / System32 (WinNT) Directory. There are a lot more variables which helps you building your installer. You should check the docs which are supplied with NSIS