[wpkg-users] Registry change during boot and roaming profiles

Sebastian Hoffmann sebastian.hoffmann at pallas-group.de
Thu Jul 22 16:30:58 CEST 2010


  I got it now  :-)
Note to myself: Use wpkg only for software - use logon scripts for 
per-user settings ;-)

-- Sebastian



schrieb cleitet at gmail.com:
> Hi again
>
> 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.
>
> 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: http://en.wikipedia.org/wiki/Active_Setup to make sure 
> all users on the computer has the same environment.
>
> I didn't explain it too well, did I? :)
>
> -CL
>
>
>
> 2010/7/22 Sebastian Hoffmann <sebastian.hoffmann at pallas-group.de 
> <mailto:sebastian.hoffmann at pallas-group.de>>
>
>     Yeah thanks, that solved the problem with the Firefox package
>     under W2K for me.
>
>     I found a "newer" ;-) version, 2.4.2, under
>     http://www.grossmatten.ch/share-freeware/Microsoft/SysInternals/PsTools%202.42/PsTools/
>
>
>     But what can I do when I have to set registry keys during delayed
>     logon with roaming profiles?
>     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?
>
>
>
>     Mit freundlichen Grüßen
>
>     Sebastian Hoffmann
>     -Pallas Group-
>     P+O Compact Disc GmbH & Co. KG
>     IT / Programmierung
>     Auf dem Esch 8
>     49356 Diepholz
>     Tel.: +49 5441 977-180
>     Fax: +49 5441 977-177
>     E-Mail: Sebastian.Hoffmann at pallas-group.de
>     <mailto:Sebastian.Hoffmann at pallas-group.de>
>     Internet: www.pallas-group.de <http://www.pallas-group.de>
>
>     Amtsgericht Walsrode HRB 100696
>     UST.ID.NR <http://UST.ID.NR>.: (VAT.REG.NO.): DE 811248035
>     Persönlich haftende Gesellschafterin:
>     Order Verwaltungs-GmbH * Sitz Diepholz
>     Amtsgericht Walsrode HRB 101171
>     Geschäftsführer:
>     Rolf Neumann * Holger Neumann * Rainer Koppermann
>
>     P.S.: Wir sind offizieller Lizenzpartner von Toshiba, Philips und
>     MPEG-2.
>
>     schrieb cleitet at gmail.com: <mailto:cleitet at gmail.com:>
>>     Hi,
>>
>>     Try a "newer" version of pstools with the -accepeula switch.
>>
>>     More info here:
>>     http://blogs.technet.com/b/sysinternals/archive/2006/12/05/updates-pstools-and-sysinternalssuite.aspx
>>
>>     -CL
>>
>>     2010/7/22 Sebastian Hoffmann <sebastian.hoffmann at pallas-group.de
>>     <mailto:sebastian.hoffmann at pallas-group.de>>
>>
>>         Hello list,
>>
>>         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
>>         http://forum.sysinternals.com/topic8783_page7.html which sets
>>         a registry values indicating that the eulas of all
>>         sysinternals tools have already been accepted.
>>         Now I tried to make my own package file with this command,
>>         but only working for pskill:
>>
>>         <packages>
>>         <package
>>             id="pskilleula"
>>             name="Accept pskill EULA"
>>             revision="1"
>>             reboot="false"
>>             priority="99">
>>
>>         <check
>>                 type="registry"
>>                 condition="equals"
>>                 path="HKCU\Software\Sysinternals\PsKill\EulaAccepted"
>>         value="1"/>
>>
>>         <install cmd='REG ADD "HKCU\Software\Sysinternals\PsKill" /v
>>         EulaAccepted /t REG_DWORD /d 1 /f'>
>>         <exit code="0" />
>>         </install>
>>
>>         <-- <upgrade cmd='%SystemRoot%\System32\msg.exe * /TIME:10
>>         "upgrade"'>
>>         <exit code="0" />
>>         </upgrade>
>>             -->
>>
>>         <remove cmd='REG DELETE "HKCU\Software\Sysinternals\PsKill"
>>         /v EulaAccepted /f'>
>>         <exit code="0" />
>>         </remove>
>>
>>         </package>
>>         </packages>
>>
>>
>>
>>         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.
>>
>>         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?
>>
>>
>>
>>         -- 
>>         Mit freundlichen Grüßen
>>
>>         Sebastian Hoffmann
>>         -Pallas Group-
>>         P+O Compact Disc GmbH & Co. KG
>>         IT / Programmierung
>>         Auf dem Esch 8
>>         49356 Diepholz
>>         Tel.: +49 5441 977-180
>>         Fax: +49 5441 977-177
>>         E-Mail: Sebastian.Hoffmann at pallas-group.de
>>         <mailto:Sebastian.Hoffmann at pallas-group.de>
>>         Internet: www.pallas-group.de <http://www.pallas-group.de>
>>
>>         Amtsgericht Walsrode HRB 100696
>>         UST.ID.NR <http://UST.ID.NR>.: (VAT.REG.NO.): DE 811248035
>>         Persönlich haftende Gesellschafterin:
>>         Order Verwaltungs-GmbH * Sitz Diepholz
>>         Amtsgericht Walsrode HRB 101171
>>         Geschäftsführer:
>>         Rolf Neumann * Holger Neumann * Rainer Koppermann
>>
>>         P.S.: Wir sind offizieller Lizenzpartner von Toshiba, Philips
>>         und MPEG-2.
>>
>>         -------------------------------------------------------------------------
>>         wpkg-users mailing list archives >>
>>         http://lists.wpkg.org/pipermail/wpkg-users/
>>         _______________________________________________
>>         wpkg-users mailing list
>>         wpkg-users at lists.wpkg.org <mailto:wpkg-users at lists.wpkg.org>
>>         http://lists.wpkg.org/mailman/listinfo/wpkg-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20100722/c34bd776/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sebastian_hoffmann.vcf
Type: text/x-vcard
Size: 273 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20100722/c34bd776/attachment-0002.vcf>


More information about the wpkg-users mailing list