Scheduled Tasks not un-installed - Advanced Installer Community
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Scheduled Tasks not un-installed

Hi, in my installer, I am creating 2 scheduled tasks - one as part of the "updater" and one for another task. When I un-install the application - those 2 tasks remain. What can I do about this please?

Thanks & Regards,
Matt
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Scheduled Tasks not un-installed

Hello,

Indeed, I can reproduce and confirm this issue. A fix will be available in the next version of Advanced Installer, thank you for bringing it to our attention.

Unfortunately, this issue is caused when are present “Scheduled Tasks” with multiple configuration( “Windows XP, Windows 2000” and “Windows Vista, Windows 7”).
As a workaround can you please select the same configuration for all your “Scheduled Tasks” and see if the behavior persists?

Let me know if this is suitable for you otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Scheduled Tasks not un-installed

Hi Dan, thanks for your reply. I checked, both scheduled tasks have the same configuration (default: Windows XP, Windows 2000). Looking forward to the fix....
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Scheduled Tasks not un-installed

Hello,
I checked, both scheduled tasks have the same configuration (default: Windows XP, Windows 2000).
I've tested your scenario but I can not reproduce the behavior. Can you please give us more details about your version of Advance Installer and the Operating Systems you are using?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Scheduled Tasks not un-installed

Hi,

I have upgraded to the latest version - 10.3 build 51779. According to the update notes, the scheduled tasks should be removed on un-install. However, this is not actually happening yet. Both the scheduled task created via the updater panel or the one I created under scheduled tasks is being removed.
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Scheduled Tasks not un-installed

I am running Advance Installer version 10.3 51779 on Windows 7 x32.

The installer is tested on:
XP x32 and x64
Vista x32 and x64
Win7 x32 and x64

AIP file attached for x32 installer.
Attachments
CapisceClient32.aip
(173.35 KiB) Downloaded 529 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Scheduled Tasks not un-installed

Hello,

I'm not sure why you encountered this behavior. I've tested once again your scenario but I cannot reproduce the issue.
Can you please try to see if the behavior persist on a clean machine(a new machine where the behavior hadn't been encountered or tested before).

I think it might be a case where your tasks haven't been deleted from the registry before you upgraded to the new version 10.3 of Advance Installer and that's why the scheduled tasks aren't removed now even you have the updated version. So, please make sure they didn't “sticked” in the registry.

If the behavior persist, can you please send us a similar, simplified project reproducing this issue or can you give us a link where we can download the build package, to support at advancedinstaller dot com so we can make further investigation?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matt.luthi@gmail.com
Posts: 44
Joined: Thu Jun 20, 2013 4:42 am

Re: Scheduled Tasks not un-installed

I removed the tasks by hand before I tried installing/un-installing so I don't think it's a registry issue.

I have resorted to using an inline script (VBS) action which works for me now:

Set WshShell = CreateObject("WScript.Shell")
set objCMD = WshShell.Exec("schtasks.exe /Delete /F /TN CapisceSendAutoUpdater")
set objCMD = WshShell.Exec("schtasks.exe /Delete /F /TN CapisceSendClientVerifier")

Return to “Common Problems”