windows-vista

Error when running Mysql batch file

无人久伴 提交于 2019-12-05 03:27:15
I have a .sql file on my computer at C:\Users\Owner\Documents\file.sql (Windows Vista) that just creates a database and a simple table within. In mysql at the command line i enter source C:\Users\Owner\Documents\newbie.sql; the query seems to work ok but just before it shows me the successfully created table it outputs the following errors that seem to be related to how i entered the file name: ERROR: Unknown command '\U'. ERROR: Unknown command '\O'. ERROR: Unknown command '\D'. ERROR: Unknown command '\n'. Pardon the newbie error...whats the fix? Thanks! Try using forward slash / in place of

Is it possible to have advertised shortcuts and ProgId for a per user MSI?

旧时模样 提交于 2019-12-05 02:48:31
问题 I have a permachine MSI installer that I'm converting to a per user installer that is installing files to the LocalAppDataFolder. To get rid of ICE38 warnings I added a registry as the keypath. The problem is in one of my components I have a advertised shortcut and ProgId. I'm now getting: ICE19 - 'settings' advertises component: 'CMP_Rapid'. This component cannot be advertised because the KeyPath type disallows it ICE19 - Shortcut: 'SHC_RunConfigExe' advertises component: 'CMP_Rapid'. This

Why does an x86 WiX installer on Windows Vista x64 not write keys to Wow6432Node in the registry?

随声附和 提交于 2019-12-05 00:26:37
问题 I have an installer that writes to HKLM\Software\DroidExplorer\InstallPath . On any x86 machine it writes just fine to the expected location, and on Windows XP x64 and Windows 7 x64 it also writes to the expected location, which is actually HKLM\Software\Wow6432Node\DroidExplorer\InstallPath . Later on during the install, my bootstrapper, which is also x86, attempts to read the value. On all x86 Windows machines it is successful, and on Windows XP x64 and Windows 7 x64, but Windows Vista x64

How can i see the assembly version of a .NET assembly in Windows Vista and newer (WIndows 7, 2008)?

时光怂恿深爱的人放手 提交于 2019-12-04 22:16:34
In windows 2003 and windows XP you could right click on an assembly (.dll) go to properties, click on the version tab and then you would see 3 different version numbers: Assembly version, file version and product version. If you take that same file and look at its properties in windows 2008, you will only see file version and product version. Is there a way to see the assembly version of a .NET assembly in windows vista and newer (without third part tools)? Gerald Davis No. Not from explorer. It is an intentional move by Microsoft (although I dislike it). You can from powershell though:

Does anybody know what means ShellHook message HSHELL_RUDEAPPACTIVATED?

非 Y 不嫁゛ 提交于 2019-12-04 20:35:27
问题 I am writing application which establishes shell hooks to get shell events (I am using C# if it matters). I am using this example: http://msbob.spaces.live.com/blog/cns!DAFD19BC5D669D8F!132.entry Hook is working fine but I do not receive message on which I am interested: HSHELL_WINDOWACTIVATED (all other window-related events work well). Instead I am receiving message with code 32772 which should be HSHELL_RUDEAPPACTIVATED (some googling helped). But I can't understand why I am not receiving

Windows API for VISTA, 7 & Beyond

不问归期 提交于 2019-12-04 20:00:46
问题 Is there any fundamental differences in the WinAPI/Win32? Is there any additional knowledge required to take advantage of new OS features? Are there any pitfalls which someone who's coded Win32 apps in the past might fall in? I'm not talking about Silverlight, that's a whole different ball of wax. (I don't have the VS that supports that at work yet.) Edit: Drew has a pretty good answer so far, but what's critical for a programmer to know? i.e. What should be in an appendix to Charles Petzold

Elevated Credentials for VB6

孤者浪人 提交于 2019-12-04 19:54:38
I need to get elevated credentials (to start a service) in a VB6 application, but only if the user needs to restart the service (I.e. I don't want to get elevated credentials whenever the application is started, only when the user selects restart). How can I do this in VB6? Fairly easy, but the preferred way involves a new elevated process. This example uses itself run with a switch to know to perform the Service Start instead of normal operations: VERSION 5.00 Begin VB.Form Form1 BorderStyle = 1 'Fixed Single Caption = "Form1" ClientHeight = 3060 ClientLeft = 45 ClientTop = 345 ClientWidth =

Unable to Create or Write to a file as standard user

﹥>﹥吖頭↗ 提交于 2019-12-04 19:45:02
My application creates a log file when it connects or disconnects a server. This works well win win XP. There are no issues while I run it as admin in Vista and Win 7. But if I run this as a standard user in Vista or Win7 then it fails to create the log file, and I know this is for UAC. But how can I bypass this situation so that my app will run as admin . DO I need to add any registry entry while installing my application so that it will always run as administrator. If you really want to, you can add a manifest that causes your application to require UAC elevation when it is launched, but

Silverlight 2 Sidebar Gadget

。_饼干妹妹 提交于 2019-12-04 19:40:42
问题 How do you display a Silverlight 2.0 application in a Vista Sidebar gadget? Whenever I load a gadget with the standard Silverlight 2 object tag, I get the no-silverlight default content instead of the app. So, what's the trick to allowing it to run? This is how I am currently trying to pull it off: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=Unicode" /> <title>Silverlight Test</title> <style type="text/css"> body { margin: 0; width: 130px; } </style> </head>

Inno setup - install app to Program Files, allow run not as admin

跟風遠走 提交于 2019-12-04 19:05:25
My installer installs the app to "Program files\MyApp", the app when running changes files within this location. On Vista, by default this brings up UAC issues. I want users to be able to run MyApp without being admisn or fighting the UAC screen everytime they run the app. If they have to get through UAC to install the app, that's OK though still not optimal. I thought I had this set up, but it's not working: [Setup] PrivilegesRequired=admin AppName=My App AppVerName=My App 1.0 DefaultDirName={pf}\MyApp DefaultGroupName=MyApp UninstallDisplayIcon={app}\bin\MyApp.ico OutputDir=..\Installer