Skip to content

Notify after install software

Featured Replies

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.

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

  • Author

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..

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.