Creating Installers from batch-scripts?

August 26th, 2010

Some time ago I have been asked to provide a tool to install the universal printer drivers in one shot. I.E. install a STP-Port pointing to the device in question, install the 32bit or 64bit driver creating the queue at the same time. And then add the corresponding other architecture (64/32-bit) drivers queue for point-and-prtint to work across architecture borders.

First I thought of doing this with VS2010, but that seemed to much for such an easy tasked. Next came the NSIS Installer to my mind, but that would have lead to learning again another pürogramming langauge. Also to much for such a tasked. Ideal would be some thing to wrapped around the windows command line batch files I wrote to tests the whole thing.

So I tried with self-extracting files created by 7zip, but that was not that successfull as I thought it would be. But then I came across a wunderful tool, that was sitting for ages in my windows folder and I did not know about: iexpress.exe!

Iexpress is a tool that comes with the Internet Explorer Kits form Micorosft andis part of the OS itself from Windows XP on. So just enter iexpress.exe in the command prompt and the wizard will be started. There is little help on the internet except for two KB and Technet entries at microsoft. But the tool and the wizard itself is self-explanetory so everbody will be get going in no-time.

But the batch files where non-interactive, so I could not enter the IP/FQDN for the STP-Port. That’s when I found the great tools from Horst Schaeffer. They allow you to get GUI-Feedabck when running batch scripts, which was exactly what I needed.

The last problem was the Windows Version. Under Windows Vista and 7 (Windows Nt6.x) it is no problem to add the alternative architecture driver. The Windows NT6 plattform is designed to work like this. But when the tool should operate under Windows XP it will not be able to add the alternative architecture driver that easy. So I thought I skip this under NT5 completely.

That left me in need for a tool to check the version of the OS and actually do something which this. the build-in VER was not the tool-of-choice for this task. Again google was my friend and I found nVer from deepsoftware.ru which is free and can give you the version of any file on your windows OS. So checking the major version of your kernel-dll would do.

So now I had eveything together to script the printer driver installer on the good old trusty commandline (BTW did I told you I hate PowerShell? Ah, never mind, that’s another story anyway…):

nVer, Wbusy/Wprompt/Winput/Wbox and iexpress. And of course the universal printer drivers from my company.

Wonder how I put this all together? Expect a little How-To in the next days…

ebooks: Size limitations with the PRS-600

August 21st, 2010

My big ebook in ePUB-format would not display on the PRS-600 even though it worked in the Sony Reader Libray Software (SRL) and Sigil showed no error. The internet says, the Sony PRS-600 had a size limitation for a file (an XML-Stream!) of about 300KB!

So I chopped all the bigger chapters to be smaller in size and to be smaller then 300KB. But still the book would not display. So I splitted he chapters again, and found out, that the limit is more like 250KB then 300KB.

So for all of you out there creating ebooks, please limit one file (aka XML-Stream) to be not more then 250KB in size, so the ebook could be displayed on the Sony PRS-600 correctly.

Wonder if commerical ebooks in ePUB format adheir to this limitation… Could I give them back, if not?

New Toy: Sony Reader Touch-Edition (PRS-600)

August 20th, 2010

I got myself a new toy for the holiday season: my first ebook-reader.

Since here in germany only the Sony Reader seems to be widely available, I got the premier model, the touch-screen equipped PRS-600. And I must admit it has been a good fellow for more then 6 weeks now.

But after a while of using it, there some points I would like to tell you:

The Good

The device is rock-solid und works a ok. But what would you expect from a Sony :-) The connectors which seemed to be a backdraw first, turned out to be a major advantage: Sony has propriatary connectors for the power plug. But as beeing propriatery in its own, Sony is at least consequent: The plugs are identical to the ones of my Sony PlayStation Portabyle PSP-1000 (yes the original one!)

The AC-power-plug of the PSP has 5,2V with 1 Amp which is the same specifications as for the optional and 30€ expensive Sony AC-Adaptor for the Reader. You can use any cheap AC-Adaptor for the PSP instead. They sell for less than 10€ here. Also you can by yourself a standard USB-AC-Adaptor (5V/1A oder 2A) and one of the PSP-1000/2000 USB-to-USB/5V Y-Cable. They serve for hooking up the PSP to a computer and simultaneously recharging them. I have such a USB-AC-Adaptor for my BlackBerry Bold. So I exchanged the USB-Cable with the PSP-Y-Cable and now I can charge the reader and the BB over night simultaneously. The cable came 2€ in a game-shop sale!

The Bad

Okay, the touch-screen is taking away some readability from the e-paper (compared to the PRS-300). But it is still a good read against any active LCD display especially the iPAD or an Archos 7/9.

Where in the world is folder navigation? Almost everybody I know is organising their data, photos, files, music, books etc. in folders within the filesystem of their computer. But Sony thought that this is not the appropriate way to do it! You load all the books (BOOKS) and then you again organize them into collections (COLLECTIONS), but… you already done this when you moved those books to your folders, right?

Also if you have kids, be warned not to have any inappropriate stuff on the reader, or at least hide the reader away as you would do with any physical book. There is no way of protecting a book or a collection with a PIN code. If you have kids, you would hide-away your horror-movies DVDs, your erotica etc. within a closed and keep the key for yourself. But when it comes to eletronic distirbution the sales channels think all about payment and interlectual property rights. But nothing about protecting the kids.

No device I own has a PIN code protection for any media. Not the Sony Reader, Not the PSP, Not my WD TV live or my Emtec N120 Mediaplayer.

ALso I create my own ebooks using Sigil 0.2. I created today a book, that proved okay in sigil, it also prooved okay in the SRL, but nwhn I loaded it onto the PRS-600 all it gave me was a “Page Error”. I re-created the book from the text-source, but the error remained. Later on I did some research in the web and I found… There seems to be a size limitation per file of about 300KB! Okay, no wonder, I had chapter of about 650KB in size…

The Ugly

Japanese engineers can build wonderful hardware… but when it comes to software they just do an epic fail! Belive me, I work for an japanese company for almost 14 years now and with every step forward, you do two steps back when it comes to software. They just don’t get it how the market – and the user – works beyond their domestic border. :-(

The Sony Reader Libray software is the worst peace of software I have ever seen in my live. It is not adhearing to the Windows  or MacOSX UI guidelines. It own UI is totally wild (hey, ever heard of drag-and-drop, guys?) and more worse the synchronisation does not work at all. I usually have to remove all the books from my reader and add them again. Otherwise the syncing goes on forever….

I don’t think it is appropriate to go lokking for a open source peace of software (calibre) to do the job. Alternative software can be used for premium functions, but it never, ever should be areplacement needed desperately for the hardware to function at all.

But, do not get me wrong… I love my ebook-reader very much.

BTW The Media-Markt@METRO in Düsseldorf has the PRS-600 for sale (Red á 197€) and the PRS-300 (Blue/Pinc á 127€) (August, 2010)

Windows 7: More In-box drivers using Windows Update

Februar 26th, 2010

I installed Windows 7 on my netbook, my workstation and my company laptop.

At home I have both a good, old trusty HP Laserjet 5P connected to an intel printer server box and a rather new Samsung CLP-300N which I got for a good price in holland (To be honest a rainbow-kit of toner today costs more than the whole printe: Printer 150€ vs. 170€ for the rainbow-kit. And even I printed alot of DVD covers I still run on the original starup-kit :-) .

I looked in the Inbox printer driver list for HP… and there was no HP Laserjet 5P anymore. It was their on Vista – for sure I looked that up in a virtual machine!

Upps? Where do I get this printer? Copy it via proint and print from the Vista-VM? Yes, one possible way, but probably not something Micorosft was thinking of, right?

So for the first time in my life I pressed that [Windows Update] button in the device selector and… after about one minute or so I had a whole bunch of new printer drivers including my HP Laserjet 5P.

Windows 7/2008 R2: Printerdrivers without WHQL

Februar 26th, 2010

Lately I played a little bit wit5h Windows 7 and Server 2008 R2 and was reading an article telling that Micosoft disabled the possibility of installing insigned drivers. This is since Vista SP2 more or less.

So this should be a big turnback. The company I work for has means of customers customizing their driver to exclude or include new functionallity. Of course by using such utilities the driver looses its WHQL certification.

So I thought this would also prohibit the use of those utilities… and we must talk to the developers in fasr-easst to customize and pay Microsoft their share on every customization :-(

But I was wrong!

It seems that unsigend drivers and printer drivers without WHQL are two pair of shoes. Never the less it is still possible to install WHQL-less drivers under 7×86, 7×64 and 2008R2. Puuuuh…

New Toy: Samsung SPF-87H Pictureframe

Dezember 27th, 2009

I was looking for a new state-of-the-art picture frame since the one I had with 480×272 pixels was a little aging.

I found the Samsung SPF-87H (8″ version with 800 x 480 pixels) which looked quite good and was cheap (69€) in the local retail store. The internet listed it for at least 15€ more plus shipping.

I was very amazed when I unpacked it and found it to be working also at a small monitor for windows. Not a real sideshow display (seems this technology never made it to the marked anyway) but as a USB-powered mini monitor. You install the driver, an accompaning software and then the display shows up in the screen configuration as a second (or in my case a 3rd screen).

Unfortunately you loose Aero capabilities the moment you switch it on, but maybe this is something one can forget. At least I use it now exclusively for my MS Outlook to have my incomming mails always in the view. Or when I do a little bit programming, the task manager sits there and I can see the performance or the running/hanging taskes. Perfect little toy.

I also installed the driver to my Windows Server 2008 (x86) powered ASUS EeeBox B202 as the main monitor. Aero is not running there due to the memory limitations of the B202 (other then the also Atom-N270 based MSI Wind U100 which has more memory and runs Aero under Vista and 7 perfectly). The box togther with the PictureFrame and a netbook-sized keyboard makes up for a perfect home server less than the size of an A4-page.

If you go for the PictureFrame there is also an 10″ version with 1024 x 600 pixels called SPF-107H which I saw for 99€ these days.

[Update]
I forgot to tell you that if you connect the screen to slow CPU such as an ATOM N270 the cpu-load will be around 30%. This is because of the usb display driver which is totally un-accellerated by any GPU and so the CPU does all the work for the screen.

[Update2]
I updated my ACER X1700 workstation to Windows 7 and I suddenly can not run the frame on USB power anymore. W7 looses connection telling me that this device can be more powerfull if I connect it to an high-speed USB port. Than the mouse gets very sloppy and soon completely unusable. When I run on external power everthing is fine.

Oddities running Windows 7 on my netbook

Dezember 27th, 2009

When Windows 7 became available as RTM in the MSDN programm I chose first to update my trusty MSI Wind U100 notebook to the new operating system.

When I bought it about 1 and a half year ago it came with 1GB RAM and a 80GB HDD. I upgraded it immediately to 2GB RAM and a 320GB HDD and installed Windows Vista. Running Vista was a godd choice even though the aging XP was performing much better on the limited hardware resources. The most drivers from the MSI web-site also worked under Vista, but one could easely find updated drivers in Windows-Update or at Intel and Realtek.

I then installed Windows 7 as new and not as an update. This was tested to be more than 20 hours, while 7 alone did a freshly in 20 Minutes from my DVD-ROM drive (I ruined the first installation due to a driver from my USB-Radio so I had to do it all over again two days later, this time in only 15 Minutes from an USB stick. Great!) All hardware was detected and run perfectly. No drivers installed from the MSI Wind repository (they were not even there by that time).

WLAN:

The only thing I installed was the SCM, which gave me the nice Icons for the function keys. But one thing I could not get to work even when I updraged to the W7 compatibled version of the SCM: Enable/Disbale WLAN. While Bluetooth works perfectly, the WLAN-Card is always on. I could not solve this other than to create two scripts

@echo off
netsh interface set interface wlan0  disabled

and

@echo off
netsh interface set interface wlan0  enabled

(you must replace “wlan0″ with the name of your wireless lan connection!)

Card-Reader:

Initially I also failed to note the absent of the Realtek card-reader. It was not detected and not installed. When we took a lot of pictures during the past few days, I wanted to shere them in the fasmily and started my netbook to read the SD-Cards and compile the photos on a CD-R. But the Card-Reader was not htere. So I installed the Realtek driver from the MSI archives. But no reboot no nothing would Windows7 bring to install the driver. I used the W7 compatibles one and the one I installed under Vista. Nothing.

The next day I wanted to look up something in the internet and started the netbook anew. And what do you know… Windows 7 found new hardware: namly the realtek card-reader. And then when I plugged in an SD-Card from my camera it also installed the memeory drive and assigned a a drive letter. So I guess the cold reboot did the trick in the end. Everything I tried the other day was not cold but a warm reboot. I did not switch the netbook completely off but just restarted it.

So what do I run now: Windows 7 Ultimate with all drivers from Windows-Update. MSI SCM for Windows 7 and the latest Realtek Cardreader Solution driver from the Realtek site (this is easy to find, since there is only one driver!)

[Update]
Last weekend I used the netbook to collect all my digital pictures from various SD-Cards. After some time suddenly the CardReader was gone. I did a cold boot and it was available again and worked flawlessly for several hours. So this issue is not fully resolved yet.

Vote for Downloader 2010

November 28th, 2009

My favorite Downloader 2006 (Internal Version 5) is coming to age in its foruth year and so a new version is imminent. But I am laking a little bit of feedback from my users, so I created a poll using Google:Docs to collect some infos for the new version due in summer 2010.

So please give me your input: Vote for Downloader 2010

Windows LPR / LPD registry tweaks

November 20th, 2009

Windows includes the old unix-style LinePrinter and LinePrinterDeamon (RFC1179) printing system. There is no GUI for any settings, but this can be done as usual within the heart of the registry.

Windows LPR/LPD Registry Tweaks

Windows registry tweaks for the printing system

November 20th, 2009

Besides the normal settings that can be made for the printerserver and each queue, windows allows for further customization of the spooler system via the registry. Please find a comprehesive list of those tweaks in the following lists:

Windows NT/2k/XP/2k3 Printer Registry Tweaks

An update for Vista/2008 and  7/2008R2 is on it’s way!