Re: [wpkg-users] where is wpkg.js? was: Re: [Bug 111] Reverse dependencies aka chained installation

2008-04-24 Thread Meftahi, Mohammad
Yes, I have tried to download 1.2.1, This install does not include the
wpkg.js file, and when I download the 1.0.2, it only downloads 77 KB and
zip can not be opened, I get corrupt file msg.



-Original Message-
From: Tomasz Chmielewski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 23, 2008 4:09 PM
To: Meftahi, Mohammad
Cc: wpkg-users@lists.wpkg.org
Subject: where is wpkg.js? was: Re: [wpkg-users] [Bug 111] Reverse
dependencies aka chained installation

Meftahi, Mohammad schrieb:
 I have not been able to download a working client that includes the
 wpokg.js. I have tried to download the new 1.2.1 client, the previous
 versions do not seem to download either, Any idea?

Please DON'T hijack threads.

Have you tried http://wpkg.org/Download?


-- 
Tomasz Chmielewski

-
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] Unable to set the path to file sizeequals check

2008-04-24 Thread Daniel Dehennin
Hello,

I'm unable to test a file size, using wpkg 1.1-M4

check type='file'
   condition='exists'
   path='%ProgramFiles%\Mozilla Firefox\mozilla.cfg'/

check type='file' condition='sizeequals' value='2017'
   path='%ProgramFiles%\Mozilla Firefox\mozilla.cfg'/

It gives me in the log file:

The path 'C:\Program Files\Mozilla Firefox\mozilla.cfg' exists: the test was 
successful
Finding size of C:\Program Files\Mozilla Firefox\mozilla.cfg|
Unable to get file size for C:\Program Files\Mozilla Firefox\mozilla.cfg : 
'path' is undefined
Leaving getFileSize with size -1
The file 'C:\Program Files\Mozilla Firefox\mozilla.cfg' has size -1 - wanted 
2017: the test fails

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne
-
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] user password in settings.xml for wpkg client

2008-04-24 Thread Grzegorz Marszałek
Hello!

I'm trying to generate password to wpkg share on my server. Idea is  
like this:
* I'm using puppet, but it could be any other tool for configuration  
management
* puppet is generating all wpkg config files based on database content
* ok, so after first run I've got all .xml files, and all packages  
files (.msi etc.) nicely downloaded to my server (linux with samba)
* and now I'd like to generate password for wpkg user to access share  
with software...

OK, the problem is, that wpkg client scrambles it's password in  
settings.xml file. I'd like to have random passowrd for each server I  
manage. There is no problem to generate settings.xml file (and thus  
ease installation on wpkg client on workstation), but do you know what  
algorithm is used to scrable password? I'd like to recreate it my  
script.

Best regards
---
Grzegorz Marszałek
[EMAIL PROTECTED]


-
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] Unable to set the path to file sizeequals check

2008-04-24 Thread Daniel Dehennin
Daniel Dehennin [EMAIL PROTECTED] writes:

 Hello,

 I'm unable to test a file size, using wpkg 1.1-M4

[...]

 Regards.

You can find the patch as attachement to this e-mail.

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne

=== modified file 'wpkg.js'
--- wpkg.js	2008-04-21 22:06:31 +
+++ wpkg.js	2008-04-24 11:32:43 +
@@ -1559,7 +1559,7 @@
 	var size = -1;
 	try {
 		dinfo (Finding size of  + file + \n);
-		var expandedPath = new ActiveXObject(WScript.Shell).ExpandEnvironmentStrings(path);
+		var expandedPath = new ActiveXObject(WScript.Shell).ExpandEnvironmentStrings(file);
 		var FSO = new ActiveXObject(Scripting.FileSystemObject);
 		var fsof = FSO.GetFile(expandedPath);
 		size = fsof.Size;

-
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] Question about multi-domain environment

2008-04-24 Thread Karl
Hello,
   
 I hope my question will be answered
   
 We manage a multi-domain environment and we want to test
this WPKG tool in order to deploy some programs ans patches to several domains.
Is this possible? How do the rights work with this?
   
 Thanks,
   
 Michael



__
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail -
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] Question about multi-domain environment

2008-04-24 Thread Tomasz Chmielewski
Karl schrieb:
 Hello,
 
  
 
 I hope my question will be answered
 
  
 
 We manage a multi-domain environment and we want to test this WPKG tool 
 in order to deploy some programs ans patches to several domains. Is this 
 possible? How do the rights work with this?

Essentially, what you're referring to as WPKG consists of two parts:

1) wpkg.js - it's the brain of WPKG and does all package 
installation/upgrades, checks, logging etc.
2) WPKG Client - it's a tool which helps you start wpkg.js on your clients


Technically speaking, you can use wpkg.js without WPKG Client, i.e. by 
starting it as a script in group policy, as a Scheduled Tasks job etc.

