/build/static/layout/Breadcrumb_cap_w.png

How to use RUNOnce

Hi

I have an application that needs a reboot and a script needs to run after the Reboot.I need to know how to use the Run Once to execute the same?

0 Comments   [ + ] Show comments

Answers (13)

Posted by: MSIPackager 14 years ago
3rd Degree Black Belt
0
It's pretty self explanitory.. have a look at exsiting examples in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run on your day to day workstation.

Only difference with RunOnce is that the entry is automatically deleted after it's been executed.

Not sure if you can have RunOnce per-user but depending on what your script is doing - ActiveSetup might be a better solution.

Regards,
Rob.
Posted by: Star 14 years ago
Orange Senior Belt
0
My applications script needs to copy of one the files on the system.But it doesnt happen coz, the machine reboots since its the package requirement.

I need the scripts should automatically run once the system is back.How coudl this be achieved?
Posted by: Star 14 years ago
Orange Senior Belt
0
can i copy the path of the Bat file in Runonce under the path specified by u?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Posted by: anonymous_9363 14 years ago
Red Belt
0
Why not just use the MoveFile table?
Posted by: Star 14 years ago
Orange Senior Belt
0
I need to execute the Runonce in a Batch script...Could anyone help me with the script?
Posted by: mekaywe 14 years ago
Brown Belt
0
ActiveSetup can also be used
Posted by: Star 14 years ago
Orange Senior Belt
0
how? can you quote an example?
Posted by: turbokitty 14 years ago
6th Degree Black Belt
0
is the script's only purpose to copy over a file that's in use? If so, listen to VBScab. MSI will create a pending write operation that will execute after the reboot.
If not, use a custom action that runs after the reboot task.
Posted by: anonymous_9363 14 years ago
Red Belt
0
how? can you quote an example?Can you use Google? Come on....
Posted by: Ksuekihlman 12 years ago
Senior Yellow Belt
0
ORIGINAL: VBScab

how? can you quote an example?Can you use Google? Come on....


Did it ever occur to you that Google might be how he ended up here?

Some people are still trying to learn this stuff. "Can you use Google? Come on..." doesn't answer anything. If you don't want to help someone...say nothing. Basically what you did, but with less typing.

I know, the post is ancient...but it still came up in Google.

Did you get the point yet? Or will you have to Google it?
Posted by: kardock 12 years ago
Second Degree Green Belt
0
ORIGINAL: Ksuekihlman


ORIGINAL: VBScab

how? can you quote an example?Can you use Google? Come on....


Did it ever occur to you that Google might be how he ended up here?

Some people are still trying to learn this stuff. "Can you use Google? Come on..." doesn't answer anything. If you don't want to help someone...say nothing. Basically what you did, but with less typing.

I know, the post is ancient...but it still came up in Google.

Did you get the point yet? Or will you have to Google it?


wow, a new member who is giving a lesson to VBScab, who has 8454 posts...

priceless!
Posted by: pjgeutjens 12 years ago
Red Belt
0
not to mention it's 2 and a half years after the fact...
Posted by: anonymous_9363 12 years ago
Red Belt
0
Did it ever occur to you that Google might be how he ended up here? Actually, he wouldn't have ended here, in this forum, but in the rather good article on Active Setup which has been the top hit on Google for the search term 'active setup' for as long as I can remember. If that article didn't provide the answer then, frankly, the OP should give up.

As to the time lag, to my mind, you were probably searching for the answer yourself. Did you ignore the top hit? Any of the next 4 or 5 hits would have provided what you (and the OP) needed.
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