Geeks With Blogs
Joaquin Jares Just another geek's blog August 2008 Entries
Recycle Bin
There’s something that we developers don’t seem to get about the users, and it’s that the file system is a quite complex beast to use. It provides order, yes, but at the expense of users getting lost on where their files are. And it gets worst, as there’s no easy way to solve this. In Windows, there’s only one key that will move your files to a well known location in a single key press: the Delete key. You probably know how it works: select a few files, hit Delete, and go find the selected files ......

Posted On Sunday, August 31, 2008 6:47 AM

Setup - Patching
In case you didn’t know, Windows XP SP2 provides a very cool update feature. It works like this: you have a main product, and the Quick Fixes / Service Packs that are applied to it. When you repair your setup for the main product, all the updates are also applied. When you remove, the cleanup is done for all. And it also looks cool on the Add/Remove Programs screen: You’ve probably seen it before in Vista, and thought that that was a Microsoft only thing. I really prefer the way it looks in XP. It ......

Posted On Friday, August 29, 2008 2:59 AM

Setup - Elevation
It is very common on Vista (with UAC activated) to have a setup run through with no error, but to end up not installing anything. This happens when you try to write to protected resources (such as some parts of the file system, registry, etc). It’s easy to get past this on custom actions (using impersonate=”no” and Execute=”deferred”), but finding out how to do it on the “standard” components is not that easy. Luckily, it’s a one-liner. Just add the InstalledPrivileges attribute to your package, ......

Posted On Friday, August 15, 2008 5:50 AM

Custom Action – Copying a Property to another Property
Custom Action type 50 has a very useful behavior. This custom action copies a value to a property. The cool thing about it is that you can copy any formatted string. That is, if you use [], you can get the value of another property. and you can also use environment variables (with a % prefix), file paths (with a # prefix) and directory paths (with a $ prefix). So, to copy a property to another property, simply do this: <CustomAction Id="CopyProperty" Property="TargetProperty" Value="[SourceProperty]" ......

Posted On Wednesday, August 6, 2008 5:17 AM

Custom Action – Status Bar
If you’ve made your own setup using Wix and Custom Actions, you probably got to the end of your setup to see the progress bar still running with an empty status message. It’s specially notorious if your action takes a long time to run. Gladly, there’s an easy solution to that. Simply open your UI.wxs (or add a <UI> tag in your Product, or in a Fragment) and add the following line: <ProgressText Action="MyAction">Config... my Custom Action</ProgressText> Where MyAction is the Id ......

Posted On Wednesday, August 6, 2008 5:09 AM

Copyright © Joaquin Jares | Powered by: GeeksWithBlogs.net