dchunt Absent Member.
Absent Member.
1556 views

Displaying a bundle message for the whole bundle

How can I display a message at the start of a bundle that will last until the bundle completes? For instance, I have a bundle that have 5 or 6 Install actions that I want to run. I want to throw up a message at the start of the bundle that says 'Don't touch your computer' and have it stay there through all of the Install actions, then disappear. If I use the 'Display Message' action as the first action in the Install Actions set, it seems to only display the message while that action is running and doesn't keep the message up there for the remaining actions.

Thanks,

Dan
Labels (2)
0 Likes
15 Replies
Micro Focus Expert
Micro Focus Expert

Re: Displaying a bundle message for the whole bundle

There is nothing built in that will persist that way.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Displaying a bundle message for the whole bundle

On Mon, 28 Nov 2016 19:26:02 GMT, CRAIGDWILSON
<CRAIGDWILSON@no-mx.forums.microfocus.com> wrote:

>
>There is nothing built in that will persist that way.


Sounds like a good enhancement request - see the link in my signature.

But here is a possible workaround...
Make your first action a Run Script.
--------------------------------------
Script to Run: Define your own script

Script content: x=MsgBox("Your message here", 0+48, "Title at the top
of the message")

Format: ( Button Code + Symbol Code )

Button Codes:
0 = OK Button
1 = OK / Cancel Button
2 = Abort / Retry / Ignore Button
3 = Yes / No / Cancel Button
4 = Yes / No Button
5 = Retry / Cancel Button
Symbol Codes:
16 = Critical Icon
32 = Help Icon
48 = Warning Icon
64 = Information Icon

Script file extension: .vbs
Path to Script Engine: C:\Windows\System32\wscript.exe

Set Wait to No wait
Run as logged in user
--------------------------------------

Make your last action a Launch Executable.
--------------------------------------
Command: c:\windows\system32\taskkill.exe
Command line parameters: /IM wscript.exe
--------------------------------------

I tried a quick test and the above will display a message and then
remove it at the end of the bundle. Definitely test this and tweak it
as necessary for your environment, but it might work for you.

Another workaround it to try to schedule your installs for off-hours
when employees aren't there to interupt them.

---
Ken
Knowledge Partner

If this post was helpful and you are logged into the web interface,
please show your appreciation and click on the star below... Thanks!

Create and vote for enhancements!
https://www.novell.com/products/enhancement-request.html
--
Ken
Knowledge Partner

Create and vote for enhancements!
https://www.microfocus.com/products/enhancement-request.html
0 Likes
Knowledge Partner
Knowledge Partner

Re: Displaying a bundle message for the whole bundle

Has been an enhancement request for ages.. I even wrote a small util
called ZLock back in the ZFD days to put up a message and lock the
keyboard whilst the install is running.

--
Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)

Have an idea for a product enhancement? Please visit:
https://www.novell.com/products/enhancement-request.html

0 Likes
dchunt Absent Member.
Absent Member.

Re: Displaying a bundle message for the whole bundle

Nice, Ken! I'll give that a try.

Dan
0 Likes
shaunpond Absent Member.
Absent Member.

Re: Displaying a bundle message for the whole bundle

KeN,

I think I remember your enhancement request - that was some years
ago...

--

Shaun Pond
in my "day job" I work for ENGL; our aim is to make Windows deployment
easy


0 Likes
dchunt Absent Member.
Absent Member.

Re: Displaying a bundle message for the whole bundle

Ken or others, is there any way to throw up a dialog AND lock the keyboard and mouse so the user can't affect the machine while the bundle is running?

Dan
0 Likes
Knowledge Partner
Knowledge Partner

Re: Displaying a bundle message for the whole bundle

Dchunt,
> Ken or others, is there any way to throw up a dialog AND lock the
> keyboard and mouse so the user can't affect the machine while the bundle
> is running?


Not natively, no. I could check whether my old utility still works though.

--
Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)

Have an idea for a product enhancement? Please visit:
https://www.novell.com/products/enhancement-request.html

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Displaying a bundle message for the whole bundle

Have to be careful with that........
Let's say the installer throws an error and 'Press OK' to continue.

Power Off Time now.....
You could add a timer so the message clears regardless after a certain time, but how long it tricky.

It can be done, but generally not necessary and can be more annoying to users vs letting them finish an email while something else is installing.
Or as you noted, schedule to run via WOL during hours when nobody is there.
0 Likes
Knowledge Partner
Knowledge Partner

Re: Displaying a bundle message for the whole bundle

Craigdwilson,
> Have to be careful with that........
> Let's say the installer throws an error and 'Press OK' to continue.
>
> Power Off Time now.....
> You could add a timer so the message clears regardless after a certain
> time, but how long it tricky.


Yes. I know. Still quite a few users used my app at the time.

--
Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)

Have an idea for a product enhancement? Please visit:
https://www.novell.com/products/enhancement-request.html

0 Likes
grahamch Frequent Contributor.
Frequent Contributor.

Re: Displaying a bundle message for the whole bundle

I handle this by creating and launching a hta file (that hides the title bar) with the first install items, then killing mshta and deleting the hta file with the last items.

Chris
0 Likes
Knowledge Partner
Knowledge Partner

Re: Displaying a bundle message for the whole bundle

Grahamch,
> I handle this by creating and launching a hta file (that hides the title
> bar) with the first install items, then killing mshta and deleting the
> hta file with the last items.


Nice!

--
Anders Gustafsson (NKP)
The Aaland Islands (N60 E20)

Have an idea for a product enhancement? Please visit:
https://www.novell.com/products/enhancement-request.html

0 Likes
dchunt Absent Member.
Absent Member.

Re: Displaying a bundle message for the whole bundle

Humm. How if I only knew what an hta file was and how to create one.

Dan
0 Likes
grahamch Frequent Contributor.
Frequent Contributor.

Re: Displaying a bundle message for the whole bundle

dchunt;2447903 wrote:
Humm. How if I only knew what an hta file was and how to create one.

Dan


A HTA file is just a html application. Below is a sample HTA that we have in our system. The background (VidyoDesktop.jpg), icon image (VidyoDesktop.ico) and the gif (to give the illusion that something is happening) are all in the same directory as the hta file. I have a vbscript in the bundle that creates this on the fly so that I only have to change the application title and the source location of icon image so I don't have to recreate this manually for each install.

<code>

<HEAD>


<SCRIPT LANGUAGE="VBScript">

Sub Window_onLoad
on error resume next
sPC = "."
set oShell = createobject("wscript.shell")
Set oWMIService = GetObject("winmgmts:\\" & sPC & "\root\cimv2")
Set colItems = oWMIService.ExecQuery("Select * From Win32_DesktopMonitor")
For Each objItem in colItems
intHorizontal = objItem.ScreenWidth
intVertical = objItem.ScreenHeight
Next
intLeft = (intHorizontal - 750) / 2
intTop = (intVertical - 275) / 8
window.resizeTo 750,275
window.moveTo intLeft, intTop
end sub

</SCRIPT>


<TITLE>
VidyoDesktop
</TITLE>
<HTA:APPLICATION ID="oMyApp"
APPLICATIONNAME="monster"
BORDER="none"
CAPTION="no"
ICON="/graphics/creature.ico"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
SYSMENU="no"
SCROLL="no"
WINDOWSTATE="normal">
<input type=hidden name=App value=%1>
<body background="
VidyoDesktop.jpg
">
<center><b><p><font size="6">Information Technology Update in Progress:
<br/><font size="4"></p>
<table border="1"><tr><td bgcolor="#ffffff"><p><font size="10">


<img alt="App" src="VidyoDesktop.ico"/>VidyoDesktop</tr></td></table><p>
This window will automatically close.<br/><img alt="App" src="VidyoDesktop.gif"/></p></body></html>

</code>
0 Likes
dchunt Absent Member.
Absent Member.

Re: Displaying a bundle message for the whole bundle

Thanks Chris. I'll play around with this.

Dan
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.