Adam Williams | 1 May 18:29 2006
Picon

access is denied when running cscript

I'm following the Installation instructions on wpkg.org.  I added 
"cscript \\roark\wpkg\wpkg.js /synchronize /quiet" to my windows task 
schedule as Administrator, and added Administrator to my samba server.  
When I run "cscript \\roark\wpkg\wpkg.js /synchronize" as Administrator 
on the windows xp computer, it errors with "access is denied"  The user 
exists on the windows xp PC, and on \\roark and the password is correct 
and the same on both.  Any suggestions on how to correct this so that 
the cscript command will run properly?

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Tomasz Chmielewski | 1 May 21:47 2006

Re: access is denied when running cscript

Adam Williams wrote:
> I'm following the Installation instructions on wpkg.org.  I added 
> "cscript \\roark\wpkg\wpkg.js /synchronize /quiet" to my windows task 
> schedule as Administrator, and added Administrator to my samba server.  
> When I run "cscript \\roark\wpkg\wpkg.js /synchronize" as Administrator 
> on the windows xp computer, it errors with "access is denied"  The user 
> exists on the windows xp PC, and on \\roark and the password is correct 
> and the same on both.  Any suggestions on how to correct this so that 
> the cscript command will run properly?

Can you access this share at all?

Do:

dir \\roark\wpkg\

and

type \\roark\wpkg\wpkg.js

work from cmd?

If not, check your Samba logs, and make sure you use correct credentials.

--

-- 
Tomasz Chmielewski
http://wpkg.org

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
(Continue reading)

Tomasz Chmielewski | 1 May 21:50 2006

Re: Fwd: strange behavior installing acrobat

Paul Bais wrote:

(...)

> A feature request:
> Could the messages used in wpkg.js be put in a seperate file? I translated the 
> messages to dutch and now have to include them manually in every new version 
> of wpkg.js. An included messages file would be nice. If only for the 
> notification messages that are sent to the user.

Why not, should be useful.

Please put your request on http://bugs.wpkg.org, if enough people want 
this feature, it should be added.

--

-- 
Tomasz Chmielewski
http://wpkg.org

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Adam Williams | 1 May 21:51 2006
Picon

Re: access is denied when running cscript

Hey sorry I didn't follow up with an additional post.  I had to chmod 
644 profiles.xml, hosts.xml, and packages.xml, then all was well.

Tomasz Chmielewski wrote:
> Adam Williams wrote:
>> I'm following the Installation instructions on wpkg.org.  I added 
>> "cscript \\roark\wpkg\wpkg.js /synchronize /quiet" to my windows task 
>> schedule as Administrator, and added Administrator to my samba 
>> server.  When I run "cscript \\roark\wpkg\wpkg.js /synchronize" as 
>> Administrator on the windows xp computer, it errors with "access is 
>> denied"  The user exists on the windows xp PC, and on \\roark and the 
>> password is correct and the same on both.  Any suggestions on how to 
>> correct this so that the cscript command will run properly?
>
> Can you access this share at all?
>
> Do:
>
> dir \\roark\wpkg\
>
> and
>
> type \\roark\wpkg\wpkg.js
>
> work from cmd?
>
> If not, check your Samba logs, and make sure you use correct credentials.
>
>

(Continue reading)

Tomasz Chmielewski | 1 May 22:29 2006

Re: Package Download patch

Andre Ilie wrote:
> Hi
> 
>     Just had some time to implement this package downloading stuff. I 
> really like the idea as its very useful for remote dialup users and you 
> can even work like the FreeBSD ports collection, by downloading the 
> original package from the original websever (eg. acrobat from 
> www.adobe.com), thus saving a lot of work with making your own file store.
> 
>     Downloading of packages is implemented like this:

(...)

It seems that your patch got stuck because of its size, so I had to 
accept it manually:

Pending posts:
      From: ............ on Tue Apr 25 04:46:00 2006
     Cause: Message body is too big: 87504 bytes but there's a limit of 
40 KB

I didn't look at it yet (I just came back from my little holiday), but 
sounds very interesting.

--

-- 
Tomasz Chmielewski
http://wpkg.org

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
(Continue reading)

Matt Miller | 1 May 22:40 2006

Re: Make Firefox the default browser?

I'm having a lot of trouble with this...
Google got me a script that almost works, but I think there are more 
registry keys to make Firefox the default browser. When you run Firefox 
it still thinks it's not the default browser, non-admin level users 
can't set it as default, and there a few html files that still want to 
open in Notepad when double clicked.
Anyone want to help with this?

script is attached

Matt Miller wrote:
> This is for when you want to run Firefox, not install it...
> Creating a shortcut that runs that command won't work either. The users 
> are running as user, not as administrator, and can't change the default 
> browser.
> I think I'm going to have to go through the registry. I'll have a peak 
> at the file you posted. I'll post whatever I figure out to the wiki and 
> list.
> 
> 
> Paul Griffith wrote:
>> Give this a try, I have not tried it my self.....
>>
>> http://kb.mozillazine.org/Setting_Your_Default_Browser
>>
>> Force Firefox to make itself the default
>>
>> If Firefox already thinks that it is default, exit Firefox completely,
>> go to "Start Menu -> Run" and enter this into the text box: 
>> firefox.exe -silent -nosplash -setDefaultBrowser
(Continue reading)