So at this point (you only use wpkg.js) it will work with several 
domains, provided you start it properly.


WPKG Client adds a couple of nice features, and eases the deployment, 
especially if you don't have a AD domain (but a Samba one).

You didn't specify what do you want to achieve? I.e., do you have 
multiple domains, but want all your workstations access one fileserver?

Assuming you give proper credentials in WPKG Client, I don't see why it 
shouldn't work.


-- 
Tomasz Chmielewski
http://wpkg.org
-
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] Re : Question about multi-domain environment

2008-04-24 Thread Karl
Hi Tomasz,

To explain myself a bit more in details we offer services to several domains 
(around 20) so each of them is another 'company'. I can't call it a company but 
more a mini-company into a big company let's say.

So everything works on Windows so no Linux or other is used. All the clients 
are WindowsXP users. Later on (around 2009) maybe Vista will come but for now 
it's only Windows XP Pro.

The goal we want to achieve is that we can stage machines here at our bench 
with a WPKG environment or elsewhere with a sort of bootable DVD (with a fully 
equiped WPKG environment if it needs one).
We'll install the client to have more options and the ease of deploy maybe.
Now when a computer crashes, the user can't work anymore and a solution must 
come so I looking for a method to install Windows XP again from scratch for 
that computer. That's one of the goals.
Another is to deploy applications with groups that were grouped by company or 
managers or ...
Also deploy some software on a computer after an installation of the OS has 
been done.

I hope it's clearer :-)))

Michael


- Message d'origine 
De : Tomasz Chmielewski [EMAIL PROTECTED]
À : Karl [EMAIL PROTECTED]
Cc : wpkg-users@lists.wpkg.org
Envoyé le : Jeudi, 24 Avril 2008, 17h01mn 03s
Objet : Re: [wpkg-users] Question about multi-domain environment

Karl schrieb:
 Hello,
 
  
 
 I hope my question will be answered
 
  
 
 We manage a multi-domain environment and we want to test this WPKG tool 
 in order to deploy some programs ans patches to several domains. Is this 
 possible? How do the rights work with this?

Essentially, what you're referring to as WPKG consists of two parts:

1) wpkg.js - it's the brain of WPKG and does all package 
installation/upgrades, checks, logging etc.
2) WPKG Client - it's a tool which helps you start wpkg.js on your clients


Technically speaking, you can use wpkg.js without WPKG Client, i.e. by 
starting it as a script in group policy, as a Scheduled Tasks job etc.

So at this point (you only use wpkg.js) it will work with several 
domains, provided you start it properly.


WPKG Client adds a couple of nice features, and eases the deployment, 
especially if you don't have a AD domain (but a Samba one).

You didn't specify what do you want to achieve? I.e., do you have 
multiple domains, but want all your workstations access one fileserver?

Assuming you give proper credentials in WPKG Client, I don't see why it 
shouldn't work.


-- 
Tomasz Chmielewski
http://wpkg.org





__
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail -
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] Re : Re : Question about multi-domain environment

2008-04-24 Thread Karl
No please no more microsoft tools

Is this possible with WPKG?

- Message d'origine 
De : Tomasz Chmielewski [EMAIL PROTECTED]
À : Karl [EMAIL PROTECTED]
Cc : wpkg-users@lists.wpkg.org
Envoyé le : Jeudi, 24 Avril 2008, 17h35mn 37s
Objet : Re: Re : [wpkg-users] Question about multi-domain environment

Karl schrieb:
 Hi Tomasz,
 
 To explain myself a bit more in details we offer services to several 
 domains (around 20) so each of them is another 'company'. I can't call 
 it a company but more a mini-company into a big company let's say.
 
 So everything works on Windows so no Linux or other is used. All the 
 clients are WindowsXP users. Later on (around 2009) maybe Vista will 
 come but for now it's only Windows XP Pro.
 
 The goal we want to achieve is that we can stage machines here at our 
 bench with a WPKG environment or elsewhere with a sort of bootable DVD 
 (with a fully equiped WPKG environment if it needs one).
 We'll install the client to have more options and the ease of deploy maybe.
 Now when a computer crashes, the user can't work anymore and a solution 
 must come so I looking for a method to install Windows XP again from 
 scratch for that computer. That's one of the goals.

I think you're trying to reinvent the wheel. If you're a Windows-only 
shop with Windows servers, read about RIS and group policies. And use 
WPKG after the operating system is deployed.

Another, more flexible option is to use Unattended - 
http://unattended.sf.net


 Another is to deploy applications with groups that were grouped by 
 company or managers or ...

Seems like profiles in WPKG.


 Also deploy some software on a computer after an installation of the OS 
 has been done.

RIS / Unattended.



-- 
Tomasz Chmielewski
http://wpkg.org





