Stefan, i don't use the last wpkg :/<br><br>NSIS make me crazy :/<br><br>Now, i have issue with upgrade...<br><br>I used this XML : <br><i><br><package><br> id="Risbee"<br> name="Risbee - Programmation graphique de robots"<br>
revision="%version%.3"<br> priority="10"<br> reboot="false" ><br><br><variable name="version" value="3.1.0" /><br><br><check type="uninstall" condition="exists" path="Risbee" /><br>
<br> <install cmd='%SOFTWARE%\risbee\unattended.cmd' /><br> <upgrade cmd='%SOFTWARE%\risbee\unattended.cmd' /><br> <remove cmd='%SOFTWARE%\risbee\unattended-uninstall.cmd' /><br>
</package></i><br><br>With unattended.cmd :<br><i><br>@echo off<br><br>set BINARY=risbee-3.1.0-setup.exe<br>set INSTALLER_LOC=%~dp0<br>set EXIT_CODE=0<br>set PROG_FILES=%ProgramFiles%<br><br>if not "%ProgramFiles(x86)%" == "" set PROG_FILES=%ProgramFiles(x86)%<br>
<br>call "%INSTALLER_LOC%unattended-uninstall.cmd"<br><br>start /wait "Risbee" "%INSTALLER_LOC%%BINARY%" /S /NCRC /D="%PROG_FILES%"<br><br>set EXIT_CODE=%ERRORLEVEL%<br><br>exit /B %EXIT_CODE%</i><br>
<br>and unattended-uninstall.cmd :<br><br><i>@echo off<br>:: This is required to evaluate the target of %ProgramFiles% on 64-bit systems<br>:: Please note that this is required only if you uninstall a 32-bit application.<br>
set PROGRAM_FILES=%ProgramFiles%<br>if not "%ProgramFiles(x86)%" == "" set PROGRAM_FILES=%ProgramFiles(x86)%<br><br>::Application install folder<br>set VLANDIR=%PROGRAM_FILES%\POB-Technology<br>set APP_DIR=%PROGRAM_FILES%\POB-Technology\Risbee<br>
<br>:: Path to the uninstaller (see path definition above)<br>set UNINSTALLER=%APP_DIR%\uninstall.exe<br><br>:: Options to be passed to the uninstaller in order to uninstall silently<br>set OPTIONS=/S<br><br>if not exist "%UNINSTALLER%" goto good_end<br>
<br>start /wait "Risbee uninstall" "%UNINSTALLER%" %OPTIONS%<br><br>REM Unfortunately the uninstaller seems to fork a child process and the parent<br>REM process exits immediately. So give it some time to uninstall<br>
for /L %%C IN (1,1,30) DO (<br> if not exist "%UNINSTALLER%" goto good_end<br> ping -n 2 127.0.0.1 > NUL<br>)<br>:bad_end<br>exit /B 1<br><br>:good_end<br>if exist "%VLANDIR%" rmdir /s /q "%VLANDIR%"<br>
exit /B 0<br></i><br><br>I use only Windows XP 32 Bits.<br><br>unattended.cmd and unattended-unistall are with setup on %software%\risbee.<br><br>Upgrade fails each time...<br><br>If you have any idea...<br><br>Thanks,<br>
<br>Cédric<br><br><br><br><br><br><div class="gmail_quote">2012/1/10 Stefan Pendl <span dir="ltr"><<a href="mailto:stefan.pendl.71@gmail.com">stefan.pendl.71@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 10.01.2012 20:49, schrieb Cedric Frayssinet:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks Rainer and Marco, i will try !<br>
<br>
Cédric<br>
<br>
</blockquote>
<br></div>
You can check the NSIS template shipping with WPKG too.<br>
It is located under "packages/Templates".<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Stefan P.<br>
<br>
Top-posting:<br>
A: Because it messes up the order in which people normally read text.<br>
Q: Why is top-posting such a bad thing?<br>
A: Top-posting.<br>
Q: What is the most annoying thing in e-mail?</font></span><div class="HOEnZb"><div class="h5"><br>
------------------------------<u></u>------------------------------<u></u>-------------<br>
wpkg-users mailing list archives >> <a href="http://lists.wpkg.org/pipermail/wpkg-users/" target="_blank">http://lists.wpkg.org/<u></u>pipermail/wpkg-users/</a><br>
______________________________<u></u>_________________<br>
wpkg-users mailing list<br>
<a href="mailto:wpkg-users@lists.wpkg.org" target="_blank">wpkg-users@lists.wpkg.org</a><br>
<a href="http://lists.wpkg.org/mailman/listinfo/wpkg-users" target="_blank">http://lists.wpkg.org/mailman/<u></u>listinfo/wpkg-users</a><br>
</div></div></blockquote></div><br>