Andre Ilie | 2 May 08:22 2006

Re: Package Download patch

Hi

	Ah no Problem.

	Just found a bug in the patch... execute=always/once packages are not 
"downloadable" because I've just added the feature to installPackage(). 
I will change this as soon as I get called without arguments. ;)

	Greets,
		Andre

Tomasz Chmielewski wrote:
> I didn't look at it yet (I just came back from my little holiday), but 
> sounds very interesting.
> 
> 

Attachment (ai.vcf): text/x-vcard, 377 bytes
Jean-Jacques Moulis | 2 May 08:38 2006
Picon
Picon
Picon

Re[2]: Make Firefox the default browser?

On Mon, 01 May 2006 16:40:21 -0400 Matt Miller <mmiller <at> solutionsforprogress.com> wrote:

MM> I'm having a lot of trouble with this...
MM> Google got me a script that almost works, but I think there are more 
MM> registry keys to make Firefox the default browser. When you run Firefox 
MM> it still thinks it's not the default browser, non-admin level users 
MM> can't set it as default, and there a few html files that still want to 
MM> open in Notepad when double clicked.
MM> Anyone want to help with this?

After installing Firefox with:

"%WpkgRoot%\Packages\Firefox\Firefox Setup 1.5.0.2.exe" -ms

Run:

Set_Firefox_as_default.cmd

-----------------------Set_Firefox_as_default.cmd--------------------------
copy %Wpkgroot%\Files\nsBrowserContentHandler.js "%ProgramFiles%\Mozilla Firefox\components"
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -CreateProfile default
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -setDefaultBrowser -silent
---------------------------------------------------------------------------

Add lines 330 331 in the original nsBrowserContentHandler.js

326:	    if (cmdLine.handleFlag("preferences", false)) {
327:	      openPreferences();
328:	      cmdLine.preventDefault = true;
329:	    }
(Continue reading)

Georg Lutz | 2 May 10:22 2006
Picon

Re: Make Firefox the default browser?

On 2006-05-02, Jean-Jacques Moulis wrote:
> 
> Set_Firefox_as_default.cmd
> 
> -----------------------Set_Firefox_as_default.cmd--------------------------
> copy %Wpkgroot%\Files\nsBrowserContentHandler.js "%ProgramFiles%\Mozilla Firefox\components"
> "%ProgramFiles%\Mozilla Firefox\firefox.exe" -CreateProfile default
> "%ProgramFiles%\Mozilla Firefox\firefox.exe" -setDefaultBrowser -silent
> ---------------------------------------------------------------------------
> 
> 

Normally wpkg is executed under the systems account without
administrator intervention. Will "-setDefaultBrowser" just set the
default browser without actually creating or profile or do other things?

To set firefox to the default browser I used the REG file at msfn.org .
But there are 2 problems:

1. Firefox is still complaining that it is not the default browser. When
I click a link in MS word, firefox opens this link but afterwards word
says that he cannot find a default browser

2. 8.3 file names are used. If you have multiple mozilla products, its
not shure that "MOZILL~1" matches "Mozilla Firefox".

For point nr 2 I manually altered the REG file to use long file names.
Apparently this seems to work, but I don't know if there are
sideeffects.

(Continue reading)

Jean-Jacques Moulis | 2 May 12:01 2006
Picon
Picon
Picon

Re[2]: Make Firefox the default browser?


On Tue, 2 May 2006 10:22:22 +0200 Georg Lutz <georg-list <at> georglutz.de> wrote:

GL> Normally wpkg is executed under the systems account without
GL> administrator intervention. Will "-setDefaultBrowser" just set the
GL> default browser without actually creating or profile or do other things?

I run wpkg as system
and use this package definition:

<package id="setffasdefault" name="Set FireFox as Default Browser"
         revision="1" priority="11" reboot="false" execute="once">
                <install cmd="%WpkgRoot%\Tools\Set_FF_as_default.cmd" />
                <upgrade cmd="%WpkgRoot%\Tools\Set_FF_as_default.cmd" />
                <remove cmd="%WpkgRoot%\Tools\Set_IE_as_default.cmd" />
        </package>

this create a default profile in  C:\Documents and Settings\Default User\Application
Data\Mozilla
if that is a concern you could have:

rmdir /S /Q "C:\Documents and Settings\Default User\Application Data\Mozilla"

in Set_FF_as_default.cmd

----------------------Set_FF_as_default.cmd-------------------------
copy /Y %Wpkgroot%\Files\nsBrowserContentHandler.js "%ProgramFiles%\Mozilla Firefox\components"
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -CreateProfile default
"%ProgramFiles%\Mozilla Firefox\firefox.exe" -setDefaultBrowser -silent
rmdir /S /Q "C:\Documents and Settings\Default User\Application Data\Mozilla\Firefox\Profiles"
(Continue reading)


Gmane