Difference between revisions of "Lex Omega"
From WPKG | Open Source Software Deployment and Distribution
m |
m |
||
Line 1: | Line 1: | ||
This example shows how to copy a big amount of data. I'm using it to update Lex Omega on notebooks. | 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" | id="lex" | ||
name="Lex Omega" | name="Lex Omega" | ||
Line 10: | Line 11: | ||
<upgrade cmd="%SOFTWARE%\lex\install.bat" /> | <upgrade cmd="%SOFTWARE%\lex\install.bat" /> | ||
<remove cmd='cmd /c "rmdir /S /Q D:\LEX"' /> | <remove cmd='cmd /c "rmdir /S /Q D:\LEX"' /> | ||
− | + | </package> | |
+ | </source> | ||
install.bat: | install.bat: | ||
+ | <source lang="dos"> | ||
mkdir "D:\Lex" | mkdir "D:\Lex" | ||
cacls "D:\LEX" /T /E /R U?ytkownicy > null | cacls "D:\LEX" /T /E /R U?ytkownicy > null | ||
Line 20: | Line 23: | ||
cacls "D:\LEX" /T /E /G U?ytkownicy:R > 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" | 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. | 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]] | [[category:Silent Installers]] |
Revision as of 15:24, 17 February 2008
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.