__
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités 
http://mail.yahoo.fr Yahoo! Mail -
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] user password in settings.xml for wpkg client

2008-04-24 Thread Grzegorz Marszałek

Wiadomość napisana w dniu 2008-04-24, o godz 17:45, przez Jason  
Castonguay:

 OK, the problem is, that wpkg client scrambles it's password in   
 settings.xml file. I'd like to have random passowrd for each  
 server I  manage. There is no problem to generate settings.xml  
 file (and thus  ease installation on wpkg client on workstation),  
 but do you know what  algorithm is used to scrable password? I'd  
 like to recreate it my  script.
 Currently, there is no tool for creating the password (other than  
 wpkginst.exe).
 But it would be a good idea to create one (command line), both for  
 Windows and UNIX.

 Its ugly, but quick.



 $ g++ xmlsettings.cc

 $ ./a.out asdf
 MYTmDw==
 :0?

 $ ./a.out MYTmDw==
 Ha7WBK5a4BA=
 asdf


 -- 
 Jason Castonguay
 Greenpeace USA
 System Administrator
 702 H Street, NW
 Suite 300
 Washington, DC
 20001
 // Copyright (C) 2001-2002 Open Source Telecom Corporation.
 //
 // This program is free software; you can redistribute it and/or  
 modify
 // it under the terms of the GNU General Public License as published  
 by
 // the Free Software Foundation; either version 2 of the License, or
 // (at your option) any later version.
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 02111-1307, USA.


 #include iostream
 #include string


 using namespace std;

 class CXmlSettings
 {
 public:
   static std::string Crypt(std::string str);
   static  std::string Decrypt(std::string str);

   CXmlSettings(void);
   virtual ~CXmlSettings(void);

 private:

 static size_t b64Encode(const unsigned char *src, size_t srcsize,
  char *dst, size_t dstsize);


 static size_t b64Decode(const char *src,
   unsigned char *dst, size_t dstsize);


 };


 static const unsigned char alphabet[65] =
   ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/;

 size_t CXmlSettings::b64Encode(const unsigned char *src, size_t  
 srcsize,
  char *dst, size_t dstsize)
 {
   if (!dstsize) return 0;
   
   char* pdst = dst;
   unsigned bits;
   
   while(srcsize = 3  dstsize  4)
   {
   bits = (((unsigned)src[0])16) | (((unsigned)src[1])8)
   | ((unsigned)src[2]);
   src += 3;
   srcsize -= 3;
   *(pdst++) = alphabet[bits  18];
   *(pdst++) = alphabet[(bits  12)  0x3f];
   *(pdst++) = alphabet[(bits  6)  0x3f];
   *(pdst++) = alphabet[bits  0x3f];
   dstsize -= 4;
   }
   if (srcsize  dstsize  4)
   {
   bits = ((unsigned)src[0])16;
   *(pdst++) = alphabet[bits  18];
   if (srcsize == 1)
   {
   *(pdst++) = alphabet[(bits  12)  0x3f];
   *(pdst++) = '=';
   }
   else
   {
   bits |= ((unsigned)src[1])8;
   *(pdst++) = alphabet[(bits  12)  0x3f];
   *(pdst++) = alphabet[(bits  6)  0x3f];
   }
   *(pdst++) = '=';
   }
   *pdst = 0;
   return pdst-dst;
 }

 size_t CXmlSettings::b64Decode(const char *src, unsigned char *dst,  
 size_t dstsize)
 {
char decoder[256];
   int i, bits, c;

   unsigned char *pdst = dst;
   
   for (i = 0; i  256; ++i)
   decoder[i] = 64;
   for (i = 0; i  64 ; ++i)
   decoder[alphabet[i]] = i;

   bits = 1;

   while(*src)
   {
   c = (unsigned char)(*(src++));
   if (c == '=')
   {
   if (bits  0x4)
   {
   if (dstsize  2) break;
   *(pdst++) = (bits  10);
   *(pdst++) = (bits  2)  0xff;
   break;
   }
   if (bits  0x1000  dstsize)
   *(pdst++) = (bits  4);
   break;
   }
   // skip invalid chars
   if (decoder[c] == 64)
   continue;
   bits = (bits  6) + decoder[c];
   if (bits  0x100)
   {
   if (dstsize  3) break;
   *(pdst++) = (bits  16);
   *(pdst++) = (bits  8)  0xff;
   *(pdst++) = (bits  0xff);
   bits = 1;
   dstsize -= 3;
   }
   }
 

[wpkg-users] [Bug 112] File size check fails

2008-04-24 Thread bugzilla-daemon
http://bugzilla.wpkg.org/show_bug.cgi?id=112





--- Comment #1 from Rainer Meier [EMAIL PROTECTED]  2008-04-24 19:04:10 ---
Created an attachment (id=113)
 -- (http://bugzilla.wpkg.org/attachment.cgi?id=113)
Full package, fixed broken file size check.

This bug has been fixed. Thanks to Daniel!

Change notes

WPKG Version: 1.1.0-M6
Author: : Rainer Meier skybeam (at) users.sourceforge.net
Date: 2008-04-24

Changes/fixes visible to the user:

Summary:
- Fixed broken file size check. Fixes Bug 112.

NEW: File size checks were broken due to faulty code in get file size method
 which was modified to support expanding of environment variables.
 WPKG 1.0 is not affected. This fixes Bug 112. Thanks to Daniel Dehennin!


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-
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] Unable to set the path to file sizeequals check

2008-04-24 Thread Rainer Meier
Hi Daniel,

Daniel Dehennin wrote:
 Regards.
 
 You can find the patch as attachement to this e-mail.

Thanks a lot. Your fix have been applied and checked in to the 
repository. For the records I've created a bug report on Bugzilla:
http://bugzilla.wpkg.org/show_bug.cgi?id=112.

- WPKG 1.1.0-M6

Thanks for your support!

Rainer
-
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] [Bug 112] File size check fails

