Here is a sample Flag File which we deploy with all packages. It's placed at the end of the script and verifies a successful install.
We create a perm. directory on C named 'Installs' and every package deployed and installed on the machine drops a flag file here. We use cumulative .txt files for apps that are receiving upgrades and it places a line of text after the last line in the file and describes what the upgrade did.