Hi Michael,
I made my first tests of the update process always with an active user. Today I started to test additional scenarios.
It seems as if the scheduled update requires that the user is logged in. On a Windows 2000
system the scheduled task is never run if the user has logged off. On a Windows ME system,
a Message Box is displayed: runtime error in script, can not create shell notification icon.
Furthermore if the machine is off at the scheduled time you lose this notification event completely.
If I use the defaults (every Sunday, 3:00 AM) I never see a notification because my office machine is not running
on the weekend and the task is not rescheduled.
Is this normal behaviour?
Problem with scheduled updates
Problem with scheduled updates
Martin Rothschink
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
The user does have to be logged in. You can change this in your task settings if you wish.
The error with Win9X systems has already been corrected.
The error with Win9X systems has already been corrected.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
I removed the checkmark on "Interactive Task" for the Schedule Task command - does not help.
The scheduled task for updates is still created with "Run only if logged on". Tested on an English Windows XP Sp2.
The scheduled task for updates is still created with "Run only if logged on". Tested on an English Windows XP Sp2.
Martin Rothschink
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
MichaelNesmith wrote:The user does have to be logged in. You can change this in your task settings if you wish.
I manually removed the "Run only if logged in" from my task. Now the task is started while I'm not logged in.
If I later log in I see the task status as running. But I do not see any visible window/icon. So this option doesn't help.
I want to be notified after login. What can I do?
The error with Win9X systems has already been corrected.
Is there any schedule for an update? I have to get my setup out of the door in the next days.
Martin Rothschink
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
The updated script has already been posted to the forum.
I guess the other limitation is a Windows Task Scheduler limitation. Nothing that can be done about that.
I guess the other limitation is a Windows Task Scheduler limitation. Nothing that can be done about that.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
MichaelNesmith wrote:The updated script has already been posted to the forum.
I'll give it a try.
I guess the other limitation is a Windows Task Scheduler limitation. Nothing that can be done about that.
Ok, but the bug with the schedule task command should be verified and addressed.
Martin Rothschink
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
There is still a problem with Scheduled Tasks, this is what I did:
When running the task in the target computer left the program running before showing any response for the update, so I had to End Task.
Then I noticed the following information in the Run As: NT AUTHORITY\\SYSTEM
I changed this to the current user and the task worked properly.
Other thing I noticed is that the new script is creating an update shortcut under \\WINDOWS\\Installer, it supposed to use the installation Title name, but the shortcut is named like this: $TITLE$ Updates for All Users so in the process of creating this shortcut the variable $TITLE$ is not being substituted.
- Create a new Scheduled Task in IA with the following info:
Task Name: $TITLE$ Updates
Interactive Task: Checked
Run Program: $UNINSTALLLINK$
Working Directory: empty
Command Line Parameters: /update
User Name and Password: blanks, because we just don't know that information.
When running the task in the target computer left the program running before showing any response for the update, so I had to End Task.
Then I noticed the following information in the Run As: NT AUTHORITY\\SYSTEM
I changed this to the current user and the task worked properly.
Other thing I noticed is that the new script is creating an update shortcut under \\WINDOWS\\Installer, it supposed to use the installation Title name, but the shortcut is named like this: $TITLE$ Updates for All Users so in the process of creating this shortcut the variable $TITLE$ is not being substituted.
Edhy Rijo
Thom Child and Family Services
Thom Child and Family Services
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Edhy,
The update script does not create shortcuts with $TITLE$ in them. It uses #TITLE#. This has already been explained in the post, please review.
Additionally, if you specify empty username and passwords, don't expect the Schedule Task command to work. You have to specify a valid username and password.
The update script does not create shortcuts with $TITLE$ in them. It uses #TITLE#. This has already been explained in the post, please review.
Additionally, if you specify empty username and passwords, don't expect the Schedule Task command to work. You have to specify a valid username and password.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Tinus,
"Interactive Task" and "Run only if logged on" are seperate Task Scheduler options. The InstallAware command does not expose the latter, it is assumed.
"Interactive Task" and "Run only if logged on" are seperate Task Scheduler options. The InstallAware command does not expose the latter, it is assumed.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
"Interactive Task" and "Run only if logged on" are seperate Task Scheduler options.
Thanks for the clarification, a misunderstanding on my side.
And what is the counterpart for "Interactive Task" in the scheduler options?
Martin Rothschink
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
InstallAware MVP
AxoNet Software GmbH
http://www.axonet.de/products/other-pro ... stallaware
Who is online
Users browsing this forum: No registered users and 245 guests