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" It shows up in the add/remove programs control panel but wpkg doesn't recognize it as such. When trying to use the registry check I can't get it to work. I tried: <check type="registry" condition="exists" path="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1- 5-18\Products\9040110900063D11C8EF10054038389C\Patches\886B7FB759A43004AB89A EA897ADA0AB"/> <check type="registry" condition="exists" path="HKEY_LOCAL_MACHING\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer \UserData\S-1-5-18\Products\9040110900063D11C8EF10054038389C\Patches\886B7FB 759A43004AB89AEA897ADA0AB"/> <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... 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... ) 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. Best regards, Sebastiaan Troost -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Chmielewski Sent: dinsdag 12 juli 2005 18:41 Cc: [email protected] Subject: Re: [wpkg-users] Feature request: uninstall check for updates [EMAIL PROTECTED] wrote: > Hi there, > > Im trying to get all my software to work with wpkg and found a problem... > > I would like to see it possible to check for updates with the uninstall check. > It right now isnt possible to do so. (For example the MS office sp1). "uninstall" check is checked before WPKG decides if it should install some software. For example, if we have Office 2003 installed, we will have "Microsoft Office Professional 2003" in Software Add/Remove. So the check condition will look like that: <check type="uninstall" condition="exists" path="Microsoft Office Professional 2003" /> Before attempting to install Office, WPKG will check in Software Add/Remove (actually, it checks somewhere in the registry, but it has the same effect), if "Microsoft Office Professional 2003" is installed. If it is installed - WPKG will skip the installation of Office (because it's already installed). If it is NOT installed, WPKG will launch the "install cmd". So we can say, that "uninstall" looks into this registry key: HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DisplayName -> Microsoft Office Professional 2003 to compare it with "uninstall" check. Logically, it should work with updates, too, but I didn't have the opportunity to check it. If it's not there, you can always use a "registry" check. -- 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 ------------------------------------------------------- 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
