j.zamiska
Posts: 16
Joined: Mon Nov 04, 2013 3:28 pm

Problem with scheduled task import

Hi,

I build project (attached) and found, that imported scheduled task missing (xml also attached) "Event query subscription" when its installed.

Imported "Event query subscription" from XML look like:
<QueryList><Query Id="0" Path="Security"><Select Path="Security">*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=6416]]</Select></Query></QueryList>

Regarding this article (https://www.advancedinstaller.com/user- ... -task.html) it should be like this:
<QueryList>
<Query Id="0" Path="Security">
<Select Path="Security">*[\[]System[\[]Provider[\[]@Name='Microsoft-Windows-Security-Auditing'[\]] and (EventID=6416)[\]][\]]</Select>
</Query>
</QueryList>

When I enter manually in this form, scheduled task have custom trigger and using exact code.

So, I can tell that "Import existing task" in Scheduled tasks section is not working properly.

Can you confirm that is a bug or am I doing something wrong?

Jan
Attachments
Change COM Port ProLific.xml
(3.92 KiB) Downloaded 212 times
COM1_port_register_2.0.0.aip
(20.22 KiB) Downloaded 208 times
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with scheduled task import

Hello Jan,

I apologize for the delayed reply.

Indeed this seems to be a limitation of our scheduled task import feature. It seems we do not automatically escape the special formatted chars. Thank you for bringing this to our attention. We will try to fix this in a future version of Advanced Installer and update this thread as soon as the fix is available.

Until then, as you already found you should manually escape the square bracket chars.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
j.zamiska
Posts: 16
Joined: Mon Nov 04, 2013 3:28 pm

Re: Problem with scheduled task import

Thank you Daniel,

good to know... I'll be happy to install a new version :)

Jan
Daniel
Posts: 8238
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem with scheduled task import

You are always welcome Jan.

We will update this thread when a fix is available.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Problem with scheduled task import

Hello Jan,

This was fixed in version 16.0 of Advanced Installer released on May 28th, 2019.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”