Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
problem upgrading psychopy to 1.73
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Peirce  
View profile  
 More options Nov 1 2012, 1:36 pm
From: Jonathan Peirce <jonathan.pei...@nottingham.ac.uk>
Date: Thu, 01 Nov 2012 17:36:54 +0000
Local: Thurs, Nov 1 2012 1:36 pm
Subject: Re: [psychopy-users] Re: problem upgrading psychopy to 1.73

[moved from users list]

On 01/11/2012 17:20, Jonathan Peirce wrote:

>> Also, is there any good reason to require users to run as
>> Administrator to do updates?  I do not recall having to do that for
>> any other Windows software.
> This isn't my choice, it's just that altering files that are within
> the program files folder seems to require this. it would be ideal to
> simply ask the user, at the time of upgrade, for permission to elevate
> to administrator. But I don't know how to do that yet (and don't
> really see it as a priority right now).

Looks like we might be able to do something like the following windows
(ie have the function that does the file copying as a separate script
and launch that using admin level). It will presumably then ask for
authentication as admin:

import win32api
win32api.ShellExecute( 0, # parent window
     "runas", # need this to force UAC to act
     "C:\\python27\\python.exe",
     "moveNewZipFileIntoPlace.py",
     "C:\\python27", # base dir
     1 ) # window visibility - 1: visible, 0: background

http://blog.pythonaro.com/2011/09/python-wmi-services-and-uac.html

just a thought from a quick google
Jon

--
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »