Windows Installer fails on Vista with error code 2869

, , , Keine Kommentare »

The day before yesterday was my personal 2869 nightmare day. My 2869 occured during the uninstall of Guidance Automatic Extensions CTP June 2006. I have tried all that “msiexec /blablabla wahwahwah.msi” stuff with/without UAC disabled, from an admin-command-shell and from a batchfile. Everything without success. Finally i was able to uninstall my package by following the procedure that Greg Duncan describes in his blog (although it’s about another error). Give it a try.
Oh, schould not forget to give you the link to Gregs blog ;-)

patterns & practices - Smart Client Guidance - Discussions

ForEach-ing only certain objects in a list

, , 1 Kommentar »

Jeremy from Digital Blasphemy brought up the question of how to iterate only over certain objects in a list. In his example, he has a list filled with Cats and Dogs where both are inherited from the base class Animal. What he wanted to do is to use a foreach statement to iterate over the Dogs only without any kind of filtering inside the foreach loop. I pointed out that this is easy to achieve using an anonymous delegate as the predicate in the FindAll method of the List type. The code looks like that:

List<Animal> animals = new List<Animal>();
animals.Add(new Cat("Fluffy"));
animals.Add(new Dog("Spot"));
animals.Add(new Dog("Lucky"));
animals.Add(new Cat("Frisky"));
animals.Add(new Dog("Fido"));
foreach (Dog dog in animals.FindAll(delegate(Animal a) {return a is Dog;}))
{
  Console.WriteLine("Found a dog named " + dog.Name);
}

Want to create an self extracting archive with Windows XP?

, Keine Kommentare »

Just go to Start/Run, type "IExpress" and press enter.

MSFN’s Unattended XP CD - Introduction

, , Keine Kommentare »

Valuable Infos for creating an unattended Windows Setup: MSFN's Unattended XP CD

HowTo: Write a Self-Installing Service

, Keine Kommentare »

It’s really easy to make a Service Self-Installable

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Anmelden