Skip to content

Commit f46faf8

Browse files
committed
Add Config + String variable mappings
1 parent c0807ed commit f46faf8

File tree

1 file changed

+67
-68
lines changed

1 file changed

+67
-68
lines changed

src/PSAppDeployToolkit.Tools/PSScriptAnalyzer/Measure-ADTCompatibility.psm1

Lines changed: 67 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -85,76 +85,76 @@ function Measure-ADTCompatibility
8585
ButtonRightText = $null
8686
CleanupBlockedApps = $null
8787
closeAppsCountdownGlobal = $null
88-
configBalloonTextComplete = $null
89-
configBalloonTextError = $null
90-
configBalloonTextFastRetry = $null
91-
configBalloonTextRestartRequired = $null
92-
configBalloonTextStart = $null
93-
configBannerIconBannerName = $null
88+
configBalloonTextComplete = '(Get-ADTStringTable).BalloonText.Complete'
89+
configBalloonTextError = '(Get-ADTStringTable).BalloonText.Error'
90+
configBalloonTextFastRetry = '(Get-ADTStringTable).BalloonText.FastRetry'
91+
configBalloonTextRestartRequired = '(Get-ADTStringTable).BalloonText.RestartRequired'
92+
configBalloonTextStart = '(Get-ADTStringTable).BalloonText.Start'
93+
configBannerIconBannerName = '(Get-ADTConfig).Assets.Banner'
9494
configBannerIconFileName = $null
95-
configBannerLogoImageFileName = $null
96-
configBlockExecutionMessage = $null
97-
configClosePromptButtonClose = $null
98-
configClosePromptButtonContinue = $null
99-
configClosePromptButtonContinueTooltip = $null
100-
configClosePromptButtonDefer = $null
101-
configClosePromptCountdownMessage = $null
102-
configClosePromptMessage = $null
95+
configBannerLogoImageFileName = '(Get-ADTConfig).Assets.Logo'
96+
configBlockExecutionMessage = '(Get-ADTStringTable).BlockExecution.Message'
97+
configClosePromptButtonClose = '(Get-ADTStringTable).ClosePrompt.ButtonClose'
98+
configClosePromptButtonContinue = '(Get-ADTStringTable).ClosePrompt.ButtonContinue'
99+
configClosePromptButtonContinueTooltip = '(Get-ADTStringTable).ClosePrompt.ButtonContinueTooltip'
100+
configClosePromptButtonDefer = '(Get-ADTStringTable).ClosePrompt.ButtonDefer'
101+
configClosePromptCountdownMessage = '(Get-ADTStringTable).ClosePrompt.CountdownMessage'
102+
configClosePromptMessage = '(Get-ADTStringTable).ClosePrompt.Message'
103103
configConfigDate = $null
104104
configConfigDetails = $null
105105
configConfigVersion = $null
106-
configDeferPromptDeadline = $null
107-
configDeferPromptExpiryMessage = $null
108-
configDeferPromptRemainingDeferrals = $null
109-
configDeferPromptWarningMessage = $null
110-
configDeferPromptWelcomeMessage = $null
111-
configDeploymentTypeInstall = $null
112-
configDeploymentTypeRepair = $null
113-
configDeploymentTypeUnInstall = $null
114-
configDiskSpaceMessage = $null
115-
configInstallationDeferExitCode = $null
116-
configInstallationPersistInterval = $null
117-
configInstallationPromptToSave = $null
118-
configInstallationRestartPersistInterval = $null
119-
configInstallationUIExitCode = $null
120-
configInstallationUILanguageOverride = $null
121-
configInstallationUITimeout = $null
122-
configInstallationWelcomePromptDynamicRunningProcessEvaluation = $null
123-
configInstallationWelcomePromptDynamicRunningProcessEvaluationInterval = $null
124-
configMSIInstallParams = $null
125-
configMSILogDir = $null
126-
configMSILoggingOptions = $null
127-
configMSIMutexWaitTime = $null
128-
configMSISilentParams = $null
129-
configMSIUninstallParams = $null
130-
configProgressMessageInstall = $null
131-
configProgressMessageRepair = $null
132-
configProgressMessageUninstall = $null
133-
configRestartPromptButtonRestartLater = $null
134-
configRestartPromptButtonRestartNow = $null
135-
configRestartPromptMessage = $null
136-
configRestartPromptMessageRestart = $null
137-
configRestartPromptMessageTime = $null
138-
configRestartPromptTimeRemaining = $null
139-
configRestartPromptTitle = $null
140-
configShowBalloonNotifications = $null
141-
configToastAppName = $null
142-
configToastDisable = $null
143-
configToolkitCachePath = $null
144-
configToolkitCompressLogs = $null
145-
configToolkitLogAppend = $null
146-
configToolkitLogDebugMessage = $null
147-
configToolkitLogDir = $null
148-
configToolkitLogMaxHistory = $null
149-
configToolkitLogMaxSize = $null
150-
configToolkitLogStyle = $null
151-
configToolkitLogWriteToHost = $null
152-
configToolkitRegPath = $null
153-
configToolkitRequireAdmin = $null
154-
configToolkitTempPath = $null
155-
configToolkitUseRobocopy = $null
156-
configWelcomePromptCountdownMessage = $null
157-
configWelcomePromptCustomMessage = $null
106+
configDeferPromptDeadline = '(Get-ADTStringTable).DeferPrompt.Deadline'
107+
configDeferPromptExpiryMessage = '(Get-ADTStringTable).DeferPrompt.ExpiryMessage'
108+
configDeferPromptRemainingDeferrals = '(Get-ADTStringTable).DeferPrompt.RemainingDeferrals'
109+
configDeferPromptWarningMessage = '(Get-ADTStringTable).DeferPrompt.WarningMessage'
110+
configDeferPromptWelcomeMessage = '(Get-ADTStringTable).DeferPrompt.WelcomeMessage'
111+
configDeploymentTypeInstall = '(Get-ADTStringTable).DeploymentType.Install'
112+
configDeploymentTypeRepair = '(Get-ADTStringTable).DeploymentType.Repair'
113+
configDeploymentTypeUnInstall = '(Get-ADTStringTable).DeploymentType.Uninstall'
114+
configDiskSpaceMessage = '(Get-ADTStringTable).DiskSpace.Message'
115+
configInstallationDeferExitCode = '(Get-ADTConfig).UI.DeferExitCode'
116+
configInstallationPersistInterval = '(Get-ADTConfig).UI.DefaultPromptPersistInterval'
117+
configInstallationPromptToSave = '(Get-ADTConfig).UI.PromptToSaveTimeout'
118+
configInstallationRestartPersistInterval = '(Get-ADTConfig).UI.RestartPromptPersistInterval'
119+
configInstallationUIExitCode = '(Get-ADTConfig).UI.DefaultExitCode'
120+
configInstallationUILanguageOverride = '(Get-ADTConfig).UI.LanguageOverride'
121+
configInstallationUITimeout = '(Get-ADTConfig).UI.DefaultTimeout'
122+
configInstallationWelcomePromptDynamicRunningProcessEvaluation = '(Get-ADTConfig).UI.DynamicProcessEvaluation'
123+
configInstallationWelcomePromptDynamicRunningProcessEvaluationInterval = '(Get-ADTConfig).UI.DynamicProcessEvaluationInterval'
124+
configMSIInstallParams = '(Get-ADTConfig).MSI.InstallParams'
125+
configMSILogDir = 'if ($isAdmin) { (Get-ADTConfig).MSI.LogPath } else { (Get-ADTConfig).MSI.LogPathNoAdminRights }'
126+
configMSILoggingOptions = '(Get-ADTConfig).MSI.LoggingOptions'
127+
configMSIMutexWaitTime = '(Get-ADTConfig).MSI.MutexWaitTime'
128+
configMSISilentParams = '(Get-ADTConfig).MSI.SilentParams'
129+
configMSIUninstallParams = '(Get-ADTConfig).MSI.UninstallParams'
130+
configProgressMessageInstall = '(Get-ADTStringTable).Progress.MessageInstall'
131+
configProgressMessageRepair = '(Get-ADTStringTable).Progress.MessageRepair'
132+
configProgressMessageUninstall = '(Get-ADTStringTable).Progress.MessageUninstall'
133+
configRestartPromptButtonRestartLater = '(Get-ADTStringTable).RestartPrompt.ButtonRestartLater'
134+
configRestartPromptButtonRestartNow = '(Get-ADTStringTable).RestartPrompt.ButtonRestartNow'
135+
configRestartPromptMessage = '(Get-ADTStringTable).RestartPrompt.Message'
136+
configRestartPromptMessageRestart = '(Get-ADTStringTable).RestartPrompt.MessageRestart'
137+
configRestartPromptMessageTime = '(Get-ADTStringTable).RestartPrompt.MessageTime'
138+
configRestartPromptTimeRemaining = '(Get-ADTStringTable).RestartPrompt.TimeRemaining'
139+
configRestartPromptTitle = '(Get-ADTStringTable).RestartPrompt.Title'
140+
configShowBalloonNotifications = '(Get-ADTConfig).UI.BalloonNotifications'
141+
configToastAppName = '(Get-ADTConfig).UI.BalloonTitle'
142+
configToastDisable = '(Get-ADTConfig).UI.BalloonNotifications'
143+
configToolkitCachePath = '(Get-ADTConfig).Toolkit.CachePath'
144+
configToolkitCompressLogs = '(Get-ADTConfig).Toolkit.CompressLogs'
145+
configToolkitLogAppend = '(Get-ADTConfig).Toolkit.LogAppend'
146+
configToolkitLogDebugMessage = '(Get-ADTConfig).Toolkit.LogDebugMessage'
147+
configToolkitLogDir = 'if ($isAdmin) { (Get-ADTConfig).Toolkit.LogPath } else { (Get-ADTConfig).Toolkit.LogPathNoAdminRights }'
148+
configToolkitLogMaxHistory = '(Get-ADTConfig).Toolkit.LogMaxHistory'
149+
configToolkitLogMaxSize = '(Get-ADTConfig).Toolkit.LogMaxSize'
150+
configToolkitLogStyle = '(Get-ADTConfig).Toolkit.LogStyle'
151+
configToolkitLogWriteToHost = '(Get-ADTConfig).Toolkit.LogWriteToHost'
152+
configToolkitRegPath = '(Get-ADTConfig).Toolkit.RegPath'
153+
configToolkitRequireAdmin = '(Get-ADTConfig).Toolkit.RequireAdmin'
154+
configToolkitTempPath = 'if ($isAdmin) { (Get-ADTConfig).Toolkit.TempPath } else { (Get-ADTConfig).Toolkit.TempPathNoAdminRights }'
155+
configToolkitUseRobocopy = '(Get-ADTConfig).Toolkit.FileCopyMode -eq ''Robocopy'''
156+
configWelcomePromptCountdownMessage = '(Get-ADTStringTable).WelcomePrompt.Classic.CountdownMessage'
157+
configWelcomePromptCustomMessage = '(Get-ADTStringTable).WelcomePrompt.Classic.CustomMessage'
158158
CountdownNoHideSeconds = $null
159159
CountdownSeconds = $null
160160
currentTime = $null
@@ -186,15 +186,14 @@ function Measure-ADTCompatibility
186186
installationStarted = $null
187187
InvocationInfo = $null
188188
invokingScript = $null
189-
IsOOBEComplete = '(Test-ADTOobeCompleted)'
189+
IsOOBEComplete = 'Test-ADTOobeCompleted'
190190
IsTaskSchedulerHealthy = $null
191191
LocalPowerUsersGroup = $null
192192
LogFileInitialized = $null
193193
loggedOnUserTempPath = $null
194194
LogicalScreenHeight = $null
195195
LogTimeZoneBias = $null
196196
mainExitCode = $null
197-
Matches = $null
198197
Message = $null
199198
MessageAlignment = $null
200199
MinimizeWindows = $null

0 commit comments

Comments
 (0)