/build/static/layout/Breadcrumb_cap_w.png

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!

0 Comments   [ + ] Show comments

Answers (6)

Posted by: justinSingh 15 years ago
Blue Belt
0
Can anyone please help me finding the solution for my problem?

Thanks!
Posted by: anonymous_9363 15 years ago
Red Belt
0
Since you got so far, wouldn't it be easier to find out why the process is hanging on start-up?
Posted by: justinSingh 15 years ago
Blue Belt
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!
Posted by: anonymous_9363 15 years ago
Red Belt
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.
Posted by: yarborg 15 years ago
Blue Belt
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.
Posted by: Jimbone18 15 years ago
Senior Yellow Belt
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 /?"
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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