[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using PSEXEC.EXE ro run msiexec's

Posted on 2006-05-16
6
Medium Priority
?
1,050 Views
Last Modified: 2013-11-14
Hi all,

I love to use psexec to kick off msi installs remotely, the only issue i have is knwoing when thay are done so I can call the user back and say "look how clever I am!"

Is there any tool or trick I can use to alert me when the msi has finished its job?

Huge thanks going out to anyone who knows this!!

Many thanks

Kevin
0
Comment
Question by:kevinsmith121
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:Nat_c
ID: 16692016
Can you use psexec to run any type of executable or only msi files?

If you can use it to run a batch file you could have the batch file run the msi and then send you a net message (net send) when it is done.

I think you would also need to use the "wait" command to ensure that the net message was not sent as soon as the msi insall started.

Let me know what you think,
Nat
0
 
LVL 1

Author Comment

by:kevinsmith121
ID: 16692277
Batch files are not my area, if you could write up a dummy one with a <insert msiexec command here> that would be great, the important thing is for the message to only come up in the dos screen once the msi has finished.

Many thanks for your interest in this, I can follow your logic, just do not know how to do it! :-(

Ta!

Kev
0
 
LVL 4

Accepted Solution

by:
Nat_c earned 2000 total points
ID: 16692624
try this:

start /wait <insert msiexec command here>
net send yourusername "Message to send"

copy this in to a text file and save it as something.bat

for testing purposes I used notepad in place of the msiexec command, the batch file waited for notepad to be closed before sending the message.

You will need to have the messenger service started on your PC in order to receive the messages, I think it may be set to manual as standard

Let me know how you get on,
Nat
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:Nat_c
ID: 16750672
Hi Kevin,

Did you have any luck getting this to work?

Nat
0
 
LVL 1

Author Comment

by:kevinsmith121
ID: 16757464
Thanks Nat, apologies for the tardiness of my reply, yes it worked and thankyou.

Kevin
0
 
LVL 4

Expert Comment

by:Nat_c
ID: 16759664
Glad it all worked!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question