December 4, 2006

Running Legacy Apps Under Vista

Filed under: Vista — Marcus Tettmar @ 3:31 pm

If you’re thinking about upgrading to Vista and want to know if your favourite apps will run, here’s a very simple test to try first. In XP create a standard, restricted user account. Now try and run your apps. If they fail to run, or pop up access denied errors when trying to save data or settings, then they will very likely have similar issues when running under a default Vista install.

With previous versions of Windows the default account was always an administrator. If you’ve installed XP out of the box you are probably running as admin. And every application you start has administrator privileges. This means it can do things like write to the Program Files directory, or HKLM, etc. Because this is default, software developers have got into a bad habit of assuming that the user is an administrator. Believe it or not there are developers out there who don’t even realise there’s a different kind of user, and have never tested their software under a restricted user account. Until now this hasn’t been much of an issue because the vast majority of users are administrators anyway.

But with Vista things have changed, for the better. Now, while the default user account is still the Administrator account, all applications run at least user privileges. Applications that require administrator privileges to run, e.g. system configuration tools, can be marked as such and when started will prompt the user to ask permission to continue. This means that the user now knows when an app is about to do something that requires admin rights. If the user is not an administrator she can ask the admin to come and enter his/her password and allow the administrative function to proceed. Or not. This new approach will cut down on malicious programs, trojans and viruses etc, because a process that needs to make a system change cannot do so invisibly. If the process is not marked as requiring Admin privileges, it will not be able to perform administrative tasks. If it is marked, it will pop up a confirmation box.

So lots of applications you have been using happily on XP may be assuming that you are an Administrator. And you may find when you try to run them on Vista that they fail to work. Perhaps because they try to store settings in HKLM or Program Files. If the application lets you change the folder it uses to store settings and output files, change it to a folder in your personal Documents folder.

If you can’t change the fact that it needs to write to a privileged location, and assuming you are logged in as Administrator, one workaround is to run the app with Admin privs. Right click on the application and select “Run as administrator”. Or modify the shortcut. Right click on your shortcut, select Properties then Compatibility and check the “Run this program as administrator” option. But please only do this for applications you trust! Don’t go and give any old application administrative privileges, or you defeat the purpose of this new security feature. Likewise, please don’t disable UAC (User Account Control) altogether.

I’m running a small number of tools that I have to do this for. For now I’m running them as Admin. But I hope the developers will issue updates soon so that I can run them more cleanly under Vista. Reading through various developer groups that I’m a member of I’m constantly amazed at how many developers only just seem to be thinking about Vista, and seem to be confused about these simple changes. Yet Vista has already been released to businesses and has been in beta for the best part of a year.

November 28, 2006

Free Copies of Vista and Office 2007!

Filed under: Vista — Marcus Tettmar @ 9:52 pm

But only if you’re in the USA. If you are, you might want to check this out: http://www.powertogether.com/. According to this you just have to watch three webcasts on each product within 30 days of registering and Microsoft will send you Vista Business and Office 2007 Pro, for free!

November 25, 2006

Running Vista

Filed under: General, Vista — Marcus Tettmar @ 10:51 pm

So I downloaded the final version of Vista last week and I’m now running Vista as my main environment. Am I mad? Let’s see how it goes. Lots of my favourite apps need to be run as admin because they write to the programs folder, or HKLM. For years, developers have made the bad habit of assuming the user is admin due to the way previous versions of Windows install by default. But with Vista defaulting to run apps at least user privileges, all that will have to change. But until these legacy apps get updated or replaced, there will be lots of workarounds. And I wouldn’t be surprised if many people switch off the new security features of Vista in order to run their old apps, and in so doing defeat the purpose of the main focus of this new operating system! Time will tell. Of course, Macro Scheduler is already Vista compliant and v9.0 has been built with Vista in mind, so no problems there.

I’ve already found what appears to be a bug in the final release. Vista wouldn’t let me attach to a network printer, shared by an XP machine. It kept saying access denied. Yet I was able to add the printer driver manually under LPT1 and then change the port to the network name of the shared printer. Then everything worked. Go figure.

Since RC1 I’ve been baffled by the shutdown options. And it seems I’m not alone. Why are there so many ways to switch off Vista, and what does the off button do that’s different to the six shutdown menu options? Do I want to lock/log off/switch user/switch off/restart or sleep!? Maybe I’ll just leave it running and not touch anything! Seems this is a result of design by committee and corporate bureaucracy.

November 20, 2006

MD5/SHA1 Hash DLL

Filed under: Announcements — Marcus Tettmar @ 5:02 pm

I’ve just uploaded a new Macro Scheduler MD5/SHA1 hash library to the libraries and plugins page. If you ever wanted a macro to verify the MD5 or SHA1 checksum of files, or need to hash strings, you can now use this DLL. Download it here.

November 16, 2006

Sorting Bubbles

Filed under: Scripting — Marcus Tettmar @ 9:12 am

I’ve just posted a tip to Scripts ‘n Tips showing a simple Bubble Sort subroutine. The example sorts a list of files returned by the GetFileList function. I hope it’s useful. Here it is.

