[wpkg-users] Help me please..
Hamza K.
hamza.y at live.de
Fri Jul 13 11:24:47 CEST 2012
Hi,
i have a Problem...
I can easily install and uninstall my programs but i dont know why they fails if i want to upgrade or do a file check.
My Programs dont Upgrade and dont remove if i have two checks. And with the file check it dont install,remove and upgrade it.
Can anyone help me?
Here is my Code:
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id='unlocker' name='Unlocker' revision='1.9.1' priority='' reboot='false' >
<variable name='ARCHITEKTUR' value='x64'/>
<variable name='VERSION' value='1.9.1'/>
<variable name='SOFTWAREPFAD' value='\\192.168.48.103\WPKG\Software'/>
<variable name='PROGRAMPFAD' value='C:\Program Files\System\Unlocker %VERSION%'/>
<variable name='UNINSTALLERPFAD' value='"C:\Program Files\System\Unlocker %VERSION%\uninst.exe"'/>
<variable name='EXEPFAD' value=''/>
<variable name='ANWENDUNGEN' value='"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anwendungen"'/>
<variable name='SMKATEGORIEPFAD' value='"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anwendungen\System-Programme"'/>
<variable name='SMPFADORIGINAL' value='"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Unlocker"'/>
<variable name='SMPFADNEU' value='"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anwendungen\System-Programme\Unlocker"'/>
<variable name='REGISTRYKEY' value='"HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Unlocker"'/>
<check type='logical' condition='or'>
<check type='uninstall' condition='exists' path='Unlocker %VERSION%-%ARCHITEKTUR%' />
<check type='uninstall' condition='versiongreaterthan' path='Unlocker %VERSION%-%ARCHITEKTUR%' value='%VERSION' />
</check>
<install cmd='"%SOFTWAREPFAD%\Unlocker\Unlocker-%VERSION%.exe" /S /D=%PROGRAMPFAD%' />
<install cmd='%ComSpec% /C IF NOT EXIST %ANWENDUNGEN% md %ANWENDUNGEN%'/>
<install cmd='%ComSpec% /C IF NOT EXIST %SMKATEGORIEPFAD% md %SMKATEGORIEPFAD%'/>
<install cmd='%ComSpec% /C MOVE %SMPFADORIGINAL% %SMPFADNEU%'/>
<upgrade cmd='remove'/>
<upgrade cmd='install' />
<upgrade cmd='%ComSpec% /C md "C:\HalloFertig!"'/>
<remove cmd='%UNINSTALLERPFAD% /S'/>
<remove cmd='%ComSpec% /C RD %SMPFADNEU% /S /Q'/>
<remove cmd='%ComSpec% /C REG DELETE %REGISTRYKEY% /F'/>
</package>
</packages>
Thanks
Hamza(Germany)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20120713/f62e82c9/attachment-0001.html>
More information about the wpkg-users
mailing list