Auto Publish in XP Mode stopped working

I am a big fan of the XP mode in Windows 7. A.o. it allows me to verify websites that I maintain in IE6, even side-by-side to IE8.

One nice feature is that you can have XP applications appear in the Start Menu of Windows 7, with “Auto Publish“. If Enabled in the XP Mode Settings, any shortcut you add to the All Users Start Menu in XP Mode, will appear in the Windows 7 Start Menu under Windows Virtual PC > Windows XP Mode Applications:

Yesterday however, I noticed that the shortcut for IE6 that I had there, no longer worked. I removed the shortcut in the Start Menu of All Users in XP Mode and added it again, but that did not help. In fact, anything I added to the All Users Start Menu no longer appeared in the Start Menu of Windows 7.
When I checked the Settings of XP Mode, Auto Publish was grayed out, with an obscure error message about not having the latest updates. After a lot of trouble-shooting, without avail, I finally uninstalled XP Mode (via Windows 7′s Control Panel > Programs and features) and reinstalled it. That brought back the Auto Publish feature:

I have no clue about what went wrong, but I have a working IE6 shortcut in my Windows 7 Start Menu again.

Share

Windows 7 + IIS 7.5 + php 5.3.1 + MySQL 5.1: no good combination

I recently installed Windows 7 on my laptop. I also configured IIS 7.5 on it, installed php 5.3.1 and MySQL 5.1.

Everything seemed to be installed correctly: I could see the IIS 7 Welcome screen, I could look at the php configuration with phpinfo() and I could see the MySQL tables using the MySQL Administrator GUI.

But when I tried to use phpMyAdmin, I got stuck: after trying to load the homepage of phpMyAdmin for 20-30 seconds, I got an HTTP Error 500. I searched the internet for hours, trying to find somebody with a similar experience, but I did not find any valuable resources.

Even a very simple test-script like

generated a HTTP 500-error, after a 20-30 seconds wait.

Eventually, I decided to look at what I had installed when I was still using Vista. The difference seemed to be php: on my previous system, php 5.2.10 was installed.

I finally uninstalled MySQL and php 5.3.1, and then reinstalled php 5.2.11 and MySQL 5.1.41. That combination seemed to work without issues.

Conclusion: IIS 7.5 + php 5.3.1 + MySQL 5.1 does not seem to be a workable solution (for now). Stick to the 5.2-branch of php if you want to use it on Windows 7/IIS 7.5.

Share

Bootable USB stick with Windows 7 Installation Files

A few months ago, I received the nice HP Mini 2140 netbook. It’s a pretty neat machine that has proven to be very useful, particularly on vacation.

I installed Windows 7 RC on it, from a USB DVD-drive and I’m very happy with it. However, a few days ago, the machine refused to boot. The culprit was Acronis True Image. That backup package contains a Startup Recovery Manager that is supposed to “Boot your computer after a failure to start the recovery process simply by selecting the F11 key, even if your operating system has failed.“ Unfortunately, after activating that, my system become unbootable, i.e. just the opposite of what it was supposed to do. The boot sector was corrupt (*).

I eventually got it all working again by using the System Recovery Options on the Windows 7 Install disk. But I wondered “What should I have done when I had been on vacation, without access to a USB DVD-drive?”. I wanted to have the Windows Installation files on a USB stick, that I would be able to boot from in case of disaster.

There are a lot of guides on the net that describe how to make a USB stick bootable but none of them seemed easy and straightforward. Eventually I found WinToFlash, a tool  to transfer your Windows XP, Windows 2003, Windows Vista or Windows 7 setup from CD or DVD to flash memory in just a few mouse clicks.

The tool worked fine, except that after using it on a 4GB USB stick, my netbook still refused to boot from it. All the needed files were on the stick, including the bootmgr file, but somehow the stick still wasn’t bootable. I had to use the bootsect program from the Windows 7 Installation disk to make it bootable. Assuming D: is the DVD with the Installation disk and E: the USB-stick, use the following commands.

With that, my USB stick now is bootable with the installation files and recovery options for Windows 7.

Thanks to jkOnTheRun.com where I found a reference to WinToFlash.

(*) Note: I know that Acronis True Image is not (yet) supporting Windows 7, so I guess I can’t blame Acronis, but still it was highly ennoying.

Share