[wpkg-users] Error WSH?

2008-06-02 Thread Vladimír Pšenička
In event log I see this error on one machine with WPKG Client (Offline
mode enabled) after sucessfuly conected network resource:

WSH:
 Error when searching registry sub-keys at 'HKLM\SOFTWARE\Microsoft\Windows 
 NT\CurrentVersion\NetworkCards\'
 Code: 800a138f; Descriptions: 'sNames' is null or not an object


WPKG is searching registry subkeys for network cards? Is anything wrong?
Everything seems work fine...

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.

-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG and Vista UAC

2008-05-23 Thread Vladimír Pšenička
WPKG path user is domain account (in Domain Users group), which have
access to network share, where is SW
WPKG execution context users is SYSTEM

This combination doesnt work (access denied)


Tomasz Chmielewski napsal(a):
 Vladimír Pšenička schrieb:
 I tested clean Vista instalation joined to domain with WPKG client
 (service) run with SYSTEM account, UAC enabled and result are:

 In event log there are errors for each package, example:
 Command '%SOFTWARE%\tools\acroread\AdbeRdr812_cs_CZ.exe /sAll /rs
 was not successful.
 Access is denied

 %SOFTWARE% = \\server\apps

 So WPKG service with SYSTEM account cannot read packages from network
 share.
 
 Yes, because SYSTEM user doesn't know anything about network credentials.
 
 Configure WPKG path user and give network credentials there - it
 doesn't have to be a domain admin account; a limited user which can only
 access this share is sufficient and recommended.
 
 

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG and Vista UAC

2008-05-23 Thread Vladimír Pšenička
Yes samba share, samba version is 3.0.24, I dont have ACL support
enabled. But WPKG path user (domain user) can access samba share (read)
without problem.


