<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I got it now <span class="moz-smiley-s1"><span> :-) </span></span><br>
    Note to myself: Use wpkg only for software - use logon scripts for
    per-user settings <span class="moz-smiley-s3"><span> ;-) </span></span><br>
    <br>
    <div class="moz-signature">-- Sebastian<br>
      <br>
      <br>
    </div>
    <br>
    schrieb <a class="moz-txt-link-abbreviated" href="mailto:cleitet@gmail.com:">cleitet@gmail.com:</a>
    <blockquote
      cite="mid:AANLkTilInsNxlqqaOgr1cOAztZI5_kcpYeieLtOuq2zh@mail.gmail.com"
      type="cite">Hi again<br>
      <br>
      Well, WPKG is not a really good tool to use for user-specific
      settings for a number of reasons. It is intended as a tool to
      install software for all users on a workstation.<br>
      <br>
      Your issue with "race conditions" is one example of this. WPKG
      sets the registry during boot (I am not sure how you execute WPKG
      though), and the setting is reset by the roaming profile. I would
      believe that configuring per-user settings is better done through
      a logon script (executed under the user's environment), or by
      utilizing a tool as Active Setup: <a moz-do-not-send="true"
        href="http://en.wikipedia.org/wiki/Active_Setup">http://en.wikipedia.org/wiki/Active_Setup</a>
      to make sure all users on the computer has the same environment.<br>
      <br>
      I didn't explain it too well, did I? :)<br>
      <br>
      -CL<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">2010/7/22 Sebastian Hoffmann <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:sebastian.hoffmann@pallas-group.de">sebastian.hoffmann@pallas-group.de</a>></span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> Yeah thanks, that
            solved the problem with the Firefox package under W2K for
            me.<br>
            <br>
            I found a "newer" <span><span> ;-)  </span></span>version,
            2.4.2, under
            <a moz-do-not-send="true"
href="http://www.grossmatten.ch/share-freeware/Microsoft/SysInternals/PsTools%202.42/PsTools/"
              target="_blank">http://www.grossmatten.ch/share-freeware/Microsoft/SysInternals/PsTools%202.42/PsTools/</a><br>
            <br>
            <br>
            But what can I do when I have to set registry keys during
            delayed logon with roaming profiles? <br>
            In my opinion they are always restored from the roaming
            profile during login when they first have been deleted by
            the uninstall cmd during delayed logon. Or am I wrong?
            <div class="im"><br>
              <br>
              <br>
              <div>Mit freundlichen Grüßen <br>
                <br>
                Sebastian Hoffmann <br>
                -Pallas Group- <br>
                P+O Compact Disc GmbH & Co. KG <br>
                IT / Programmierung <br>
                Auf dem Esch 8 <br>
                49356 Diepholz <br>
                Tel.: +49 5441 977-180 <br>
                Fax: +49 5441 977-177 <br>
                E-Mail: <a moz-do-not-send="true"
                  href="mailto:Sebastian.Hoffmann@pallas-group.de"
                  target="_blank">Sebastian.Hoffmann@pallas-group.de</a>
                <br>
                Internet: <a moz-do-not-send="true"
                  href="http://www.pallas-group.de" target="_blank">www.pallas-group.de</a>
                <br>
                <img moz-do-not-send="true" src="" alt=""> <br>
                Amtsgericht Walsrode HRB 100696 <br>
                <a moz-do-not-send="true" href="http://UST.ID.NR"
                  target="_blank">UST.ID.NR</a>.: (VAT.REG.NO.): DE
                811248035 <br>
                Persönlich haftende Gesellschafterin: <br>
                Order Verwaltungs-GmbH * Sitz Diepholz <br>
                Amtsgericht Walsrode HRB 101171 <br>
                Geschäftsführer: <br>
                Rolf Neumann * Holger Neumann * Rainer Koppermann <br>
                <br>
                P.S.: Wir sind offizieller Lizenzpartner von Toshiba,
                Philips und MPEG-2. <br>
              </div>
              <br>
            </div>
            schrieb <a moz-do-not-send="true"
              href="mailto:cleitet@gmail.com:" target="_blank">cleitet@gmail.com:</a>
            <div>
              <div class="h5">
                <blockquote type="cite">Hi,<br>
                  <br>
                  Try a "newer" version of pstools with the -accepeula
                  switch.<br>
                  <br>
                  More info here: <a moz-do-not-send="true"
