[wpkg-users] Package still installed...
Cedric Frayssinet
cedric.frayssinet at gmail.com
Mon Jan 16 10:14:47 CET 2012
Stefan, i don't use the last wpkg :/
NSIS make me crazy :/
Now, i have issue with upgrade...
I used this XML :
*
<package>
id="Risbee"
name="Risbee - Programmation graphique de robots"
revision="%version%.3"
priority="10"
reboot="false" >
<variable name="version" value="3.1.0" />
<check type="uninstall" condition="exists" path="Risbee" />
<install cmd='%SOFTWARE%\risbee\unattended.cmd' />
<upgrade cmd='%SOFTWARE%\risbee\unattended.cmd' />
<remove cmd='%SOFTWARE%\risbee\unattended-uninstall.cmd' />
</package>*
With unattended.cmd :
*
@echo off
set BINARY=risbee-3.1.0-setup.exe
set INSTALLER_LOC=%~dp0
set EXIT_CODE=0
set PROG_FILES=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROG_FILES=%ProgramFiles(x86)%
call "%INSTALLER_LOC%unattended-uninstall.cmd"
start /wait "Risbee" "%INSTALLER_LOC%%BINARY%" /S /NCRC /D="%PROG_FILES%"
set EXIT_CODE=%ERRORLEVEL%
exit /B %EXIT_CODE%*
and unattended-uninstall.cmd :
*@echo off
:: This is required to evaluate the target of %ProgramFiles% on 64-bit
systems
:: Please note that this is required only if you uninstall a 32-bit
application.
set PROGRAM_FILES=%ProgramFiles%
if not "%ProgramFiles(x86)%" == "" set PROGRAM_FILES=%ProgramFiles(x86)%
::Application install folder
set VLANDIR=%PROGRAM_FILES%\POB-Technology
set APP_DIR=%PROGRAM_FILES%\POB-Technology\Risbee
:: Path to the uninstaller (see path definition above)
set UNINSTALLER=%APP_DIR%\uninstall.exe
:: Options to be passed to the uninstaller in order to uninstall silently
set OPTIONS=/S
if not exist "%UNINSTALLER%" goto good_end
start /wait "Risbee uninstall" "%UNINSTALLER%" %OPTIONS%
REM Unfortunately the uninstaller seems to fork a child process and the
parent
REM process exits immediately. So give it some time to uninstall
for /L %%C IN (1,1,30) DO (
if not exist "%UNINSTALLER%" goto good_end
ping -n 2 127.0.0.1 > NUL
)
:bad_end
exit /B 1
:good_end
if exist "%VLANDIR%" rmdir /s /q "%VLANDIR%"
exit /B 0
*
I use only Windows XP 32 Bits.
unattended.cmd and unattended-unistall are with setup on %software%\risbee.
Upgrade fails each time...
If you have any idea...
Thanks,
Cédric
2012/1/10 Stefan Pendl <stefan.pendl.71 at gmail.com>
> Am 10.01.2012 20:49, schrieb Cedric Frayssinet:
>
> Thanks Rainer and Marco, i will try !
>>
>> Cédric
>>
>>
> You can check the NSIS template shipping with WPKG too.
> It is located under "packages/Templates".
>
>
> --
> 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/**
> pipermail/wpkg-users/ <http://lists.wpkg.org/pipermail/wpkg-users/>
> ______________________________**_________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/**listinfo/wpkg-users<http://lists.wpkg.org/mailman/listinfo/wpkg-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20120116/48271043/attachment-0002.html>
More information about the wpkg-users
mailing list