Marco Gaiarin napsal(a):
 Mandi! Vladimír Pšenička
   In chel di` si favelave...
 
 So WPKG service with SYSTEM account cannot read packages from network share.
 
 Samba share?
 
 
 I've hitted recently a trouble that i was not able to track down and
 understand, only to circumvent.
 
 After upgrading from sarge (samba 3.0.18) to etch (3.0.24), wpkg *ON*
 *SOME* *WINXPsp2* *BOX* exploit exactly this behaviour: 'guest access'
 works from every user apart SYSTEM.
 The strange was that only some machine have thta, and every box have
 the same windows verion, revision, patchlevel, ...
 
 
 I've circumvent this enabling full ACL support and setting ACL for the
 share, before that i use simple permission based on group and force
 user/force group statement.
 
 Never understood why. ;(
 

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG and Vista UAC

2008-05-23 Thread Vladimír Pšenička
So local setting done with wpkg service are ok (no errors) on Vista,
example:

 package
   id=firewall - vnc
   name=Open port TCP 5900 on Windows
   revision=4
   reboot=false
   notify=false
   priority=100
   execute=once
   
   install cmd='%COMSPEC% /C if exist 
 %SYSTEMROOT%\system32\netsh.exe netsh firewall add portopening TCP 5900 VNC 
 enable subnet' /
   
   remove cmd='%COMSPEC% /C if exist 
 %SYSTEMROOT%\system32\netsh.exe netsh firewall delete portopening TCP 5900' 
 /
   
   /package

so I tested same settings on XP machine and doesn't work either

log from samba machine:

 [2008/05/23 12:32:45, 3] smbd/error.c:error_packet(146)
   error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED
 [2008/05/23 12:32:45, 3] smbd/process.c:process_smb(1110)
   Transaction 111 of length 86
 [2008/05/23 12:32:45, 3] smbd/process.c:switch_message(914)
   switch message SMBtconX (pid 5113) conn 0x0
 [2008/05/23 12:32:45, 3] smbd/sec_ctx.c:set_sec_ctx(241)
   setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
 [2008/05/23 12:32:45, 2] smbd/service.c:make_connection_snum(569)
   guest user (from session setup) not permitted to access this share (install)
 [2008/05/23 12:32:45, 3] smbd/error.c:error_packet(146)

problem is that guest user cannot access share, so I added guest ok =
yes to smb.conf, before this I had Domain Admin account in WPKG execute
context user, so access to share wasn't problem, but Vista with UAC
didn't work (need to elevate user rights).

Final I have:
---
WPKG path user: domain user
WPKG execution context user: SYSTEM
guest ok = yes in smb.conf in share definition on samba machine
---

and everything works fine on XP and Vista with UAC

Thank you for your help



Tomasz Chmielewski napsal(a):
 Vladimír Pšenička schrieb:
 Yes samba share, samba version is 3.0.24, I dont have ACL support
 enabled. But WPKG path user (domain user) can access samba share (read)
 without problem.
 
 Check your Samba logs.
 
 The easiest way would be to:
 
 Set them to log level = 3. Make the log size of 1000.
 
 Clear the log (but not remove it!) for the given workstation - from bash
 prompt, do:
 
 # /var/log/samba/log.workstation_name
 
 Then, from a cmd.exe window do (started as Administrator):
 
 net stop WPKG service
 net start WPKG service
 
 
 Check Samba log for that workstation, it will give you some hint on
 where you connect to, with what credentials, and why it fails (or
 succeeds).
 
 

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG and Vista UAC

2008-05-23 Thread Vladimír Pšenička
Yes they are on different shares (machines):

WPKG (wpkg.js, xml files etc.) are in netlogon share on PDC (samba) and
software installers are on BDC (samba). Is this any problem?



Tomasz Chmielewski napsal(a):
 Vladimír Pšenička schrieb:
 
 (...)
 
   guest user (from session setup) not permitted to access this share
 (install)

 problem is that guest user cannot access share, so I added guest ok =
 yes to smb.conf, before this I had Domain Admin account in WPKG execute
 context user, so access to share wasn't problem, but Vista with UAC
 didn't work (need to elevate user rights).

 Final I have:
 ---
 WPKG path user: domain user
 WPKG execution context user: SYSTEM
 guest ok = yes in smb.conf in share definition on samba machine
 ---

 and everything works fine on XP and Vista with UAC
 
 Note that with this setting *everyone* can access this share.
 
 
 What is still not clear for me: is your software share a different one
 from the WPKG share (the one where you keep wpkg.js)?
 
 If yes, you may indeed have problems accessing them.
 
 Using one single share for both software (installers) and WPKG (wpkg.js,
 config.xml, package definitions) is the recommended one I'd say.
 
 

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG and Vista UAC

2008-05-22 Thread Vladimír Pšenička
I tested clean Vista instalation joined to domain with WPKG client
(service) run with SYSTEM account, UAC enabled and result are:

In event log there are errors for each package, example:
 Command '%SOFTWARE%\tools\acroread\AdbeRdr812_cs_CZ.exe /sAll /rs was not 
 successful.
 Access is denied

%SOFTWARE% = \\server\apps

So WPKG service with SYSTEM account cannot read packages from network share.

Tomasz Chmielewski napsal(a):
 Vladimír Pšenička schrieb:
 Hi

 I have found problem with Vista machines and UAC enabled. When WPKG
 client starts on Vista machine and start installing some SW a see in
 event log permission errors (about need to elevate user rights, although
 user installing SW is member of domain admins group) I have czech
 Windows so I apologize for mistakes in translation.  Is possible to
 install SW with WPKG correctly on Vista with UAC enabled?


 Without UAC everything works fine...
 
 Does it also happen if you configure WPKG Client to start as a SYSTEM user?
 
 I don't have Vista, unfortunately. Enyone else using Vista seeing this,
 too?
 
 Anyway, I'll forward this issue to a WPKG Client developer more familiar
 with Vista...
 
 Or, if you really have to start the service as a domain administrator,
 you may have more luck asking a Windows-specific newsgroup this question:
 
 How can I disable UAC for only one domain Administrator, but leave UAC
 on for each and every other user?
 
 Let us know about your findings...
 
 

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG client upgrade

2008-04-21 Thread Vladimír Pšenička
I tested this upgrade (I have condition=versionequalto, on website is
condition=sizeequals and value=1.0.0.8)

 package
   id=wpkg
   name=WPKG Client 1.2.1
   revision=2
   reboot=false
   priority=3000
   
   check type=uninstall condition=exists path=WPKG /
   check type=file condition=versionequalto 
 path=%PROGRAMFILES%\wpkg\wpkginst.exe value=1.0.0.8 /
   
   install cmd='%COMSPEC% /C start 
 %SOFTWARE%\wpkg\wpkg_upgrade.bat' / 
   
   upgrade cmd='%COMSPEC% /C start 
 %SOFTWARE%\wpkg\wpkg_upgrade.bat' / 
   
   remove cmd='msiexec /qn 
 /x{FD883F05-6D6B-4E81-8FD7-B209FEF750CD}' /
   
   /package



and I see errors in event log on client:

 Could not process (upgrade) WPKG Client 1.2.1.
 Failed checking after installation.

and WPKG client is still old version 1.0.0.6...



Tomasz Chmielewski napsal(a):
 Vladimír Pšenička schrieb:
 Is possible to upgrade WPKG client from 1.2-rc6 to 1.2.1 by itself
 automaticaly after reboot (not directly running wpkg.js) on remote
 machines?

 I tested upgrade (http://wpkg.org/WPKG) and it doesn't work:
 
 I added some (hopefully) more detailed instructions and verified that
 they work on my workstation:
 
 http://wpkg.org/WPKG
 
 Could you verify if it works for you?
 
 
 

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


Re: [wpkg-users] WPKG client upgrade

2008-04-21 Thread Vladimír Pšenička
When I upgrade WPKG client this way (without start):

 upgrade cmd='%COMSPEC% /C %SOFTWARE%\wpkg\wpkg_upgrade.bat' / 

it doesn't work, on client I see errors:

 Product: WPKG -- Error 1722. There is a problem with this Windows Installer 
 package. A program run as part of the setup did not finish as expected. 
 Contact your support personnel or package vendor.  Action 
 _25773255_2E4C_4B11_9B7E_FF3EB8BD0D64, location: C:\Program 
 Files\wpkg\WPKGSrv.exe, command: /install 

and:

 Could not process (upgrade) package 'WPKG Client 1.2.1' (wpkg):
 Exit code returned non-successful value (1603) on command '%COMSPEC% /C 
 %SOFTWARE%\wpkg\wpkg_upgrade.bat'.

and before this 2 errors some message that says:

 Produkt WPKG: Soubor C:\Program Files\wpkg\wpkglogon.dll je používán jiným 
 procesem (Název: winlogon , ID: 648).

wpkglogon.dll is used by another process (winlogon)


Brian May napsal(a):
 Brian May wrote:
 It seems to work.

 Can I please confirm why you use start? Is this for extra debugging?
 
 Looks like a race condition exists, due to using start. The process is 
 started for upgrading wpkg, and at the same time wpkg continues and 
 checks the latest version is already installed - but it isn't installed 
 yet because the background task is still executing.
 
 Probably better just to call the batch file directly.
 
 Brian May
 
 -
 Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
 ___
 wpkg-users mailing list
 wpkg-users@lists.wpkg.org
 http://lists.wpkg.org/mailman/listinfo/wpkg-users

-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users


[wpkg-users] WPKG client upgrade

2008-04-18 Thread Vladimír Pšenička
Is possible to upgrade WPKG client from 1.2-rc6 to 1.2.1 by itself
automaticaly after reboot (not directly running wpkg.js) on remote machines?

I tested upgrade (http://wpkg.org/WPKG) and it doesn't work:

 package
   id=wpkg
   name=WPKG Service
   revision=2
   reboot=true
   priority=3000
   
 !--  depends package-id=wininstaller/ --
   
   check type=uninstall condition=exists path=WPKG /
   
 !--  install cmd='msiexec /qn /i %SOFTWARE%\wpkg\WPKG Client 
 1.2-rc6.msi SETTINGSFILE=%SOFTWARE%\settings.xml ALLUSERS=1 /log 
 C:\wpkg.log' / --
   install cmd='msiexec /qn /i %SOFTWARE%\wpkg\WPKG Client 
 1.2.1.msi SETTINGSFILE=%SOFTWARE%\wpkg\settings.xml ALLUSERS=1 /log 
 C:\wpkg.log' / 
   
 !--  upgrade cmd='msiexec /qn /i %SOFTWARE%\wpkg\WPKG Client 
 1.2-rc6.msi SETTINGSFILE=%SOFTWARE%\settings.xml ALLUSERS=1 /log 
 C:\wpkg.log' / --
   
 !--  upgrade cmd='%SOFTWARE%\wpkg\pskill.exe /accepteula 
 WPKGSrv.exe' / --
 !--  upgrade cmd='net stop WPKG Service' / --
   upgrade cmd='taskkill /F /IM /WPKGsrv.exe' /
   upgrade cmd='msiexec /qn /i %SOFTWARE%\wpkg\WPKG Client 
 1.2.1.msi SETTINGSFILE=%SOFTWARE%\wpkg\settings.xml ALLUSERS=1 /log 
 C:\wpkg.log' /
   
   remove cmd='msiexec /qn 
 /x{FD883F05-6D6B-4E81-8FD7-B209FEF750CD}' /



Command:
 upgrade cmd='%SOFTWARE%\wpkg\pskill.exe /accepteula WPKGSrv.exe' /
 upgrade cmd='msiexec /qn /i %SOFTWARE%\wpkg\WPKG Client 1.2.1.msi 
 SETTINGSFILE=%SOFTWARE%\wpkg\settings.xml ALLUSERS=1 /log C:\wpkg.log' /


Event log on remote machine:
 Command '%SOFTWARE%\wpkg\pskill.exe /accepteula WPKGSrv.exe was not 
 successful.
 Access denied


Command:
 upgrade cmd='taskkill /F /IM /WPKGsrv.exe' /
 upgrade cmd='msiexec /qn /i %SOFTWARE%\wpkg\WPKG Client 1.2.1.msi 
 SETTINGSFILE=%SOFTWARE%\wpkg\settings.xml ALLUSERS=1 /log C:\wpkg.log' /


Event log:
 Could not process (upgrade) package 'WPKG Service' (wpkg):
 Exit code returned non-successful value (128) on command 'taskkill /F /IM 
 /WPKGsrv.exe'.


-- 
Vladimir Psenicka
IT system engineer
Prodeco a.s.
-
Reporting bugs, all WPKG mailing lists  http://wpkg.org/Support
___
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users