Skip to content

Help for Application Deployment but before running a script with a message (msgbox) or visual basic powershell scripts

Featured Replies

Hello Friends, I have weeks looking like making an application deployment unattended, everything is fine, but I want that the user receives a warning, because I'm closing word. This warning (msgbox) the scritps want to throw a Visual Basic or powershell before installation, but I have not succeeded, for all but the announcement by the vbs. As I do, I show the ad I've done, I want this to run before you start the installation. Close Word, but the ad does not run msgbox.

---------------------------

Hola Amigos, tengo semanas buscando como hacer un despliegue de un aplicacion desatendida; todo va bien, pero antes quiero que el usuario reciba una advertencia, porque voy a cerrar word. Ésta advertencia(msgbox) la quiero lanzar con un scritps de Visual Basic o powershell antes de la instalación, pero no lo he logrado, hace todo, menos el anuncio por medio del vbs. Como hago; les muestro el anuncio que he hecho, quiero que esto se ejecute antes de que inicie la instalación. Cierra Word, pero el anuncio msgbox no se ejecuta.

 

 

SCRITPS VBS I WANT THIS TO BE RUN BEFORE DEPLOY

 

 

 

 

dim lync15
Wscript.sleep 5000
Set Lync15 = CreateObject("Scripting.FileSystemObject")
If (lync15.FileExists("\Program Files\Microsoft Office\Office15\lync.exe")) then
WScript.Quit()
else
Set shell = CreateObject("Wscript.Shell")
delay = 30
shell.Popup "Estimado usuario; se iniciará instalación de Microsoft Lync 2013 en su equipo;no ejecute programas durante los próximos 5 minutos; el proceso será desatendido y no visible. Luego de este tiempo podrá trabajar con su equipo de manera normal" & vbcrlf, delay, "ANUNCIO",64 ---------- (THESE MESSAGE NOT RUNNING)
Wscript.sleep 5000
Set shell = CreateObject("Wscript.Shell")
delay = 15
shell.Popup "Iniciando instalación de Lync 2013..., el proceso tardará 5 minutos aproximadamente, luego podrá acceder desde el menú inicio a la nueva versión y continuar con sus operaciones" & vbcrlf, delay, "ANUNCIO",64 ---------- (THESE MESSAGE NOT RUNNING)
Wscript.sleep 2000
Set objshell = createobject("wscript.shell")
StrCommand= "cmd /c taskkill /F /IM OUTLOOK.exe"
ObjShell.Run StrCommand,0
Set objshell = createobject("wscript.shell")
StrCommand="cmd /c taskkill /F /IM Communicator.exe"
ObjShell.Run StrCommand,0
end if

Hi,

In the "User Experience" tab on the application have you selected "Only when a user is logged on" and after that "Allow users to view and interact with the program installation" Then it should be visible for the user.

Regards,
Jörgen

You can launch a message box for logged on users, without the user interaction option in the deployment type, by using the external MSG command.

 

 

for example:

 

MSG /T:30 * Place your message here

  • Author

hi all, thanks for your good response Jorgen. your help has been invaluable, God bless,

Peter33 very good reply but I would like to have details please

Well, you can launch the message box through your code like this:

StrCommand = "MSG /TIME:30 * Place your message here"
Set objshell = createobject("wscript.shell")
ObjShell.Run StrCommand,0,true

The message box will close itself after 30 seconds (in this example).

In the deployment type of your application you can chose the default values in the user experience tab (install for system, whether of not .., hidden). The message box will show regardless of these settings for every logged on user.

 

  • Author

yes.... thanks , very good

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.