[wpkg-users] Oracle Client 11 (Marco Gaiarin)

Jáder Marasca dv.linuxfacil at gmail.com
Mon Jun 12 14:30:52 CEST 2017


Sorry my delay, I´ll reply here my config to document to other one!
This is the WPKG package:


[root at andorinha packages]# cat OracleClient.xml
<packages>
<package id="OracleClient"
         name="Cliente BD Oracle v11"
         revision="2"
         priority="950"
         reboot="false">

        <check type="file" condition="exists"
path="c:\oracle\odp.net\bin\2.x\Oracle.DataAccess.dll"
/>

        <install cmd="%SOFTWARE%\Cliente11.bat" />

        <upgrade include="install"/>

        <remove cmd="%COMSPEC% /C rmdir c:\Oracle /s /q" />

</package>

</packages>



And this is the BATCH file :


[root at andorinha software]# cat Cliente11.bat
@echo off
cls
if not exist C:\OracleClient11 mkdir C:\OracleClient11
xcopy /q /j /y /s /i /c \\servidor\wpkg\software\OracleClient11
 C:\OracleClient11
rem robocopy   \\servidor\wpkg\software\OracleClient11  C:\OracleClient11
/S /NP /ETA /V
c:
cd C:\OracleClient11
call install.bat odp.net2 c:\oracle odac
cd \
rmdir c:\OracleClient11 /s /q


The actual problem was a permission issue on share of SAMBA. :(
It was not a WPKG problem but anyways, here is the packages are working on
my install.


2016-11-08 17:45 GMT-03:00 Stefan Pendl <stefan.pendl.71 at gmail.com>:

> Am 08.11.2016 um 04:15 schrieb Sydney Tsai:
>
>> Also you may want to use  COMSEC to warp up commands, sometime commands
>> don't work well on its own.
>> Something like this:
>>  <install cmd="%SOFTWARE%\Cliente11.bat" /> to
>>
>>  <install cmd='%COMSEC% /C "%SOFTWARE%\Cliente11.bat"' />
>> Note that there is a single quote outside of double quote.
>>
>> Hope this will help.
>>
>>
> Shouldn't this read %ComSpec%, notice the missing "P" ;-)
>
>
> --
> *Stefan P.*
>
> Top-posting:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermai
> l/wpkg-users/
>
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20170612/3ffc79b9/attachment.html>


More information about the wpkg-users mailing list