windows-vista

Overwrite executable in C:\Program\MyProg on Windows Vista

瘦欲@ 提交于 2019-12-02 00:25:43
问题 I would like my program to update itself (downloading a new exe and/or some other files from ftp) and I used the recipe in the accepted answer to this question. Recap: Rename running program to old-mp.exe Download the update as mp.exe directly Restart the program This works great for windows XP. On vista there is a problem, as the user must run the program as administrator for this to work. Rightclicking and selecting "Run as administrator" might be over my users heads... Does anyone know a

Overwrite executable in C:\\Program\\MyProg on Windows Vista

久未见 提交于 2019-12-01 20:49:51
I would like my program to update itself (downloading a new exe and/or some other files from ftp) and I used the recipe in the accepted answer to this question . Recap: Rename running program to old-mp.exe Download the update as mp.exe directly Restart the program This works great for windows XP. On vista there is a problem, as the user must run the program as administrator for this to work. Rightclicking and selecting "Run as administrator" might be over my users heads... Does anyone know a way around this? I like the simple update method very much. The simple option is to include a manifest

Issue with .cab file (ActiveX) installation on Windows Vista and 7

给你一囗甜甜゛ 提交于 2019-12-01 20:30:47
I have made an ActiveX control and have made its .cab file for automatic installation on client machine using Internet Explorer.. It working fine of Windows XP, but on windows Vista and Windows 7 its installation is blocked by UAC (User account control), and when I disable it, all things works fine... I have signed my .cab file with a certificate for development enviornment... What is the way to over come this problem.. I don't want to tell users to disable their UAC module... Most likely this is because you're trying to register your control in HKEY_LOCAL_MACHINE, which is the default in ATL.

Is there a way to get a local timestamp in my IPython prompt?

[亡魂溺海] 提交于 2019-12-01 20:21:41
Is there a way to get a local timestamp in my IPython prompt? I'm using IPython 0.10 and Python 2.6 on 64-bit Windows Vista. My current default prompt is [C:Python26/Scripts] |9> OK, I tried to follow your directions exactly. However, my experience has been that all config editing is best kept to my ipy_user_conf.py . To quote from it: User configuration file for IPython (ipy_user_conf.py) This is a more flexible and safe way to configure ipython than *rc files (ipythonrc, ipythonrc-pysh etc.) This file is always imported on ipython startup. You can import the ipython extensions you need here

Unable to find an entry point named 'TaskDialogIndirect' in DLL 'ComCtl32'

。_饼干妹妹 提交于 2019-12-01 17:42:27
We have a particular Vista x64 machine that, when running our C# WinForms app, displays the following error: System.EntryPointNotFoundException: Unable to find an entry point named 'TaskDialogIndirect' in DLL 'ComCtl32'. This same code works fine on other Vista machines. For some reason, this particular Vista machine always throws this exception. How can we fix this? Jonas I had problems with this and Naughter's free XTaskDialog API , to get a fallback mechanism on Windows XP machines via emulation, rendering this dialog implementation much more useful. :) In my case it was an activation

Clicking mouse by sending messages

﹥>﹥吖頭↗ 提交于 2019-12-01 17:38:12
I'm trying to send mouse clicks to a program. As I don't want the mouse to move, I don't want to use SendInput or mouse_event, and because the window that should receive the clicks doesn't really use Buttons or other GUI events, I can't send messages to these buttons. I'm trying to get this working using SendMessage, but for some reason it doesn't work. Relevant code is (in C#, but tried Java with jnative as well), trying this on Vista [DllImport("user32.dll", CharSet=CharSet.Auto)] public static extern int SendMessage(IntPtr A_0, int A_1, int A_2, int A_3); static int WM_CLOSE = 0x10; static

powershell : ftp directory listing (help on a script)

痴心易碎 提交于 2019-12-01 17:14:54
问题 I am trying to do a list view of a ftp directory. The viewing part is ok so far but I am unable to manipulate the data I am getting back. Here is the script that I used; [System.Net.FtpWebRequest]$ftp = [System.Net.WebRequest]::Create("ftp://ftp.microsoft.com/ResKit/y2kfix/alpha/") $ftp.Method = [System.Net.WebRequestMethods+FTP]::ListDirectory #Details $response = $ftp.getresponse() $stream = $response.getresponsestream() $buffer = new-object System.Byte[] 1024 $encoding = new-object System

Make UAC optional in Windows Installer on Vista

雨燕双飞 提交于 2019-12-01 14:38:59
问题 I'm have written an msi file that offers a choice of "per-user" or "for all" installation in the UI phase, and now find that the installer fails on Vista: if I just reuse the installer that works for XP, Vista will trigger a UAC prompt even for the "per-user" installation, making that installation pointless if I turn off UAC in bit 3 of PID_WORDCOUNT, Vista won't invoke UAC at all anymore, so even if the user would have permission to install into the machine registry (say), the privilege

How to remove a prefix from multiple files?

断了今生、忘了曾经 提交于 2019-12-01 14:21:25
I downloaded a lot of videos that are named like [site.com] filename.mp4 and I wanted to remove the prefix so that they are named like filename.mp4 . I tried a batch file with the following code: ren "[site.com] *.mp4" "///////////*.mp4" But the result was .com] filename.mp4 and can't rename anything beyond the dot, any ideas? @ECHO OFF SETLOCAL SET "sourcedir=U:\sourcedir" FOR /f "tokens=1*delims=]" %%a IN ( 'dir /b /a-d "%sourcedir%\*" ' ) DO IF "%%b" neq "" ( FOR /f "tokens=*" %%h IN ("%%b") DO ECHO(REN "%sourcedir%\%%a]%%b" "%%h" ) GOTO :EOF You would need to change the setting of

How to remove a prefix from multiple files?

余生颓废 提交于 2019-12-01 12:50:01
问题 I downloaded a lot of videos that are named like [site.com] filename.mp4 and I wanted to remove the prefix so that they are named like filename.mp4 . I tried a batch file with the following code: ren "[site.com] *.mp4" "///////////*.mp4" But the result was .com] filename.mp4 and can't rename anything beyond the dot, any ideas? 回答1: @ECHO OFF SETLOCAL SET "sourcedir=U:\sourcedir" FOR /f "tokens=1*delims=]" %%a IN ( 'dir /b /a-d "%sourcedir%\*" ' ) DO IF "%%b" neq "" ( FOR /f "tokens=*" %%h IN