windows-vista

Getting COM object to run in Vista

We expose an interface to our simulation software using a COM/ActiveX object. This worked just fine in XP, but in Vista, we get "Error 429: ActiveX can't create object" when a VB client executes CreateObject(). The COM object has been registered by hand so that the Vista Registry is identical to XP's Registry. I run the VB interface...

Java: Copying an exe-file and launching afterwards fails

Hi, I want to copy an existing .exe-file from one directory to another and launch it afterwards with Java. Like this: FileIO.copy( new File( sourceFile ), new File( targetFile ) ); System.out.println( "Existing: " + new File( targetFile ).exists() ); System.out.println( "Launching " + targetFile ); String cmd[] = { targetFile }; Proces...

COM+ Applications returns an error when when I try to add a new application

Error message returned 'An error occurred while processing the last operation. Error code 800401154 - Class not registered The event log may contain additional troubleshooting information.' The other thing is, the is a red arrow icon displayed over My Computer (Component Servers -> Computers -> My Computer). I have searched everywhere ...

ASP.NET application hangs after a call

I'm having a simple ASP.NET application hosted on my local IIS6, under Vista. It contains a button that when I click I execute a piece of code for recognizing the text in a WAV file (using the System.Speach.Recognition.SpeechRecognition class) and display the text in a label. The code works great on a desktop application, and it almost...

How to use drag-drop on windows seven or vista?

I've an app wich alows the user to drag drop images into a picturebox. It works on xp, it doesn't works on vista and seven since the UAC could cause the problem. I've tried running it as administrator and still it doesn't work. ...

In Windows Vista and 7, I can't access the %DEFAULTUSERPROFILE% system variable - it shows as not found

If I try to access this system variable from the Run... dialog, Windows tells me the directory doesn't exist. Some system variables, like %SYSTEMROOT% and %USERPROFILE%, do work. Consequently, if I try to use a supposedly nonexistent variable like %DEFAULTUSERPROFILE% or %PROFILESFOLDER% in C#, I get nothing in return. Is there something...

I can't access certain subkeys in an entry in the registry

I'm trying to get to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\GameUX\, but the only subkey being returned in C# is MachineSettings - even though there are additional subkeys, including Games and several keys named for different user SIDs. How can I access these other keys? Even a standard user account can read the content of both G...

Adding certificate to trusted root authority

Hello, I have moved to Windows Vista Business recently and am facing an issue with installng my networks cetiicate in the trusted root authority. on clicking on install certificate, i select the store where the certificat should be stored, which is Trusted Root Authorities-->Local Computer In XP. but in Vista i am not getting the Option ...

Why does x86 WiX installer on Vista x64 not write keys to WOW6432Node in the registry

I have an installer that writes to HKLM\Software\DroidExplorer\InstallPath. On any x86 machine it writes just fine to the expected location, 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, wh...

OpenFileDialog.AutoUpgradeEnabled doesn't work under Vista or 7?

If I specify OpenFileDialog.AutoUpgradeEnabled = true, my program still shows the old XP-style dialog. Any idea why this would happen? This is after I enable theming in Main() [STAThread] static void Main() { Application.EnableVisualStyles(); Application.Run(new Primary()); } and this is my dialog code: private void OpenProgr...

Prevent monitor from powering on

I'm turning off the monitor using SendMessage(HWND_BROUADCART, WM_SYSCOMMAND, SC_MONITORRPOWER, 2). That works, but the monitor turns back on when someone touches the keyboard or mouse. I tried to get rid of this using the DevicePowerSetDeviceState function with DEVICEPOWER_CLEAR_WAKEENABLED for the keyboard and mouse: it returns no err...

CRViewer control bug on Vista SP1

I have created a COM component that uses CRViewer to load and display some reports. I consume this COM control on the windows application using C#. The problem is before vista SP1 was installed the CRViewer is to load propery and show the report but after SP1 it does not; CRViewer.IsBusy is always set to true. ...

Vista copyfile is copying into VirtualStore folder

Hello I have created one application on Vista, that is running with admin privileges. I am trying to copy one file to ProgramData\Application\ folder. But instead to copying there its copying at location c:\Users\XXX\AppData\Local\VirtualStore\ProgramData\Application\ I dont want this file to get copied into Virtul store. Any suggesti...

Taking screenshots in Windows Vista, Windows 7, with transparent areas outside the app region

Hey Folks, I am trying to take a screenshot of an application and I would like to make the parts of the rectangle that are not part of the applications region be transparent. So for instance on a standard windows application I would like to make the rounded corners transparent. I wrote a quick test application which works on on XP (o...

MS Word opens documents hosted on WebDav share read-only on Windows Vista and 7 but only if no other webdav connections are open

We have a WebDav server with some Word documents on it. (We are using PHP's HTTP_WebDAV_Server but get the same issue on tests with Apache mod_dav - both use digest authentication, basic auth doesn't work on Vista or later) We have a web page that opens the word documents using javascript like: Doc = new ActiveXObject("Sharepoint.OpenD...

error installing System Update Readiness Tool for Windows Vista

I have a virtual machine running Vista. I need to update it with SP1 and SP2 for Vista, and SP1 for VS. I downloaded and saved all 3 but when I tried to install SP1 for Vista I got an error which indicated I should run the Vista System Update Readiness Tool. I downloaded the Readiness Tool but when I tried to install it on the virtual ...

Registry access problem

I have a windows forms app that is modifying some registry keys under the software section. Vista non admins are complaining that they are getting a permission error. I did what it said in this post: http://stackoverflow.com/questions/562350/requested-registry-access-is-not-allowed Created an app.manifest file and pasted what was sai...

What actions will require UAC elevation in Windows?

I'm marking this as a community wiki because I'm not really looking for one complete answer. So if you feel like posting one or two things that will activate the UAC prompt instead of a comprehensive list then go ahead. What actions in Windows will activate UAC? I'd like to avoid it as much as possible because my application doesn't n...

API to change ownership of file vista

I have a file created by installer as Administrator owner. Is there any API that can change the ownership of file on Vista? ...

Giving write permission to Users group in Vista?

IS there any API that can give 'Users' write permission to a file in Vista? ...