code: public void setScriptsPermission(int event) {
          if (event == InstallProgressEvent.POST_INSTALL ? setScriptsPermission : getUninstallDirector().needToSetScriptsPermission()) {
              fireProgressEvent(event, 95, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_SET_SCRIPTS_PERMISSION"));
              try {
                  SelfExtractUtils.fixScriptPermissions(new SelfExtractor.NullExtractProgress(), product.getInstallDir(), null);
              } catch (Exception e) {
  
              }
          }
      }
docs: Sets the scripts permissions to executable
  
  @param event what event to set permissions for