Hi Guys, I would appreciate it if someone can help me write a wise script that does the following or give me some pointers.

1. Uninstall application A
2. Display a count down message that tells the user the computer will reboot in XX amount of seconds/minutes.
3. Reboot the system once the counter reaches 0.
4. Install application B once user logs in.
5. Reboot system again.

What I can't figure out is how I can tell my script to continue with the rest of the script once computer is rebooted and user logs back in. I've tried using the RunOnce key under CU to execute the installation for application B and reboot, but it seems that using the RunOnce key just causes the installation for application B to freeze up the system. Does any one have any idea on HOW I can tell my script to install application B after reboot rather than using the RunOnce key under CU?

Thanks you for all your ideas in advance!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Can anyone please help me finding the solution for my problem?

Thanks!
Answered 07/04/2008 by: justinSingh
Blue Belt

Please log in to comment
0
Since you got so far, wouldn't it be easier to find out why the process is hanging on start-up?
Answered 07/07/2008 by: VBScab
Red Belt

Please log in to comment
0
Well from what I see now and understand is that it is poping up with the "runas" prompt and the sad part is that the users will not be able to see the prompt since the app needs to complete before explorer/desktop is loaded and so the app just hangs thinking the prompt is displayed. I'm now thinking of just creating 2 separate packages; 1 for uninstall and 1 for install. This way I will be able to manager the reboot and push out the 2nd app about 20 minutes later. My next concern however, is how to create message that tells the user that they have XX amount of minutes before the computer automatically reboots. I need this messgae to actually count down and display how much time is left. Any one have any ideas?

Thanks for the help!
Answered 07/09/2008 by: justinSingh
Blue Belt

Please log in to comment
0
Build a dialog using IE as the container. There are innumerable examples on the Web, including one (which I pinched for a project of mine) which does a countdown. I can't recall the URL, as it was a while ago but if you have even basic HTML skills, it'll be simple to do.
Answered 07/10/2008 by: VBScab
Red Belt

Please log in to comment
0
I know this post was a long time ago but this may help future viewers. I think the best way to do this is would be to set a scheduled task in the background that runs on startup or logon. You can use the built in schtasks.exe in Windows XP. The command lines are a little tricky. You can set it to run under the system account. Once the installation is finished the task should disappear if it is not reoccurring. It is a really power util for installations. If it needs to run under the logged on user context then you may run into admin rights issues unless your users are admins.

Hope that helps.
Answered 07/31/2008 by: yarborg
Blue Belt

Please log in to comment
0
My next concern however, is how to create message that tells the user that they have XX amount of minutes before the computer automatically reboots. I need this messgae to actually count down and display how much time is left. Any one have any ideas?

How about using the "shutdown" command that is built into Windows. It goes something like this.

shutdown /t 60 /r /c "Your computer will restart in 60 seconds"

There are alot more options by going to a DOS prompt and typing "shutdown /?"
Answered 10/06/2008 by: Jimbone18
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity