Re: [OT] patch.exe on Vista is unusable.

2008-09-28 Thread Sisyphus

- Original Message - 
From: Jan Dubois [EMAIL PROTECTED]
To: 'Sisyphus' [EMAIL PROTECTED]; 'perl-win32-users' 
perl-win32-users@listserv.ActiveState.com
Sent: Saturday, September 27, 2008 10:44 AM
Subject: RE: [OT] patch.exe on Vista is unusable.


 On Wed, 24 Sep 2008, Sisyphus wrote:
 Despite the fact that this is a great and wondrous innovation on the
 part of Microsoft (I bet Linux wish they'd thought of it first), I
 would like to remove this behaviour. Anyone know how to do that ?

 I think I figured it out: In the policy editor open Local Security
 Policy, navigate to Security Settings, Local Policies, Security
 Options and then deactivate the User Account Control: Detect
 application installations and prompt for elevation policy.


Thanks for giving it more thought, Jan. (I'm starting to feel embarrased now 
at the effort you've gone to.)
I got into Local Policies by first running secpol.msc as administrator, 
and then deactivated the control you mention, but nothing seems to have 
changed.

I owe Jack an apology, too. If I run the cmd.exe console as Administrator I 
*can* run patch.exe fine, irrespective of whether the manifest file is 
present or not. (I had misunderstood Jack's advice.)

I've also since discovered that I can run Cygwin's patch fine from within 
Cygwin's bash shell. So, at least I do have options for getting the job 
done. (It may be that the Cygwin bash shell is running with Administrator 
privileges.)

Given that I don't need to run 'patch' all that often, I can probably make 
do with the workarounds that I've got at my disposal. After all, it's not a 
great imposition to open a cmd.exe shell as administrator. Still ... it's a 
damn strange thing to have come up against 

Thanks guys.

Cheers,
Rob 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: [OT] patch.exe on Vista is unusable.

2008-09-26 Thread Jan Dubois
On Wed, 24 Sep 2008, Sisyphus wrote:
 Despite the fact that this is a great and wondrous innovation on the
 part of Microsoft (I bet Linux wish they'd thought of it first), I
 would like to remove this behaviour. Anyone know how to do that ?

I think I figured it out: In the policy editor open Local Security
Policy, navigate to Security Settings, Local Policies, Security
Options and then deactivate the User Account Control: Detect
application installations and prompt for elevation policy.

This policy uses heuristics to detect install/update programs and pre-
emptively requests elevation for them when you launch them.

These heuristics seem to trigger on a whole bunch of words, including
setup, install, update and patch anywhere in the filename, but
there are supposed to be other heuristics as well that look at the
version information.

When you disable this policy then you probably will have to explicitly
request privilege elevation whenever you run an old-style installer
that doesn't have a manifest embedded.

Cheers,
-Jan


___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: [OT] patch.exe on Vista is unusable.

2008-09-25 Thread Sisyphus

- Original Message - 
From: Sisyphus [EMAIL PROTECTED]
To: perl-win32-users perl-win32-users@listserv.ActiveState.com
Sent: Thursday, September 25, 2008 1:41 PM
Subject: [OT] patch.exe on Vista is unusable.
.
.
 Does anyone have a working patch.exe on Vista ?

There's actually nothing wrong with the patch.exe files.

The problem is that Vista won't let me run any executable whose name =~ 
m/patch/i without first getting my Administrator password. Vista doesn't 
care what the file actually does - it just decides that any executable whose 
name =~ m/patch/i needs admin privileges to run, and that it can't be run 
from the command line. (This of course means that I can rename patch.exe to, 
say, othername.exe, and I can then run it fine - but I have to run it as 
'othername', not 'patch'.)

Despite the fact that this is a great and wondrous innovation on the part of 
Microsoft (I bet Linux wish they'd thought of it first), I would like to 
remove this behaviour. Anyone know how to do that ?

Cheers,
Rob

Cheers,
Rob 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: [OT] patch.exe on Vista is unusable.

2008-09-25 Thread Jack
- Original Message -
From: Sisyphus [EMAIL PROTECTED]
To: perl-win32-users perl-win32-users@listserv.ActiveState.com
Sent: Thursday, September 25, 2008 1:41 PM
Subject: [OT] patch.exe on Vista is unusable.


 Does anyone have a working patch.exe on Vista ?

There's actually nothing wrong with the patch.exe files.

The problem is that Vista won't let me run any executable whose name =~ 
m/patch/i without first getting my Administrator password. Vista doesn't 
care what the file actually does - it just decides that any executable whose

name =~ m/patch/i needs admin privileges to run, and that it can't be run 
from the command line. (This of course means that I can rename patch.exe to,

say, othername.exe, and I can then run it fine - but I have to run it as 
'othername', not 'patch'.)

Despite the fact that this is a great and wondrous innovation on the part of

Microsoft (I bet Linux wish they'd thought of it first), I would like to 
remove this behaviour. Anyone know how to do that ?

Cheers,
Rob

##
You should be able to run it from the command line once you have a command
window up that has already passed the password test. i.e. Right click on the
command icon (mine is in the start menu) and choose Run as Administrator.
I'm not sure if this is what you are looking for?

Jack 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: [OT] patch.exe on Vista is unusable.

2008-09-25 Thread Sisyphus

- Original Message - 
From: Jan Dubois [EMAIL PROTECTED]
To: 'Sisyphus' [EMAIL PROTECTED]; 'perl-win32-users' 
perl-win32-users@listserv.ActiveState.com
Sent: Thursday, September 25, 2008 5:15 PM
Subject: RE: [OT] patch.exe on Vista is unusable.
.
.
 Despite the fact that this is a great and wondrous innovation on the part 
 of
 Microsoft (I bet Linux wish they'd thought of it first), I would like to
 remove this behaviour. Anyone know how to do that ?

 Did you try to create a patch.exe.manifest file in the same directory as
 patch.exe that request to run asInvoker?

Just gave it a try now - but no luck. I get a pop-up telling me that The 
requested operation requires elevation.


 If this doesn't work, download the ACT (Application Compatibility Toolkit)
 from Microsoft and try to apply a runAsInvoker shim to the executable.

 There may also be a location in the registry to specify the requested
 execution level.

I'll pursue that at some stage. For the moment I'll just rename 'patch.exe' 
to 'patsh.exe' - which works fine. When I first posted about this I didn't 
realize that a rename would work. I had tried renaming the file to 
'my_patch.exe', but when the problem persisted I thought there must be more 
to it than a simple rename. It didn't occur to me at that time that the 
filename must !~ m/patch/i.

I also tried out Jack's suggestion involving Run as administrator, but 
couldn't get anywhere with that either.

Thanks Jack, Jan.

Cheers,
Rob 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs