Jump to content


  • 0
Fray

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

Question

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

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites

  • 0

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.

 

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.