Wise script help
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!
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
Answers (6)
Please log in to answer
Posted by:
justinSingh
16 years ago
Posted by:
anonymous_9363
16 years ago
Posted by:
justinSingh
16 years ago
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!
Thanks for the help!
Posted by:
anonymous_9363
16 years ago
Posted by:
yarborg
16 years ago
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.
Hope that helps.
Posted by:
Jimbone18
16 years ago
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 /?"
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.