November 15, 2006

November 13, 2006

Success Story – Advent Capital Management

Filed under: Success Stories — Marcus Tettmar @ 10:21 pm

By Ashley Henry.

My name is Ashley Henry; I’m a Network Admin at Advent Capital Management, which is a hedge fund managing billions of dollars. We deal nationally as well as internationally. There are several reports and processes that need to run several times per day; most of which require several redundant manual inputs. There’s never enough time in the day to complete most of the tasks the various departments need to get done. The challenge was to quickly and accurately transfer and print the data from various reports and processes to our trade system and with little or no manual intervention.

I’ve been using Macro Scheduler for about four months, Prior to using Macro Scheduler we attempted to print and enter these orders manually. This was very time consuming and error prone. It also cost more man hours than necessary. Since the Traders and Operations group are often interrupted by other phone calls and tasks, they would sometimes forget which report to run or when to run them.

Before coming to Macro Scheduler my programming / macro skills were minimal. I’ve primarily worked on the networking side of things. Since I had minimal experience in programming I thought that Macro Scheduler would be difficult to use, but I was pleasantly surprised. Marcus has been extremely helpful with some of the scripts that I couldn’t figure out. I’ve made hundreds of support calls to other companies and NONE has come close to the support that I’ve received from MJT. Thus far, I’ve saved the company at least 10 man hours per week and there’s so much more automating that needs to be done… Good job to Marcus for the wonderful product that he has produced.

November 9, 2006

Code Signing Compiled Macros

Filed under: General — Marcus Tettmar @ 9:34 am

Update 26th April 2011: We are now able to offer our customers a discount on Comodo Code Signing certificates through our Partners K Software. For details and coupon code please log into the registered user area.

What is Code Signing?

In Windows XP when you download an executable file from the Internet the browser checks the file’s Authenticode signature. This verifies who the publisher is. You get a dialog asking if you wish to download software from this publisher. If there is no signature the warning is more severe and it says something like:

The publisher could not be verified. Are you sure you want to run this software? This file does not have a valid digital signature that verifies its publisher. You should only run software from publishers you trust.

In some cases you will also get a similar warning when running applications that haven’t been signed. Apps that have been signed are trusted more by the operating system. And Vista is even more fussy.

Code signing protects against tampering and impersonation. If a signed app is tampered with or modified in some way the signature becomes invalid and so the user will be warned when they try to run it.

How does it work?

A publisher applies for a digital certificate from a Certification Authority. Using the Microsoft Authenticode tools the publisher can sign their applications with their digital certificate. The signing tool basically makes a hash of the code and their private key and appends the signature to the end of the executable. If the code is later modified the signature will therefore be invalid as it is partially based on the application’s code itself.

Should I sign EXEs Compiled with Macro Scheduler?

If you distribute compiled macros to others, or let people download them from the web you should consider signing them. Users can then see who the publisher is and be sure that the file hasn’t been modified in any way, and will no longer see the unknown publisher warning presented by the web browser.

So how do I sign my EXEs?

First you need to obtain an Authenticode Certificate from one of the following Certification Authorities:
Thawte
Verisign
Comodo

You also need the code signing tools. These come with the Microsoft Platform SDK and can be downloaded here:
Platform SDK Redistributable: CAPICOM

Once installed, launch SignTool.exe to sign your EXE. For command line options see: Sign Tool (SignTool.exe)

For more information about Authenticode and Code Signing see Authenticode Overviews and Tutorials on Microsoft.com

November 7, 2006

Not a crack

Filed under: General — Marcus Tettmar @ 8:29 am

Someone emailed me a link to a page on a crack site which purported to offer a crack for the Macro Scheduler 8.1 evaluation version. So I fired up Windows 2000 in Virtual PC and downloaded the “crack”. It contained two executable files. I scanned them with AVG Antivirus. One of the files contained a trojan. Since I was running under a Virtual PC environment it was safe to try this “crack” out anyway (I can easily trash/recreate the Virtual environment and the host PC is protected). Well, as expected, all it did was make some changes to the system and install the trojan. It didn’t do anything to Macro Scheduler. Macro Scheduler wasn’t cracked at all, but the O/S is now potentially compromised. Proves my point about how dangerous cracks can be. More often than not they aren’t cracks at all. Just trojan horses, keyloggers or viruses. Do yourself a favour, don’t download software cracks! Instead, if your issue is one of cost, email the developer and explain what you need the software for. You never know, they might even offer you a discount.

November 2, 2006

Tools Upload Area?

Filed under: General — Marcus Tettmar @ 11:30 am

I’ve been thinking about creating an area of the site for people to upload tools they’ve created with Macro Scheduler Pro to. It could be free tools and utilities, or even demo versions of commercial products you’ve created. It would be a great way to demonstrate some of the things Macro Scheduler can do, as well as give developers some extra exposure. If you write tools that you give away, or sell, with Macro Scheduler Pro, please let me know what you think of this idea. If there’s enough interest I’ll get to it!