/build/static/layout/Breadcrumb_cap_w.png

How to delay an action in Wise Script Editor ?

Hello, I'm looking for a methode to execute and action (display a message) a specific number of day (e.g : 20 days) after the package installation on the PC, using Wise Script Editor.

This message will contain a link to a Survey. I would like to let the End User work on the software packaged a minimum of time before to raise his feedback.

I know how to capture the DATE when the package is installed (Get System Information : Current Date)
But I do not see the best and easier way to script the delay..

Do you have any idea ?


0 Comments   [ + ] Show comments

Answers (3)

Answer Summary:
Posted by: MDoelman 10 years ago
Yellow Belt
0

1. Create a file during installation of the main program/package which contains the installation date + time. Or the date that the survey should take place. Create an executable (point 2) and place it in the run key of the pc which is being installed.

2. Create an executable, which runs at login (run key in registry) which checks the current date against the install date (point 1). Or checks if the date is the same or later than the date in the file that has been created. After the survey has been filled in, this executable also removes the run key from the registry.

Case closed!

 

 

Posted by: anonymous_9363 10 years ago
Red Belt
0

I'd say add a script to the Task Scheduler and have it run every day or add 'x' days to the installation date and have it run then. Either way, your script should check that the day is a working day, as there'd be little point in popping up messages to users if they're not there. It should also obviously check that there is a user logged in.

Posted by: keihilin 10 years ago
Orange Senior Belt
0

Thanks for the reply ;o)

I think I found a way, I capture the Current DATE when I install the package, then I run a checker at every start of the machine, when the Current Date is equal to Same Day + 1 month, I run my command to launch the message.

(Also added a securitty : if Current day is 29 or more, set Current day to 28)

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