Jump to content


  • 0
AMD

Notify after install software

Question

Hello,

 

i'm installing some software (task sequences) with silent mode.. and needed to notify users if installation is complete successfuly.

 

creating vbs file with MsgBox("Software was successfuly installed").. and added this file to the task sequences to run command line (\\nameserver\folder\name.vbs), but it's not working.. this file is not be run after installing software..

 

can anyone help me?

 

Thank you very much.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

You could probably use a VBScript wrapper around the program to do the whole thing. So no need to run a second program after the first. Here's a real rough VBScript code snippet to show what I mean (you'd have to figure out how you determine a "success" for each particular application):

 

strCommandLine = "msiexec.exe /i """ & strSetupFilePath & """ /quiet /norestart"

intReturn = objWshShell.Run (strCommandLine, 1, True)

If intReturn = 0 Then

objWshShell.Popup "The software appears to have sucessfully installed.", 120, "Successful installation...", 0 + 64

Else

'Return a failure code back to SCCM.

Wscript.Quit(1)

End If

Share this post


Link to post
Share on other sites

  • 0

You could probably use a VBScript wrapper around the program to do the whole thing. So no need to run a second program after the first. Here's a real rough VBScript code snippet to show what I mean (you'd have to figure out how you determine a "success" for each particular application):

 

strCommandLine = "msiexec.exe /i """ & strSetupFilePath & """ /quiet /norestart"

intReturn = objWshShell.Run (strCommandLine, 1, True)

If intReturn = 0 Then

objWshShell.Popup "The software appears to have sucessfully installed.", 120, "Successful installation...", 0 + 64

Else

'Return a failure code back to SCCM.

Wscript.Quit(1)

End If

 

Thanks for you answer.

 

it's working for me..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.