Scheduled Task not deleting on uninstall

Got a problem you cannot solve? Try here.
Post Reply
gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Scheduled Task not deleting on uninstall

Post by gsaunders »

I have a simple test install and with scheduled updates.

After installing the task is scheduled.
After uninstalling the task is still in the scheduler. Shouldn't it remove the task by default???

The only place I see a Delete Scheduled Task is in the updates script here:

Code: Select all

  if Variable UPDATE_KEEP Equals TRUE
    Get System Setting Windows NT Kernel (NT4, 2000, XP, 2003, Vista, 2008) into UPDATE_NTKERNEL
    if Variable UPDATE_NTKERNEL Equals TRUE
      Get System Setting Windows Vista into UPDATE_VISTA
      if Variable ALLUSERS Equals TRUE
        if Variable UPDATE_VISTA Equals FALSE
          Comment: 082510 - GCS - Set to update at log on
          Schedule Task $TITLE$ Updates to run when user logs on
          Comment: Schedule Task $TITLE$ Updates to run weekly
          else
          Comment: 082510 - GCS - Set to update at log on
          Schedule Task $TITLE$ Updates to run when user logs on
          Comment: Schedule Task $TITLE$ Updates to run weekly
        end
        else
        if Variable UPDATE_VISTA Equals FALSE
          Comment: 082510 - GCS - Set to update at log on
          Schedule Task $TITLE$ Updates to run when user logs on
          Comment: Schedule Task $TITLE$ Updates to run weekly
          else
          Comment: 082510 - GCS - Set to update at log on
          Schedule Task $TITLE$ Updates to run when user logs on
          Comment: Schedule Task $TITLE$ Updates to run weekly
        end
      end
      else
      if Variable ALLUSERS Equals TRUE
        Comment: 082510 - GCS - Set to update at log on
        Schedule Task $TITLE$ Updates to run when user logs on
        Comment: Schedule Task $TITLE$ Updates to run weekly
        else
        Comment: 082510 - GCS - Set to update at log on
        Schedule Task $TITLE$ Updates to run when user logs on
        Comment: Schedule Task $TITLE$ Updates to run weekly
      end
    end
    else
    Delete Scheduled Task $TITLE$ Updates
  end
This doesn't appear to be part of the uninstall.

So I ended up putting it here in the main script:

Code: Select all

if Variable REMOVE Equals TRUE
  Comment: Uninstall product
  Comment: TO-DO: Insert any additional uninstall commands here
  Apply Uninstall (get result into variable SUCCESS)
  Comment: 082510 - GCS - To get the scheduled task deleted
  Delete Scheduled Task $TITLE$ Updates
  Set Variable PROGRESS to 100
  else
I would have thought the uninstall would have this already built in?
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Scheduled Task not deleting on uninstall

Post by mills »

You're correct. It should in fact the scheduled task. We'll get around to fixing this.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Re: Scheduled Task not deleting on uninstall

Post by gsaunders »

Glad to hear it.
Post Reply