Posts tagged windows

Guldgruva

Jag hittade en liten guldgruva för den som vill göra mer än bara det vanliga i Windows och diverse program: Lyte Byte

Finns mycket kul där.

Stäng av UAC per applikation

Äntligen kan man stänga av Windows Vista’s UAC per applikation istället för hela systemet! Microsoft har sammanställt en guide på hur detta sker här. Äntligen kan man starta Visual Studio utan att behöva bekräfta UAC’n varje gång.

Ursh, det var inte så bra som det först såg ut.  UAC frågar ändå efter tillstånd att köra programmet ‘elevated’, smått förvirrande artikel. :(

Howto: Install DS9490 under Windows Vista

This post is written in English, just so all the other poor 1-Wire enthusiasts out there can benefit from my findings – I’m not switching back to blogging in English!

Have you successfully installed a the DS9490 1-Wire adapter under Windows Vista, without any problems? Well, then I envy you – I’ve just spent the better part of two days trying to get my device to work.

Without further ado too much, here’s the deal:

After installing the 1-Wire drivers from Maxim/Dallas inserting the DS9490 device starts the Add new hardware wizard, but it will end with a message like this. Ok, file not found, but which file!?! (I hate these user-friendly error messages) In the device manager the device is listed as “Unknown device”…not much help there either.

So, what to do now? Well, here’s what you’ll have to do. It is possible only the last two steps actually are required, but I’m not going to uninstall my device just to try it so I’ll give you the whole step-by-step instruction.  Update: It is confirmed that only the file winusb.sys needs to be copied.

First, log on as administrator, then download the 1-Wire drivers, and the “File only“-distribution.

  • Unplug the DS9490 device from your USB port.
  • Uninstall any installed 1-Wire drivers
  • Remove the drivers that still remains in the driver repository (c:\windows\system32\driverstore\filerepository\)
    • I did this as follows:
      • Copy the files ds2490winusb_x86.cat, ds2490winusb_x86.inf, WdfCoInstaller01005.dll and WinUSBCoInstaller.dll to a temporary directory from the “File only-distribution.
      • Open a command prompt, and execute the command: “pnputil -a <path-to-the-files>\ds2490winusb_x86.inf”
      • You should now get a response like this:

        pnputil -a c:\temp\ds2490winusb_x86.inf
        Microsoft PnP Utility

        Processing inf : ds2490winusb_x86.inf
        Driver package added successfully.
        Published name : oem31.inf

      • Take note of the number on the last row, 31 in this case.
      • Now execute the command “pnputil -d oem31.inf“, replacing “31″ with the number you got above.
      • You should now get a response like this:

        Microsoft PnP Utility

        Driver package deleted successfully.

      • Now plug in the device again and point the hardware wizard to the files you copied earlier. The wizard will then continue, but fail with the same error message.
      • Now open the file c:\windows\inf\setupapi.dev.log. Towards the end you’ll see a line starting with “!!!”, followed by “flq: Error 2: The system cannot find the file specified.” that’s the error message the wizard gave us.
      • Above this line you’ll see the following:

        flq: SPFILENOTIFY_NEEDMEDIA:
        flq: Description – [windows cd]
        flq: SourcePath – [C:\Windows\INF]
        flq: SourceFile – [winusb.sys]
        flq: Flags – 0×00000000
        flq: {SPFILENOTIFY_NEEDMEDIA}

      • That is the file that’s missing; winusb.sys, in folder c:\windows\inf.
      • So, find a copy of winusb.sys on your computer (there will likely be several copies), then copy it to c:\windows\inf.
      • Now open the Device manager, right click on the “Unknown device”, which we know to be our DS9490, select “Update driver software” and point it to the same drivers as earlier.
      • *Drumroll* driver installed successfully!
      • You may now install the normal driver package to get the TMEX drivers and 1-Wire viewer installed as well.
    • And here’s the proof it works!

If this helps you, then please drop me a line using the contact form.

Temperaturkoll, nu med stöd för MSN

Idag blev en ny version av Temperaturkoll färdig. Den innehåller en buggfix samt en helt ny funktion; den kan du ändra ditt personliga meddelande i Windows (Live) Messenger till den aktuella temperaturen för en ort du valt. För att denna funktion ska fungera måste stöd för det aktiveras i MSN klienten, vilket görs genom att klicka på pilen brevid ditt personliga meddelande i och välja “Show what I’m listening to”.

Som vanligt kan du ladda ned den senaste versionen här.