var oFolder = getFolder("Current User", "chrome");
var iContentFlag = CONTENT | PROFILE_CHROME;
var iLocaleFlag = LOCALE | PROFILE_CHROME;
//Install in App or Profile?
var existsInApplication = File.exists(getFolder(getFolder("chrome"), gJar));
var existsInProfile = File.exists(getFolder(oFolder, gJar));
if(existsInApplication || (!existsInProfile && !confirm("Do you want to install the extension into your profile folder?\n(Cancel will install into the application folder)")))