Sebastiaan Troost schrieb:
Dear Tomek,


After playing some more I still didn't resolve my problem with msoffice2003
sp1. The reg check doesn't seem to work... probably doing something wrong...


Anyway, the SP1 update for office can be found in the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserD
ata\S-1-5-18\Products\9040110900063D11C8EF10054038389C\Patches\886B7FB759A43
004AB89AEA897ADA0AB\DisplayName = "Microsoft Office Service Pack 1"

wrong, you should look in:

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\...\DisplayName


It shows up in the add/remove programs control panel but wpkg doesn't
recognize it as such.

how is it displayed in Windows Software Add/Remove?


When trying to use the registry check I can't get it to work.

I tried:

(...)

<check type="registry" condition="exists" path="HKLM\SOFTWARE"/>

<check type="registry" condition="exists"
path="HKEY_LOCAL_MACHING\SOFTWARE"/>

And with all of these the check failed and it tried to reinstall (and
failed), while the keys do exist. What am I doing wrong? The user the
process is run with had local administrator rights so that wont be it...

It's a common mistake; probably it should be better documented.

the registry "path" is a *full* path, that is, everything you have on the left of regedit (like HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\..), and the last part of it would be the one shown in the right panel of regedit.


As a second I have a question about exit codes. Some programs exit with
different codes depending on the situation. Sometimes it exits with code 0
but lets say if it needs a reboot with code 94, or when a non critical error
occurred with code 150. How can I ignore the code check or react according
to the exit code? (If this isn't possible yet it might be an idea to
implement this... )

basically, you can't specify an action according to the exit code.
I found that exit codes are completly unreliable - sometimes applications give exit code 0, even if the installation wasn't successful.

did you try what happens if you omit the <exit code="0" /> part?


Furthermore I think it is a good idea to share the packages files for all
programs everyone encountered, or make howto's about how you managed to get
a program install silently/unattended/passive. For as far as I found you can
use the unattended files as a basis for your wpkg setup but sometimes things
work differently and their resource is far from complete.

See http://wpkg.org/wiki - silent installers - and add your own there.


--
Tomek


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
wpkg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wpkg-users

Reply via email to