href="http://blogs.technet.com/b/sysinternals/archive/2006/12/05/updates-pstools-and-sysinternalssuite.aspx"
                    target="_blank">http://blogs.technet.com/b/sysinternals/archive/2006/12/05/updates-pstools-and-sysinternalssuite.aspx</a><br>
                  <br>
                  -CL<br>
                  <br>
                  <div class="gmail_quote">2010/7/22 Sebastian Hoffmann
                    <span dir="ltr"><<a moz-do-not-send="true"
                        href="mailto:sebastian.hoffmann@pallas-group.de"
                        target="_blank">sebastian.hoffmann@pallas-group.de</a>></span><br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div bgcolor="#ffffff" text="#000000"> Hello list,<br>
                        <br>
                        I think I've a conceptional problem: I've got
                        computers running W2k which are not capable of
                        the "taskkill" command used in the firefox
                        package to kill any running firefox-processes.
                        So I decided to use pskill instead of taskkill.
                        But on the first run of pskill it asks the user
                        to accept the eula. I found a .cmd file on <a
                          moz-do-not-send="true"
                          href="http://forum.sysinternals.com/topic8783_page7.html"
                          target="_blank">http://forum.sysinternals.com/topic8783_page7.html</a>
                        which sets a registry values indicating that the
                        eulas of all sysinternals tools have already
                        been accepted.<br>
                        Now I tried to make my own package file with
                        this command, but only working for pskill:<br>
                        <br>
                        <packages><br>
                        <package <br>
                            id="pskilleula"<br>
                            name="Accept pskill EULA"<br>
                            revision="1"<br>
                            reboot="false"<br>
                            priority="99"><br>
                         <br>
                            <check<br>
                                type="registry"<br>
                                condition="equals"<br>
                               
                        path="HKCU\Software\Sysinternals\PsKill\EulaAccepted"
                        value="1"/><br>
                         <br>
                            <install cmd='REG ADD
                        "HKCU\Software\Sysinternals\PsKill" /v
                        EulaAccepted /t REG_DWORD /d 1 /f'><br>
                                <exit code="0" /><br>
                                </install><br>
                             <br>
                          <--  <upgrade
                        cmd='%SystemRoot%\System32\msg.exe * /TIME:10
                        "upgrade"'><br>
                                <exit code="0" /><br>
                                </upgrade><br>
                            --><br>
                         <br>
                            <remove cmd='REG DELETE
                        "HKCU\Software\Sysinternals\PsKill" /v
                        EulaAccepted /f'><br>
                                <exit code="0" /><br>
                                </remove><br>
                            <br>
                        </package><br>
                        </packages><br>
                        <br>
                        <br>
                        <br>
                        The value gets correctly set and works fine. My
                        problem now is the remove command: When a client
                        is booting up the registry key gets deleted by
                        wpkg irunning in delayed logon mode. But when I
                        login as a domain user using roaming profiles,
                        the old registry becomes restored from the
                        roaming profile on the server and the key also
                        gets restored. But the wpkg.xml file in system32
                        has already deleted all information belonging to
                        "pskilleula" and the package is marked as not
                        installed.<br>
                        <br>
                        I know, it doesn't make much sense to remove
                        this key, but I'm interested in the problem
                        itself. How can I act in such circumstances when
                        designing my own package files?<br>
                        <br>
                        <br>
                        <br>
                        <div>-- <br>
                          Mit freundlichen Grüßen <br>
                          <br>
                          Sebastian Hoffmann <br>
                          -Pallas Group- <br>
                          P+O Compact Disc GmbH & Co. KG <br>
                          IT / Programmierung <br>
                          Auf dem Esch 8 <br>
                          49356 Diepholz <br>
                          Tel.: +49 5441 977-180 <br>
                          Fax: +49 5441 977-177 <br>
                          E-Mail: <a moz-do-not-send="true"
                            href="mailto:Sebastian.Hoffmann@pallas-group.de"
                            target="_blank">Sebastian.Hoffmann@pallas-group.de</a>
                          <br>
                          Internet: <a moz-do-not-send="true"
                            href="http://www.pallas-group.de"
                            target="_blank">www.pallas-group.de</a> <br>
                          <img moz-do-not-send="true" src="" alt=""> <br>
                          Amtsgericht Walsrode HRB 100696 <br>
                          <a moz-do-not-send="true"
                            href="http://UST.ID.NR" target="_blank">UST.ID.NR</a>.:
                          (VAT.REG.NO.): DE 811248035 <br>
                          Persönlich haftende Gesellschafterin: <br>
                          Order Verwaltungs-GmbH * Sitz Diepholz <br>
                          Amtsgericht Walsrode HRB 101171 <br>
                          Geschäftsführer: <br>
                          Rolf Neumann * Holger Neumann * Rainer
                          Koppermann <br>
                          <br>
                          P.S.: Wir sind offizieller Lizenzpartner von
                          Toshiba, Philips und MPEG-2. <br>
                        </div>
                      </div>
                      <br>
-------------------------------------------------------------------------<br>
                      wpkg-users mailing list archives >> <a
                        moz-do-not-send="true"
                        href="http://lists.wpkg.org/pipermail/wpkg-users/"
                        target="_blank">http://lists.wpkg.org/pipermail/wpkg-users/</a><br>
                      _______________________________________________<br>
                      wpkg-users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:wpkg-users@lists.wpkg.org"
                        target="_blank">wpkg-users@lists.wpkg.org</a><br>
                      <a moz-do-not-send="true"
                        href="http://lists.wpkg.org/mailman/listinfo/wpkg-users"
                        target="_blank">http://lists.wpkg.org/mailman/listinfo/wpkg-users</a><br>
                      <br>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>