How do I hide an action’s completion message? I have nothing set for Post-Action, but still a message is shown for 5 seconds or so.
I want to do this because the app I’m installing never reports that its complete, so if I wait for it (either in Action Script or Powershell), the message while running the action never goes away.
Is BigFix displaying a message, or is your app doing something to display it? Check whether you have “Display a message while running” selected in the action settings dialog.
JasonWalker, thanks. I’ll take a look the next time I push those tasks with a new action. It’s possible that two actions ran over top of each other, but I’ll double check the next time.
JasonWalker, I confirmed that I get a completion message even though I have no completion message set in the action. This is a Windows notification message sent by BigFix, not a BigFix window/dialog.
Here’s my entire bes (with our confidential details removed):
<?xml version="1.0" encoding="UTF-8"?>
<BES xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BES.xsd">
<SingleAction>
<Title>Install AutoCAD 2020 Electrical</Title>
<Relevance><![CDATA[((/* Windows only */ windows of operating system) AND (/* Windows Vista/7 or higher */ version of operating system >= "6.1")) AND (/* Ensure Powershell executable exists */ exists file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of registry))]]></Relevance>
<ActionScript MIMEType="application/x-Fixlet-Windows-Shell"><![CDATA[//disable wow64 redirection on 64-bit operating systems
action uses wow64 redirection {not x64 of operating system}
//delete existing createfile
delete __createfile
//start new createfile by streaming lines of the powershell file
createfile until END_OF_FILE
<#
.SYNOPSIS
Install AutoCAD 2020 Electrical
.DESCRIPTION
(redacted)
.NOTES
(redacted)
#>
# Network Share reference: (redacted)
# user = "(redacted)"
[string]$sourceDrive = "(redacted)"
[string]$sourceServer = "(redacted)"
[string]$source = "$sourceServer\(redacted)\ACAD2020E"
[string]$destination = "C:\ACAD2020E"
[string]$user = "(redacted)"
[string]$password = "(redacted)"
#connect to share, test mapped drive letter first
if (-NOT(Test-Path -Path $sourceDrive))
{{
#test for network share path
if (-NOT(Test-Path -Path $sourceServer))
{{
#both mapped drive and network share path do not work, so connect to share manually
try
{{
net use $sourceServer $password /USER:$user | out-null
}
catch
{{
#user might not be connected to VPN, so show error and exit script with error
$errorMsg = $_.Exception.Message
Write-Output $errorMsg -ErrorAction Stop
}
}
}
else
{{
$sourceServer = $sourceDrive
}
#copy files from the share to the local drive
Copy-Item -Path $source -Recurse -Destination $destination -Container -Force | out-null
#launch installer
Start-Process -FilePath "$destination\Img\Setup.exe" -ArgumentList "/qb /I $destination\Img\(redacted)_AutoCAD_2020_Electrical.ini /Trial /language en-us"
END_OF_FILE
//delete existing powershell file if any, then move createfile to that name
delete powershell.ps1
move __createfile powershell.ps1
wait { pathname of file ((it as string) of value "Path" of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell" of native registry) } -ExecutionPolicy Bypass -File powershell.ps1]]></ActionScript>
<SuccessCriteria Option="RunToCompletion"></SuccessCriteria>
<Settings>
<ActionUITitle>Install AutoCAD 2020 Electrical</ActionUITitle>
<PreActionShowUI>true</PreActionShowUI>
<PreAction>
<Text>This task will install the AutoCAD 2020 Electrical application. Please click on "Take Action" when ready. IMPORTANT: You must be connected to VPN before you continue.</Text>
<AskToSaveWork>false</AskToSaveWork>
<ShowActionButton>false</ShowActionButton>
<ShowCancelButton>false</ShowCancelButton>
<DeadlineBehavior>RunAutomatically</DeadlineBehavior>
<DeadlineType>Interval</DeadlineType>
<DeadlineInterval>P1D</DeadlineInterval>
<ShowConfirmation>false</ShowConfirmation>
</PreAction>
<HasRunningMessage>true</HasRunningMessage>
<RunningMessage>
<Text>Now copying AutoCAD 2020 Electrical install files. This make take quite a while. Please do not log out, restart, or shutdown during this process. IMPORTANT: Do NOT logout or restart until you see the appropriate AutoCAD 2020 icon on your desktop.</Text>
</RunningMessage>
<HasTimeRange>false</HasTimeRange>
<HasStartTime>false</HasStartTime>
<HasEndTime>true</HasEndTime>
<EndDateTimeLocalOffset>P20DT12H45M28S</EndDateTimeLocalOffset>
<HasDayOfWeekConstraint>false</HasDayOfWeekConstraint>
<UseUTCTime>false</UseUTCTime>
<ActiveUserRequirement>RequireUser</ActiveUserRequirement>
<ActiveUserType>AllUsers</ActiveUserType>
<HasWhose>false</HasWhose>
<PreActionCacheDownload>false</PreActionCacheDownload>
<Reapply>false</Reapply>
<HasReapplyLimit>true</HasReapplyLimit>
<ReapplyLimit>3</ReapplyLimit>
<HasReapplyInterval>false</HasReapplyInterval>
<HasRetry>false</HasRetry>
<HasTemporalDistribution>false</HasTemporalDistribution>
<ContinueOnErrors>true</ContinueOnErrors>
<PostActionBehavior Behavior="Nothing"></PostActionBehavior>
<IsOffer>false</IsOffer>
</Settings>
<SettingsLocks>
<ActionUITitle>false</ActionUITitle>
<PreActionShowUI>false</PreActionShowUI>
<PreAction>
<Text>false</Text>
<AskToSaveWork>false</AskToSaveWork>
<ShowActionButton>false</ShowActionButton>
<ShowCancelButton>false</ShowCancelButton>
<DeadlineBehavior>false</DeadlineBehavior>
<ShowConfirmation>false</ShowConfirmation>
</PreAction>
<HasRunningMessage>false</HasRunningMessage>
<RunningMessage>
<Text>false</Text>
</RunningMessage>
<TimeRange>false</TimeRange>
<StartDateTimeOffset>false</StartDateTimeOffset>
<EndDateTimeOffset>false</EndDateTimeOffset>
<DayOfWeekConstraint>false</DayOfWeekConstraint>
<ActiveUserRequirement>false</ActiveUserRequirement>
<ActiveUserType>false</ActiveUserType>
<Whose>false</Whose>
<PreActionCacheDownload>false</PreActionCacheDownload>
<Reapply>false</Reapply>
<ReapplyLimit>false</ReapplyLimit>
<RetryCount>false</RetryCount>
<RetryWait>false</RetryWait>
<TemporalDistribution>false</TemporalDistribution>
<ContinueOnErrors>false</ContinueOnErrors>
<PostActionBehavior>
<Behavior>false</Behavior>
<AllowCancel>false</AllowCancel>
<Deadline>false</Deadline>
<Title>false</Title>
<Text>false</Text>
</PostActionBehavior>
<IsOffer>false</IsOffer>
<AnnounceOffer>false</AnnounceOffer>
<OfferCategory>false</OfferCategory>
<OfferDescriptionHTML>false</OfferDescriptionHTML>
</SettingsLocks>
<IsUrgent>false</IsUrgent>
</SingleAction>
</BES>
Note that I can’t use -Wait with Start-Process in the Powershell script, because the AutoCAD installer never returns a code that it is finished, so it would sit there forever. Instead I have to launch the process and let the Powershell script finish. That’s why I don’t want a completion notification for the user.
What is the text of the message you’re seeing? Is it displayed in a window where the use must acknowledge it, or is it a balloon popup from the BigFix Tray icon?
There is a task that can set some of the Balloon behavior but I am not sure that it will remove the messages entirely: Fixlet ID# 486 BES Client Setting: Client UI Balloon Mode Selection
“NoBalloon” Mode: If “NoBalloon” Mode is enabled, all messages will be displayed in the messaging dialog box.
I also wonder whether it might be related to _BESClient_ActionManager_HistoryModeUser
The default is to only show interfaces for messages with a UI. Can you check this value on some of the clients?
Viking, I do have other BigFix dialog windows appearing for messages to user. If no balloon is selected, then I assume the message for completion will still be displayed, just in a BigFix window instead?