Tuesday, October 16, 2007

Delete old folder on upgrade

Here's the installscript funciton I wrote to delete the start menu shortcuts using the old company name when a folder structures were updated to reflect the new company name.

This worked with Installshield 11.
The following function was added to a .rul file. A custom action was then created for the funciton. The custom action was then added to the execute sequence.

function DeleteOldCompanyNameShorcuts(hMSI)
//Errors should not be highlighted as this function will be called multiple times
// on subsequent calls there should be nothing left to delete
// Also, there may not be anything to delete in the first place

//default group type is common
//Delete old company name shortcuts from all users menu
DeleteProgramFolder(FOLDER_PROGRAMS ^ "Old Company Name");

//Delete old company name shortcuts from current users menu
DeleteProgramFolder(FOLDER_PROGRAMS ^ "Old Company Name");


  1. In which possessing recently been mentioned, it really is unbelievably crucial that you obtain employed replica watches for sale coming from reliable retailers which clear, analyze, and also fix each and every employed observe which they promote. In addition, you need to simply obtain employed rolex replica uk which can be marketed with all the appropriate forms to make sure that the particular observe you might be obtaining will be authentic. When you have a big hand ins to get a girl you ought to know in which don't assume all observe can suit an individual out from the package. This kind of observe can be reported to be significant difficult produced tag heuer replica sale at the same time due to twice experienced alternative. Much like anything at all obtained on the web, it's also advisable to cautiously check the hublot replica when you acquire that, to enable you to right away record any issue for the supplier. The more expensive distributors are often great with top quality handle. When pants pocket timepieces are certainly not your thing, which is great at the same time. Observe lovers can consent a correct high end rolex replica sale must stand up to the particular analyze of energy, equally any way you like and also design.