[wpkg-users] [Bug 287] Intermittent problem Uninstall not found in System Context

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Thu Jul 7 19:18:06 CEST 2016


http://bugzilla.wpkg.org/show_bug.cgi?id=287

Rainer Meier <r.meier at wpkg.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.meier at wpkg.org

--- Comment #2 from Rainer Meier <r.meier at wpkg.org> ---
Well, this often happens for custom installers which fork their own
installation process and the initial process terminates. You can usually run
such installers from command-line with silent options and you will be returned
to the prompt before the actual installation is finished.

Of course for WPKG it will run the uninstall checks right after the process it
launched terminated. In case of installers which fork installation processes
the uninstall entry might be written with some delay.

This is not a bug in WPKG but rather an issue (known) with broken silent
installers. The same even more frequently applies to uninstallers.


There are several ways to deal with such broken installers:
You might simply write a small wrapper script (e.g. a cmd shell script) which
launches the installer and waits for it to complete. Either by using a
hard-coded timeout (not recommended as installation time might vary a lot
depending on various circumstances) or by repeatedly checking for the installer
to finish its work. This check might be a check for a file created by the
installer or even the uninstall entry itself to appear. The key is that this
wrapper script should not terminate except in timeout case or if the installer
completed its job.

There is no general recipe working for any installer out there, it depends on
the specific program how such a wait function could look like.

For the time being try a shell script as follows:

@echo off
start /wait path\to\installer.exe /silent-options [...]
ping -n 600 localhost > NUL
exit 0

This will wait 10 minutes after launchning the installer. You might extend this
by a loop and file/registry checks rather than hard-coded wait time.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20160707/e212b1b2/attachment.html>


More information about the wpkg-users mailing list