Lex Omega

Lex Omega. More infos from here

This example shows how to copy a big amount of data. I'm using it to update Lex Omega on notebooks.

<package
        id="lex"
        name="Lex Omega"
        revision="1"
        priority="1"
        execute="once">
        <install cmd="%SOFTWARE%\lex\install.bat" />
        <upgrade cmd="%SOFTWARE%\lex\install.bat" />
        <remove cmd='cmd /c "rmdir /S /Q D:\LEX"' />
</package>

install.bat:

 mkdir "D:\Lex"
 cacls "D:\LEX" /T /E /R U?ytkownicy > null
 xcopy /Y /E %SOFTWARE%\lex\* D:\lex\ > null
 copy /Y %SOFTWARE%\lex\lex.ini d:\lex\
 cacls "D:\LEX" /T /E /G U?ytkownicy:R > null
 copy /Y "%SOFTWARE%\lex\lex omega.lnk" "C:\Documents and Settings\All Users\Pulpit"

I'm using cacls command, because I don't want users to touch anything in Lex directory while WPKG is copying files.