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

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
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.
Answered 06/22/2009 by: MSIPackager
Third Degree Black Belt

Please log in to comment
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?
Answered 06/22/2009 by: Star
Orange Senior Belt

Please log in to comment
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
Answered 06/22/2009 by: Star
Orange Senior Belt

Please log in to comment
0
Why not just use the MoveFile table?
Answered 06/22/2009 by: VBScab
Red Belt

Please log in to comment
0
I need to execute the Runonce in a Batch script...Could anyone help me with the script?
Answered 06/22/2009 by: Star
Orange Senior Belt

Please log in to comment
0
ActiveSetup can also be used
Answered 06/22/2009 by: mekaywe
Brown Belt

Please log in to comment
0
how? can you quote an example?
Answered 06/22/2009 by: Star
Orange Senior Belt

Please log in to comment
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.
Answered 06/22/2009 by: turbokitty
Sixth Degree Black Belt

Please log in to comment
0
how? can you quote an example?Can you use Google? Come on....
Answered 06/23/2009 by: VBScab
Red Belt

Please log in to comment
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?
Answered 12/09/2011 by: Ksuekihlman
Senior Yellow Belt

Please log in to comment
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!
Answered 12/09/2011 by: kardock
Second Degree Green Belt

Please log in to comment
0
not to mention it's 2 and a half years after the fact...
Answered 12/12/2011 by: pjgeutjens
Red Belt

Please log in to comment
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.
Answered 12/12/2011 by: VBScab
Red Belt

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