<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Marcus Nyberg &#187; windows</title>
	<atom:link href="http://www.marcusnyberg.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marcusnyberg.com</link>
	<description>Digital and dangerous</description>
	<lastBuildDate>Mon, 26 Jul 2010 11:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mina försök att använda HTPC&#8217;n som trådlös router i Windows 7</title>
		<link>http://www.marcusnyberg.com/2010/07/16/mina-forsok-att-anvanda-htpcn-som-tradlos-router-i-windows-7/</link>
		<comments>http://www.marcusnyberg.com/2010/07/16/mina-forsok-att-anvanda-htpcn-som-tradlos-router-i-windows-7/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 09:44:09 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=657</guid>
		<description><![CDATA[Jag har under sommaren laborerat med min HTPC så att den ska kunna dela ut mobilt bredband i sommarstugan med Windows 7 utan att behöva koppla in någon router. Man kan ju förvandla sin Windows 7 dator till att fungera som en trådlös router genom att använda ConnectifyMe, Virtual Router eller att använda sig av [...]]]></description>
			<content:encoded><![CDATA[<p>Jag har under sommaren laborerat med min <a href="http://www.marcusnyberg.com/2010/06/20/min-htpc-nas-och-nedladdningsmaskin/">HTPC</a> så att den ska kunna dela ut mobilt bredband i sommarstugan med Windows 7 utan att behöva koppla in någon router. Man kan ju förvandla sin Windows 7 dator till att fungera som en trådlös router genom att använda <a href="http://www.connectify.me/">ConnectifyMe</a>, <a href="http://virtualrouter.codeplex.com/">Virtual Router</a> eller att använda sig av <a href="http://www.neowin.net/news/main/09/11/16/windows-7-as-a-wifi-hotspot">kommandoraden</a>.</p>
<p>Jag har nu efter 1 månads testning gett upp försöket efter att ha testat alla dessa lösningar. Det som jag fick att fungera bäst var kommandorads-versionen men även den fungerade dåligt i längden. Det första jag märkte var att det sög rätt mycket kräm ur HTPC&#8217;n som skulle fungera som WIFI-hotspot (även om inga klienter var inkopplade). Det andra var att internet-uppkopplingen till de trådlösa klienterna försvann med jämna mellanrum. Jag testade med två olika 3G-modem i HTPC&#8217;n och uppkopplingen dog ändå. Vet inte vad det berodde på och orkar inte undersöka det mer, men antagligen är det något internt i Windows som spökar. Det lustiga var att uppkopplingen i vissa fall fungerade i själva HTPC&#8217;n men inte i trådlösa nätet. Det tredje &#8221;dåliga&#8221; var att man inte har sån stor koll på vad som händer i nätet och man har inga möjligheter att ställa in de parametrar som vanligtvis finns i en router. Och till sist så tyckte jag att throughput&#8217;en (hastigheten) på trådlösa nätet försämrades drastiskt.</p>
<p>Nu har jag alltså gett upp och delar ut mobilt bredband trådlöst med en vanlig hårdvaru-router inkopplad till HTPC&#8217;n istället. Hur man gör detta kan man läsa <a href="http://www.windowsreference.com/windows-vista/step-by-step-internet-connection-sharing-ics-setup-in-vista/">här</a>. Detta fungerar nu mycket bättre. Om M$ hade lagt lite mer tanke bakom den här funktionaliteten så hade det varit en riktig &#8221;killer-feature&#8221;, men nu känns det lite väl omoget.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2010/07/16/mina-forsok-att-anvanda-htpcn-som-tradlos-router-i-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Windows 7 experiences and setup</title>
		<link>http://www.marcusnyberg.com/2010/07/12/my-windows-7-experiences-and-setup/</link>
		<comments>http://www.marcusnyberg.com/2010/07/12/my-windows-7-experiences-and-setup/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 19:52:22 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=339</guid>
		<description><![CDATA[One year has passed since my first tryout of Windows 7. The transition from Windows XP was easy and I won&#8217;t go back. Well thats not entirely correct, because my arcade machine (coming up blogpost) run a very fast and good version of XP called Tiny XP. I have had the same &#8221;install&#8221; the entire [...]]]></description>
			<content:encoded><![CDATA[<p>One year has passed since my first tryout of Windows 7. The transition from Windows XP was easy and I won&#8217;t go back. Well thats not entirely correct, because my arcade machine (coming up blogpost) run a very fast and good version of XP called Tiny XP.</p>
<p>I have had the same &#8221;install&#8221; the entire year and tried a lot of things with it. The usual problem with having the same install too long has now began to show itself. More problem than I can handle! The only solution is as usual to reinstall everything. This time I am going with a dual-boot setup with Win7 and Ubuntu.</p>
<p>The most annoying thing with &#8221;Windows 7&#8243; has so far been the new &#8221;Windows explorer&#8221; (explorer.exe) which I think is bloated. There is no way that I can be productive as earlier with that crap. And I can&#8217;t even make it work in &#8221;classical mode&#8221;. I have stopped using it! The most perfect file browser in my mind is the classical windows explorer which Microsoft stopped using with Windows XP. I have tried a lot of file browsers and <a href="http://www.zabkat.com/">xplorer²</a> is a good replacement. That program is actually the first program I install on a new computer.</p>
<p><strong>Some of my setup tweaks</strong></p>
<p>Lets share some of the tweaks I use to make my Win7 feel good. It is also good for me to have a checklist when I install Win7 the next time.</p>
<p>1) Live Messenger</p>
<p><a href="http://www.mydigitallife.info/2009/01/15/workaround-to-hide-and-minimize-windows-live-messenger-iconbutton-to-notification-area-system-tray-in-windows-7/">Minimize Windows Live Messenger to systray</a></p>
<p><a href="http://apatch.org/">Make Live Messenger cleaner by patching it</a></p>
<p>2) Taskbar and systray</p>
<p><a href="http://www.sevenforums.com/tutorials/888-quick-launch-enable-disable.html">Bring back good old &#8221;Quick launch&#8221;</a></p>
<p>Unpin all programs from taskbar</p>
<p>Taskbar properties: Check &#8221;Use small icons&#8221; and &#8221;combine when taskbar is full&#8221;</p>
<p>3) Personalize</p>
<p>In the beginning I switched of all aero stuff and used &#8221;Windows Classic&#8221; theme. But by now I am actually used to all fancy aero stuff and it doesn&#8217;t feel that my machines performance is that much affected by this.</p>
<p>4) Services and startup</p>
<p>I try to <a href="http://www.askvg.com/windows-7-services-that-can-be-safely-set-to-manual/">disable as many services that is possible</a> or set them to start manual. Services eat memory and CPU-time.</p>
<p>I continually check msconfig.exe (or registry) to sanitize startup programs. More startup-programs makes your computer boot slower.</p>
<p>5) Programs</p>
<p>I try to keep my program list clean. If I do not use a program I remove it. You never know what services and resources a program uses.</p>
<p>If I want to check stuff out I do that in a virtual machine instead of my &#8221;production machine&#8221;. It is very handy to have some lab virtual machines if you are a software developer.</p>
<p>6) Useful free programs</p>
<p><a href="http://imageresizer.codeplex.com/">Image Resizer Powertoy Clone for Windows</a><br />
<a href="http://www.zabkat.com/">xplorer²</a> (file manager)<br />
<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> (ssh)<br />
<a href="http://winscp.net/">WinSCP</a> (moving files)<br />
<a href="http://cdburnerxp.se/">CDBurnerXP</a><br />
<a href="http://www.free-codecs.com/download/k_lite_codec_pack.htm">K-lite codec pack</a> (media playing)<br />
<a href="http://www.avast.com/">Avast antivirus</a><br />
<a href="http://filezilla-project.org/">Filezilla</a> (ftp)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2010/07/12/my-windows-7-experiences-and-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshoooting device driver installation with setupapilog.txt</title>
		<link>http://www.marcusnyberg.com/2010/01/22/troubleshoooting-device-driver-installation-with-setupapilog-txt/</link>
		<comments>http://www.marcusnyberg.com/2010/01/22/troubleshoooting-device-driver-installation-with-setupapilog-txt/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 13:40:39 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[WMI]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=402</guid>
		<description><![CDATA[Today I tried to install the &#8221;HP Universal Driver PCL6&#8243; (32-bit) on a Windows XP machine with WMI and VB.NET. All I got was the errorcode 2 and a failed installation. What does that mean? Windows errorcodes is not my (anyones?) speciality&#8230; After some googling I found this very good post that describes the problem [...]]]></description>
			<content:encoded><![CDATA[<p>Today I tried to install the &#8221;HP Universal Driver PCL6&#8243; (32-bit) on a Windows XP machine with WMI and VB.NET. All I got was the errorcode 2 and a failed installation. What does that mean? Windows errorcodes is not my (anyones?) speciality&#8230;</p>
<p>After some googling I found this <a href="http://www.destiny-sys.com/wordpress/2009/05/23/troubleshooting-scripted-printer-driver-installations/">very good post</a> that describes the problem and a possible solution.</p>
<p>The key to solving this puzzle and possibly other device installation problems is the file <strong>setupapi.log</strong> in the windows folder. After running my code again I got this in my setupapi.log file (in swedish):</p>
<p><code>[SetupAPI Log]<br />
OS-version = 5.1.2600 Service Pack 3<br />
Plattforms-ID = 2 (NT)<br />
Service Pack = 3.0<br />
Svit = 0x0100<br />
Produkttyp = 1<br />
Arkitektur = 2006157608<br />
[2010/01/22 14:20:41 5392.4 Driver Install]<br />
#-198 Bearbetad kommandorad: C:\WINNT\system32\wbem\wmiprvse.exe<br />
#I060 Ange vald drivrutin.<br />
#I060 Ange vald drivrutin.<br />
[2010/01/22 14:20:41 5392.5]<br />
#-198 Bearbetad kommandorad: C:\WINNT\system32\wbem\wmiprvse.exe<br />
#-167 SPFILENOTIFY_NEEDMEDIA: Tagg = p6i2svww.cab, Beskrivning= PDL_LANG, Källsökväg = C:\CentralPrintArea\FKPrint\HP\Universal\32bit\HP Universal, Källfil = UNIDRV.HLP, Flaggor = 0x00000000.<br />
#E169 SPFILENOTIFY_NEEDMEDIA: returnerade FILEOP_ABORT. Fel 2: Det går inte att hitta filen.<br />
#W187 Installationen misslyckades. Försök att återställa originalfiler utförs.</code></p>
<p>It says that I got an errorcode 2 (missing file) and which file that is missing. In this case it is missing the file &#8221;UNIDRV.HLP&#8221; that is not available in swedish. All I had to do is to extract this file from the cab-file &#8221;p6i2svww.cab&#8221; to the root of the driverfolder. After doing this and running the program once more everything is working and the driver installs. After this I get the following output in <strong>setupapi.log</strong>.</p>
<p><code>[SetupAPI Log]<br />
OS-version = 5.1.2600 Service Pack 3<br />
Plattforms-ID = 2 (NT)<br />
Service Pack = 3.0<br />
Svit = 0x0100<br />
Produkttyp = 1<br />
Arkitektur = 2006157608<br />
[2010/01/22 14:28:43 4784.4 Driver Install]<br />
#-198 Bearbetad kommandorad: C:\WINNT\system32\wbem\wmiprvse.exe<br />
#I060 Ange vald drivrutin.<br />
#I060 Ange vald drivrutin.<br />
</code></p>
<p>That looks good I suppose! At least better then before. And the driver is installed ok!</p>
<p>You can <a href="http://www.microsoft.com/whdc/driver/install/setupapilog.mspx">read and download information about setupapilog.txt at the Microsoft website.</a> If you read the whitepaper you could possibly solve many kinds of STRANGE device driver installation problems.</p>
<p>This is Microsofts description of setupapilog.txt</p>
<blockquote><p>Windows XP and later versions log system operations more extensively than previous versions of Windows do. One of the most useful log files for debugging is the SetupAPI log file (setupapi.log). This plain-text file maintains the information that SetupAPI records about device installation, service-pack installation, and hotfix installation. Specifically, the file maintains a record of device and driver changes, as well as major system changes, </p></blockquote>
<p>If you wnat more verbose logging to the setupapi.txt file you can edit the windows registry key &#8221;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\LogLevel&#8221;. If you raise this value to 255 you get a lot of logging which can be useful at times.</p>
<p>I hope this helps someone and that HP fixes the broken driver. It must be some sort of localization problem within this driver. Or maybe that I have the wrong driver&#8230;</p>
<p>There is always something new to learn in the Windows world! Happy troubleshooting!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2010/01/22/troubleshoooting-device-driver-installation-with-setupapilog-txt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create a printerqueu with .NET and WMI</title>
		<link>http://www.marcusnyberg.com/2010/01/12/how-to-create-a-printerqueu-with-net-and-wmi/</link>
		<comments>http://www.marcusnyberg.com/2010/01/12/how-to-create-a-printerqueu-with-net-and-wmi/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 11:33:22 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programmering]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=392</guid>
		<description><![CDATA[This is an example of how you create a printerqueue with .NET and WMI (Windows Management Instrumentation). A list of properties can be found at MSDN Win32_Printer Other topics: How to install printerdrivers with wmi and VB.NET How to create TCP/IP printerports with .NET Imports System.Management Dim shared as Boolean = true Try Dim mp [...]]]></description>
			<content:encoded><![CDATA[<p>This is an example of how you create a printerqueue with .NET and WMI (Windows Management Instrumentation).  </p>
<p>A list of properties can be found at <a href="http://msdn.microsoft.com/en-us/library/aa394363%28VS.85%29.aspx">MSDN Win32_Printer</a></p>
<p>Other topics:<br />
<a href="http://www.marcusnyberg.com/2009/11/23/install-printerdrivers-wmi/">How to install printerdrivers with wmi and VB.NET</a><br />
<a href="http://www.marcusnyberg.com/2009/12/11/install-printerports-with-wmi-and-vb-net/">How to create TCP/IP printerports with .NET</a></p>
<pre name="code" class="vb.net">
Imports System.Management

Dim shared as Boolean = true

Try
 Dim mp As ManagementPath = New ManagementPath("Win32_Printer")
 Dim co As ConnectionOptions = New ConnectionOptions()
 co.EnablePrivileges = True
 co.Impersonation = ImpersonationLevel.Impersonate

 Dim ms As ManagementScope = New ManagementScope("\\" + Environment.MachineName + "\root\cimv2", co)

 Dim printerObject As ManagementObject = New ManagementClass(ms, mp, Nothing).CreateInstance()
 printerObject("PortName") = "IP_192.168.0.2"
 printerObject("DriverName") = "DriverName"
 printerObject("DeviceID") = "queuename"
 printerObject("Location") = "Placement of printer"
 printerObject("Comment") = "Some comments"

 If (shared) Then
  printerObject("Shared") = True
  printerObject("ShareName") = "Sharename"
  'printerObject("Published") = False ' Publish printer
 End If

 Dim options As PutOptions = New PutOptions()
 options.Type = PutType.UpdateOrCreate
 printerObject.Put(options)

Catch ex As Exception
 ' Do something
End Try
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2010/01/12/how-to-create-a-printerqueu-with-net-and-wmi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install printerports with WMI and VB.NET</title>
		<link>http://www.marcusnyberg.com/2009/12/11/install-printerports-with-wmi-and-vb-net/</link>
		<comments>http://www.marcusnyberg.com/2009/12/11/install-printerports-with-wmi-and-vb-net/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 14:06:17 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programmering]]></category>
		<category><![CDATA[WMI]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=347</guid>
		<description><![CDATA[This is an example of how you install TCP/IP printerports with .NET and WMI (Windows Management Instrumentation). A list of properties can be found at MSDN Win32_TCPIPPrinterPort Other topics: How to install printerdrivers with wmi and VB.NET How to create a printerqueu with .NET and WMI Imports System.Management Try Dim mp As ManagementPath = New [...]]]></description>
			<content:encoded><![CDATA[<p>This is an example of how you install TCP/IP printerports with .NET and WMI (Windows Management Instrumentation).  </p>
<p>A list of properties can be found at <a href="http://msdn.microsoft.com/en-us/library/aa394492%28VS.85%29.aspx">MSDN Win32_TCPIPPrinterPort</a></p>
<p>Other topics:<br />
<a href="http://www.marcusnyberg.com/2009/11/23/install-printerdrivers-wmi/">How to install printerdrivers with wmi and VB.NET</a><br />
<a href="http://www.marcusnyberg.com/2010/01/12/how-to-create-a-printerqueu-with-net-and-wmi/">How to create a printerqueu with .NET and WMI</a></p>
<pre name="code" class="vb.net">
Imports System.Management

Try
  Dim mp As ManagementPath = New ManagementPath("Win32_TCPIPPrinterPort")
  Dim co As ConnectionOptions = New ConnectionOptions()
  co.EnablePrivileges = True

  Dim ms As ManagementScope = New ManagementScope("\\" + Environment.MachineName + "\root\cimv2", co)

  Dim port As ManagementObject = New ManagementClass(ms, mp, Nothing).CreateInstance()
  port.SetPropertyValue("Name", "portname")
  port.SetPropertyValue("Protocol", 1)
  port.SetPropertyValue("HostAddress", "10.15.12.12")
  port.SetPropertyValue("PortNumber", "9100")

  Dim po As PutOptions = New PutOptions()
  po.UseAmendedQualifiers = True
  po.Type = PutType.UpdateOrCreate
  port.Put(po)
Catch ex As Exception
  ' do something
End Try
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2009/12/11/install-printerports-with-wmi-and-vb-net/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Marvel 6162 SATA driver for Windows 7</title>
		<link>http://www.marcusnyberg.com/2009/11/27/marvel-6162-sata-driver-for-windows-7/</link>
		<comments>http://www.marcusnyberg.com/2009/11/27/marvel-6162-sata-driver-for-windows-7/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 18:28:20 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=333</guid>
		<description><![CDATA[There isn&#8217;t any driver for the Marvel 6162 (88SE6162) SATA controller in Windows 7 (32-bit). For my motherboard (Asus M2V) I needed this driver and I could not find them on the Asus support website. I guess Asus havn&#8217;t made these available yet. Lazy bastards! After some modifications to the Vista-drivers I could use them [...]]]></description>
			<content:encoded><![CDATA[<p>There isn&#8217;t any driver for the Marvel 6162 (88SE6162) SATA controller in Windows 7 (32-bit). For my motherboard (Asus M2V) I needed this driver and I could not find them on the Asus support website. I guess Asus havn&#8217;t made these available yet. Lazy bastards! After some modifications to the Vista-drivers I could use them instead. </p>
<p><a href="http://www.marcusnyberg.com/wp-content/uploads/2009/11/marvel-6162-sata-driver.JPG"><img src="http://www.marcusnyberg.com/wp-content/uploads/2009/11/marvel-6162-sata-driver.JPG" alt="marvel-6162-sata-driver" title="marvel-6162-sata-driver" width="360" height="144" class="alignnone size-full wp-image-336" /></a></p>
<p>If you download and try to install the Vista-drivers you get a message like &#8221;Does not support this Operating System : WNT_6.1P_MCE&#8221;. To be able to run the installer you need to edit the AsusSetup.ini file with notepad. The only thing you need to do is add a line corresponding to your Operatingsystem (WNT_6.1P_MCE) in the [OS_Language_Tag] section of the file. </p>
<p>I have prepared a file for Windows 7 32-bit that you can use:<br />
<a href='http://www.marcusnyberg.com/wp-content/uploads/2009/11/Marvell_SATA_V10215B2.zip'>Download Marvell_SATA_V10215B2 driver</a>.</p>
<p>You only have to extract the files and run the AsusSetup file in the driver/x32 folder. If you run Windows 7 64-bit you can use the same files and make the same changes. If someone does this then please contribute to this post.</p>
<p>The driver installer then works great and the drivers are working. My SATA-drive has appeared and I am happy again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2009/11/27/marvel-6162-sata-driver-for-windows-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Problem installing Windows 7 on Asus motherboards</title>
		<link>http://www.marcusnyberg.com/2009/11/27/problem-installing-windows-7-on-asus-motherboards/</link>
		<comments>http://www.marcusnyberg.com/2009/11/27/problem-installing-windows-7-on-asus-motherboards/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 22:08:06 +0000</pubDate>
		<dc:creator>marcus</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=331</guid>
		<description><![CDATA[For the last 5 hours I tried to install Windows 7 (x86, 32bit) on my home computer that has an Asus M2V motherboard. I tried everything in the book and couldn&#8217;t install it. I removed and switched hardware, reburned the DVD, updated the BIOS and did everything that I could possibly think of. The installation [...]]]></description>
			<content:encoded><![CDATA[<p>For the last 5 hours I tried to install Windows 7 (x86, 32bit) on my home computer that has an Asus M2V motherboard. I tried everything in the book and couldn&#8217;t install it. I removed and switched hardware, reburned the DVD, updated the BIOS and did everything that I could possibly think of. The installation process always hung when the installer says &#8221;expanding windows files&#8221;. No error messages or nothing and the installation percentage counter stops at a random number. That really pissed me of!</p>
<p>Finally I found an answer to this really weird behaviour. It seems that this is common problem on Asus motherboards and Windows 7.</p>
<p>In BIOS you have to make these changes to make it work:<br />
* Enable the floppy drive (I had it disabled because I dont have a floppy drive).<br />
* Disable the &#8221;Cool and quite&#8221; feature.</p>
<p>After I made these changes the installation worked!</p>
<p>I hope this helps other people stuck with the really annoying &#8221;Windows 7&#8243; installer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2009/11/27/problem-installing-windows-7-on-asus-motherboards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install printerdrivers with WMI and VB.NET</title>
		<link>http://www.marcusnyberg.com/2009/11/23/install-printerdrivers-wmi/</link>
		<comments>http://www.marcusnyberg.com/2009/11/23/install-printerdrivers-wmi/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 08:26:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Programmering]]></category>
		<category><![CDATA[WMI]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=310</guid>
		<description><![CDATA[This is an example of how you install printerdrivers with .NET and WMI (Windows Management Instrumentation). Most examples on the Internet shows how this can be done with vbscript, printui.dll and such&#8230; A list of properties can be found at MSDN Win32_PrinterDriver Other topics: How to install printerports with WMI and VB.NET How to create [...]]]></description>
			<content:encoded><![CDATA[<p>This is an example of how you install printerdrivers with .NET and WMI (Windows Management Instrumentation). Most examples on the Internet shows how this can be done with vbscript, printui.dll and such&#8230;</p>
<p>A list of properties can be found at <a href="http://msdn.microsoft.com/en-us/library/aa394366(VS.85).aspx">MSDN Win32_PrinterDriver</a></p>
<p>Other topics:<br />
<a href="http://www.marcusnyberg.com/2009/12/11/install-printerports-with-wmi-and-vb-net/">How to install printerports with WMI and VB.NET</a><br />
<a href="http://www.marcusnyberg.com/2010/01/12/how-to-create-a-printerqueu-with-net-and-wmi/">How to create a printerqueu with .NET and WMI</a></p>
<pre name="code" class="vb.net">
Imports System.Management

Dim infPath  as String = "c:\driver\printerdriver.inf"
Dim mp As ManagementPath = New ManagementPath("Win32_PrinterDriver")

Dim co As ConnectionOptions = New ConnectionOptions()
co.EnablePrivileges = True

Dim ms As ManagementScope = New ManagementScope("\\" + Environment.MachineName + "\root\cimv2", co)

Dim mcPrinterDriver As New ManagementClass(ms, mp, Nothing)
mcPrinterDriver.SetPropertyValue("Name", "drivername")
mcPrinterDriver.SetPropertyValue("SupportedPlatform", "Windows NT x86") ' x86-architecture
'mcPrinterDriver.SetPropertyValue("SupportedPlatform", "Windows x64") ' x64-architecture
mcPrinterDriver.SetPropertyValue("Version", 3)
mcPrinterDriver.SetPropertyValue("FilePath", System.IO.Path.GetDirectoryName(infPath))
mcPrinterDriver.SetPropertyValue("InfName", infPath)

Dim inParams As System.Management.ManagementBaseObject = Nothing
inParams = mcPrinterDriver.GetMethodParameters("AddPrinterDriver")
inParams("DriverInfo") = CType(mcPrinterDriver, System.Management.ManagementBaseObject)
Dim outParams As System.Management.ManagementBaseObject = mcPrinterDriver.InvokeMethod("AddPrinterDriver", inParams, Nothing)

Dim uiReturnValue As UInteger = System.Convert.ToUInt32(outParams.Properties("ReturnValue").Value)
</pre>
<p>I have tested this in Windows XP, Windows 7 and Windows 2008R2. Make sure your account has privileges to install drivers.</p>
<p>On Windows XP the drivers are installed physically to:<br />
C:\WINNT\system32\spool\drivers</p>
<p>And in the registry:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2009/11/23/install-printerdrivers-wmi/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Boost performance on your Asus EEE 900</title>
		<link>http://www.marcusnyberg.com/2009/09/17/boost-performance-on-your-asus-eee-900/</link>
		<comments>http://www.marcusnyberg.com/2009/09/17/boost-performance-on-your-asus-eee-900/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 18:24:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=265</guid>
		<description><![CDATA[My sister has the Asus eee 900 netbook, the one with 16GB SSD hard drive, and Windows XP. The performance on the machine was very very bad. The bottleneck was the SSD-drive that made the machine hang when there were (m)any writes to it. I have made all optimizations that you can do on Windows [...]]]></description>
			<content:encoded><![CDATA[<p>My sister has the Asus eee 900 netbook, the one with 16GB SSD hard drive, and Windows XP. The performance on the machine was very very bad. The bottleneck was the SSD-drive that made the machine hang when there were (m)any writes to it. I have made all optimizations that you can do on Windows XP, like disabling all services that aren&#8217;t needed. However, the machine was still slow. While browsing the <a href="http://forum.eeeuser.com/">eeeuser forum</a> I found the magical solution in one of the threads&#8230;. </p>
<p><img src="http://www.marcusnyberg.com/wp-content/uploads/2009/09/asus-eee-pc-900.jpg" alt="asus-eee-pc-900" title="asus-eee-pc-900" width="100%" /></p>
<p>The solution was to install <a href="http://flashfire.org/xe/">Flashfire SSD Accelerator</a>. FlashFire is a software for Solid-State Drives and uses host RAM to enhance random write performance of a SSD. Read more about other peoples success-stories in the <a href="http://forum.eeeuser.com/viewtopic.php?id=66055">eeeuser forum</a>.</p>
<p>After installing Flashfire the computer is fast as hell and has no hangups. It is such a miracle! I highly recommend this piece of software for all people with netbooks that has slow SSD-drives.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2009/09/17/boost-performance-on-your-asus-eee-900/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mid Sweden Technology Conference i Sundsvall</title>
		<link>http://www.marcusnyberg.com/2009/09/17/mid-sweden-technology-conference-i-sundsvall/</link>
		<comments>http://www.marcusnyberg.com/2009/09/17/mid-sweden-technology-conference-i-sundsvall/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 07:19:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.marcusnyberg.com/?p=259</guid>
		<description><![CDATA[Den 9 september så var jag på Mid Sweden Technology Conference på Folkets Hus här i stan. Det var en trevlig tillställning som arrangerades av Åkroken Science Park AB. Man förklarade att det skulle bli en återkommande konferens med fokus med utveckling och teknik inom Microsoft-området och denna gång så låg fokuset på &#8221;Windows 7&#8243;. [...]]]></description>
			<content:encoded><![CDATA[<p>Den 9 september så var jag på Mid Sweden Technology Conference på Folkets Hus här i stan. Det var en trevlig tillställning som arrangerades av <a target="_blank" href="http://www.akroken.se/">Åkroken Science Park AB</a>. Man förklarade att det skulle bli en återkommande konferens med fokus med utveckling och teknik inom Microsoft-området och denna gång så låg fokuset på &#8221;Windows 7&#8243;.</p>
<p><strong>Programmet var följande:</strong></p>
<p>08.00-08.30 Registrering</p>
<p>08.30-09.30 Arbeta smart (Nils Morén, XLENT)</p>
<p>09.45-10.45 Nytt försäkringssystem i .NET (Thomas Hellström, SPV)<br />
Thomas Hellström är ansvarig arkitekt i ett pågående projekt på Statens Pensionsverk som syftar till att utveckla ett nytt försäkringssytem med den största delen på .NET plattformen. Thomas kommer berätta om de utmaningar som ställs på ett sådant system och de tekniska lösningar som valts.</p>
<p>11.00-12.15 Azure (<a href="http://tinyurl.com/l57oge">Johan Lindfor</a>s, Microsoft)<br />
Windows Azure består också av tjänster som SQL Azure och .NET Services. Dessa kan användas både i molnet och från lokalt installerade applikationer. Här visar vi på exempel och demonstrerar teknikerna som redan idag finns tillgängliga för utvecklare!</p>
<p>12.15-13.15 Lunch</p>
<p>13.15-14.00 Windows 7 (Magnus Jungåker, Microsoft)<br />
Windows 7 är ett modernt operativsystem som alla kan använda och företag sparar mycket på att rulla ut som standartklient. Vi har fokuserat på att utveckla de fundamentala egenskaperna som prestanda, kompatibilitet, säkerhet och stabilitet. Vi lägger också till funktionerna DirectAccess och BranchCache. Vi har förbättrat sök och hårddiskkrypteringsfunktionerna. Men vi har framförallt gjort ett operativsystem som gör användaren mer produktiv och företaget effektivare.</p>
<p>14.15-15.15 Virtualization (Magnus Jungåker, Microsoft)<br />
Med Live Migration i Windows Server 2008 R2 och Server Management Suite Datacenter har Hyper-V blivit en mogen och fullfjädrad servervirtualiseringslösning. På klientsidan har Microsoft i Desktop Optimization Pack (MDOP) och Virtual Enterprise Centralized Desktop(VECD) alla teknologier på plats för att även virtualisera klientsidan.</p>
<p>15.30-16.45 Rika klienter (<a href="http://blogs.msdn.com/robf/">Robert Folkesson</a>, Microsoft)<br />
I den här sessionen visas hur rika klienter kan dra nytta av ny funktionalitet i Windows 7 som Taskbar notifications, Jump Lists och federerad sökning. Vi visar också de nya möjligheterna som Multi-touch ger och undersöker hur stödet för detta kommer att se ut i .NET Framework 4 och Windows Presentation Foundation.</p>
<p>17.00-18.00 RIA Arkitektur (Fredrik Normén, Cornerstone)<br />
Fler och fler affärs applikationer flyttas till målnet , fler och fler användare vill a bättre användarupplevelse. Enligt Gartner Research, så är 60% av all nya applikationer skapade som RIA under 2010. I denna session så får du lära dig hur arktietkturen för en RIA kan se ut, vad man bör tänka på etc när man utvecklar RIA.</p>
<p><img src="http://www.marcusnyberg.com/wp-content/uploads/2009/09/windows7-300x223.jpg" alt="windows7" title="windows7" width="100%" /></p>
<p><strong>Mina Synpunkter</strong><br />
Jag tycker att det var intressant att lyssna på Thomas Hellström från SPV och hans tankar om deras .NET utvecklingsprojekt. Han undertryckte bla. vikten av att testa sina ideer med proof-of-concept lösningar, och det är något som jag själv gillar väldigt mycket. Det är viktigt att testa sin design med en enkel modell innan man börjar bygga något stort. </p>
<p>Sedan så var det intressant att höra föreläsarna från Microsoft tala om nyheter i Windows 7. Eftersom jag själv nyligen börjat köra sjuan efter att ha hoppat över Vista så fick jag lära mig en hel del nyheter inom såväl operativsystem som sådant samt om utvecklingsbitarna, virtualisering, paketering och licenser.</p>
<p>Här kan du läsa om Robert Folkessons <a href="http://blogs.msdn.com/robf/archive/2009/09/11/presentation-fr-n-mid-tech-konferensen-i-sundsvall.aspx">Presentation från Mid Tech-konferensen i Sundsvall </a>. Där hittar man även material för nedladdning.</p>
<p>I det stora hela så var det en bra dag, även om vissa delar inte passade mig. Det blev lite väl stor spridning på de ämnen som diskuterades. För att passa mig bättre så skulle jag år vilja se att man delar upp konferensen på två dagar. Ena dagen med utvecklingsrelaterade ämnen och den efterföljande dagen med mer driftrelaterade ämnen. Samt att man får välja om man vill gå en eller två dagar.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marcusnyberg.com/2009/09/17/mid-sweden-technology-conference-i-sundsvall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