2008-04-24 Thread bugzilla-daemon
http://bugzilla.wpkg.org/show_bug.cgi?id=112


Rainer Meier [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #2 from Rainer Meier [EMAIL PROTECTED]  2008-04-24 19:06:00 ---
Bug fixed.


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-
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] user password in settings.xml for wpkg client

2008-04-24 Thread Tomasz Chmielewski
Grzegorz Marszałek schrieb:

(...)

 but do you know what  algorithm is used to scrable password? I'd  
 like to recreate it my  script.
 Currently, there is no tool for creating the password (other than  
 wpkginst.exe).
 But it would be a good idea to create one (command line), both for  
 Windows and UNIX.
 Its ugly, but quick.



 $ g++ xmlsettings.cc

(...)

 int main(int argc, char *argv[])
 {
coutCXmlSettings::Crypt(argv[1])endl
CXmlSettings::Decrypt(argv[1])endl;

return 0;
 }
 
 
 Thank you - that's great code :)
 
 I'm really no programmer - but could we add this code to next relase  
 of wpkg-client?

Right now - no, as you used all our bandwidth by leaving the whole 
source code in the email's body (10k sent to all 224 list members!) ;)

I'll place it in the downloads if someone asks for it once again (you're 
the second person as I remember).


-- 
Tomasz Chmielewski
http://wpkg.org
-
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] Re : Re : Question about multi-domain environment

2008-04-24 Thread Rainer Meier
Hi Karl,

Karl wrote:
 No please no more microsoft tools
 
 Is this possible with WPKG?

Well, I think you can - but you did not exactly specify what you want to 
do. Your question about multi-domain environment does not really apply 
to WPKG as WPKG does not care about domains (except for accessing user 
accounts).

You might also use a centralized software repository (or synchronized 
software repository) and then just assign your profiles to the clients.

Here is a short description how I use it:

I use WPKG on multiple, completely independent, Windows domains as well 
(all served with Samba, but this is irrelevant).

On my master domain I create a share and put it on a server which is 
available to the clients under the name 'software'. So all clients on my 
master domain access WPKG on \\software\RemInst\wpkg\wpkg.js.

All the software is stored at \\server\RemInst\software\...
\\software\RemInst\software is referred as %SOFTWARE% (see WPKG 
variable definition)

To distinguish between hosts on different sites I prefixed them all 
according to the site. At installation you can use winnt.sif to to 
achieve hostname prefixes. Just specivy ComputerName = * and OrgName 
= site1 - so all host will be named like site1-someRandomValue.

Then I created host specifications like site1-.* and assigned profiles 
to them like site1-default.
To make it even easier you might create a profile called something like 
global-profile and then add it to the dependencies of siete1-default 
- so most of the packages (which are globally the same) do not need to 
be added to each profile, just keep them in the global one.


So now here the clue comes...
I use rsync (well, on Windows there might be similar tools - or use 
cygwin) to synchronize WPKG and the software share to remote sites.

On all remote sites the software deployment server is called 'software' 
so the \\software\RemInst\... paths are valid on all the sites. I do not 
need to prepare custom packages for each site. Even if the server name 
would be different you can just define another path for the %SOFTWARE% 
variable.

This setup allows me to update multiple sites with a simple rsync command.

HTH
Rainer
-
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] [Bug 109] WPKG uncleanly exits if event log writing fails

2008-04-24 Thread bugzilla-daemon
http://bugzilla.wpkg.org/show_bug.cgi?id=109


Rainer Meier [EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED




--- Comment #7 from Rainer Meier [EMAIL PROTECTED]  2008-04-24 20:35:11 ---
Fixed. Closing report.


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
-
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