Home » Archives for Jeroen Pluimers

Author Archives: Jeroen Pluimers

Windows: removing file and directory reparse points (symbolic links, directory links, junctions, hard links

The interwebs is full of posts telling about how to create file and directory junctions**. But there is little information about removing them and even less being correct: some suggest to del a directory junction (which just deletes everything in it but the junction). Finally there is little information about listing all junctions, so lets start with that: Deleting a ...

Read More »

Compare Registry Settings – Beyond Compare

I think that Compare Registry Settings is one of the most unknown features of Beyond Compare. So if you are a Windows that fights with the Registry every now and then, this feature is for you. Note it is in the Windows Pro Edition only: one more reason to buy a license (: It has been there since Beyond Compare version ...

Read More »

Hack the Remote Desktop .RDP file

Glad I found out about the string to add to a .RDP file to make it connect to the administrative console whenever your remote supports that:   connect to console:i:1 Reference: Hack the Remote Desktop .RDP file from our NCG partner Jeroen Pluimers at the The Wiert Corner blog.

Read More »

C# Settings reminder

As a reminder to self: Settings are nice (too bad they advertise them as Windows Forms Application Settings, as they are just as useful for other assemblies), but be aware… When using Settings.Default, it will get the values to the state of the app.config (or defaults if there is no app.config) of the assembly that defined the settings, not the ...

Read More »

Do not expose properties with writable fields without a chance to react on the writes.

                                                                                                                                                                                                                                                                                                                                                                                                                                              From a chat with a co-worker a while ago: I’m not against properties. Just something against properties that are objects with writeable fields. So even if you expose such a property as read-only, it can still get its writeable fields overwritten. That is a pain when those are part of the state of the underlying object. In other words: ...

Read More »

C#: Lazy is not constrained to static contexts, instance field initializers are: via Stack Overflow

Lazy<T> is not constrained to static contexts. Instance field initialisers cannot use instance references (but can use static references) as they run outside of the constructor.Though there are arguments for instance field initializers too., I think this is a good reason to initialize fields inside the constructor: there you do have access to instance references (but should not call virtual ...

Read More »

Unless you write an installer with the right manifest don’t include Installer, Update, Upgrade, Setup,… in your EXE name

I’ve seen this question coming up a few times, and bumped into this at a client recently: the UAC dialog coming up when debugging a 32-bit executable. This is caused (more details below) by Installer Detection Technology introduced in Windows Vista (with UAC) and tightened in more modern Windows versions.       The solution is to either: not include ...

Read More »