Changes

Jump to: navigation, search

Lex Omega

58 bytes added, 15:24, 17 February 2008
m
no edit summary
This example shows how to copy a big amount of data. I'm using it to update Lex Omega on notebooks.
<source lang="xml"><package
id="lex"
name="Lex Omega"
<upgrade cmd="%SOFTWARE%\lex\install.bat" />
<remove cmd='cmd /c "rmdir /S /Q D:\LEX"' />
</package></source>
install.bat:
<source lang="dos">
mkdir "D:\Lex"
cacls "D:\LEX" /T /E /R U?ytkownicy > null
cacls "D:\LEX" /T /E /G U?ytkownicy:R > null
copy /Y "%SOFTWARE%\lex\lex omega.lnk" "C:\Documents and Settings\All Users\Pulpit"
</source>
I'm using cacls command, because I don't want users to touch anything in Lex directory while WPKG is copying files.
[[category:Silent Installers]]

Navigation menu