gattausen
Posts: 13
Joined: Fri Oct 05, 2007 2:53 pm

net time usage

hy

i'd like to sync my client with ntp server by usage following command:
at login

net time \\myserver /SET /YES

what do you think about scheduling by advanced installer every time
i log on my client ?
i'm trying to install using updates configuration but my doubt is for
installed detection.

if i use net.exe with related size , the first time it installs my package and
adjust my time...
now i change my time and i login on more time.
the second time skip setting and doesnot change my time.
Instead i'd like to run my command every time i log.....

problem is for detection of application
how can i do ?
ideas for best method ?

thx

Max
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm not sure I understand what you mean. Can you please give more details about what kind of scheduled task you need to create with Advanced Installer?

You can read more about the Scheduled Tasks feature here:
http://www.advancedinstaller.com/user-guide/tasks.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gattausen
Posts: 13
Joined: Fri Oct 05, 2007 2:53 pm

yes
maybe i was not clear.... sorry

i'd like to use updates configuration tool for command
execution every time i log
(i.e. net time command to synchronize date and time of my client)

my problem is application detection because command execution is ok
just the first time.The second time skip the execution.

maybe this tool is not the best for login command execution...

thx

Max
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please note that the scheduler in the "Updater" page is meant to be used only by the updater.

If you need to create a scheduled task you can use the "Scheduled Tasks" page. In your case you will create a scheduled task that looks like this:

Code: Select all

Task Name:       Synchronize Time (for example)
Run Application: [SystemFolder]net.exe
Command Line:    time \\myserver /SET /YES (or the command parameters you need)
In the "Edit Task Properties" dialog, in the "Schedule" tab, you set the "Schedule" field to "At Logon".

This way the command net time \\myserver /SET /YES will be run as a Windows scheduled task every time the user logs on.

You can read more about the Scheduled Tasks feature here:
http://www.advancedinstaller.com/user-guide/tasks.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”