One of my intentions for my Live Writer Backup Utility was to make it accessible from the Command Line. The reason for this is to make it so that you can schedule a backup to take place without any user intervention (using Windows Scheduler or similar). So this weekend (well, last night), I sat down and started putting in the command line options that would need to be included for all this to work. Which is what I’ve done . It’s not the only thing that I’ve changed for this release (v1.1), but I’ll come back to that in a bit.
So, what options are we looking at with the command line? Well for a start, typing LiveWriterBackup.exe /? will bring up what options are available, plus a couple of examples:
If you know how to use command line parameters then this should all seem quite clear and obvious to you. What I’ll do now is just quickly show you how this can be handy, and I’ll use the Task Scheduler in Windows Vista to demonstrate.
So now we can see that this is going to create a backup file every week. These can all be changed as needed of course.
Now, I mentioned more things to expect with this release, and there are. I have made (as shoddy as they are) some new icons for the program (using the excellent Microangelo icon studio), one for the program itself and one for the wlwbackup files:
This just makes things nicer in your Windows Explorer window. Now, here’s the cool thing: before, if you wanted to do a restore from a backup file, you had to run the program, select the file and off you go. Well, I’ve made things even simpler now . Now all you need to do is simply double click the file and it will do the restore straight away (once you’ve acknowledged that you want it to happen). You can still do a restore the old way, but you don’t just have that option anymore .
Windows Live Writer Backup and Windows Vista
Now, through testing with Vista, we have two different scenarios for this program, one with UAC turned on, and one with it off. I already mentioned that when running the backup program to do a backup of the settings you might need to run it as Administrator if you have UAC turned on. This shouldn’t apply if you’re doing it from the command line through scheduler, but if you do have problems, let me know.
Anyway, I now want to talk to you about the installer program and Vista UAC. It has been noted with a couple of people that they have had issues when trying to install it because they couldn’t get the necessary privileges, this is because with an msi file, you can’t right click and run as administrator. So because of this I’m changing my deployment method. Instead of downloading just the msi file, you now download a zip file that contains the msi file and an accompanying exe file. The exe file can be right clicked and have the run as administrator option, and will then run the msi with the correct privileges.
Wow, long entry . Any way, enjoy the new version. Oh, by the way, I’m thinking of making a minisite for this program, the html side of things I can do, but if anyone would like to help with the images, please email me at wlm[at]scottisafool.co.uk.