@@ -14,7 +14,7 @@ Creates a new folder containing a template front end and module folder, ready to
1414``` powershell
1515New-ADTTemplate [[-Destination] <String>] [[-Name] <String>] [[-Version] <Int32>] [[-LauncherName] <String>]
1616 [[-ExcludeContent] <String[]>] [[-SessionProperties] <IDictionary>] [[-Config] <IDictionary>]
17- [[-PreInstallScriptBlock] <ScriptBlock>] [[-InstallScriptBlock] <ScriptBlock>]
17+ [[-Strings] <IDictionary>] [[- PreInstallScriptBlock] <ScriptBlock>] [[-InstallScriptBlock] <ScriptBlock>]
1818 [[-PostInstallScriptBlock] <ScriptBlock>] [[-PreUninstallScriptBlock] <ScriptBlock>]
1919 [[-UninstallScriptBlock] <ScriptBlock>] [[-PostUninstallScriptBlock] <ScriptBlock>]
2020 [[-PreRepairScriptBlock] <ScriptBlock>] [[-RepairScriptBlock] <ScriptBlock>]
@@ -87,6 +87,14 @@ Creates a new v4 template with custom icons copied to Assets, with config.psd1 u
8787
8888### EXAMPLE 8
8989
90+ ``` powershell
91+ New-ADTTemplate -Destination 'C:\Temp' -Strings @{ en = @{ BalloonTip = @{ Start = @{ Install = 'Contoso App installation started.' } } }; fr = @{ BalloonTip = @{ Start = @{ Install = 'Contoso App : installation en cours.' } } } }
92+ ```
93+
94+ Creates a new v4 template with the English and French balloon tip text for the start of an installation overridden.
95+
96+ ### EXAMPLE 9
97+
9098``` powershell
9199New-ADTTemplate -Destination 'C:\Temp' -SessionProperties @{ AppVendor = 'Contoso'; AppName = 'MyApp'; AppVersion = '6.7' } -Files 'C:\Installers\Setup.msi' -InstallScriptBlock { Start-ADTMsiProcess -Action Install -FilePath 'Setup.msi' } -UninstallScriptBlock { Start-ADTMsiProcess -Action Uninstall -FilePath 'Setup.msi' }
92100```
@@ -167,7 +175,7 @@ Accept wildcard characters: False
167175Specifies one or more optional content categories to omit from the generated template.
168176Valid values are Assets, Config, Extensions, Files, Module, Strings and SupportFiles.
169177All content is included by default.
170- You cannot exclude Files, SupportFiles or Config if specifying those items as separate parameters.
178+ You cannot exclude Files, SupportFiles, Config or Strings if specifying those items as separate parameters.
171179You can exclude Assets while specifying -Assets to omit the default assets.
172180Excluding Module omits the bundled PSAppDeployToolkit module for deployments that provide it externally.
173181
@@ -221,6 +229,30 @@ Accept pipeline input: False
221229Accept wildcard characters : False
222230` ` `
223231
232+ ### -Strings
233+
234+ A dictionary of language codes to key-value pairs to override or add to the generated strings.psd1 files.
235+ Each top-level key must be a language code (e.g.
236+ en, fr, pt-BR), where en targets Strings\s trings.psd1 and every other language targets Strings<language>\s trings.psd1.
237+ A language that the module does not ship is created from a copy of the English string table with the supplied values applied on top.
238+ The value for each language must mirror the string table's nested hashtable layout (e.g.
239+ @\{ en = @\{ BalloonTip = @\{ Start = @\{ Install = 'Install has started.' \} \} \} \} ).
240+ Language codes and keys are matched case-insensitively; specifying the same language or key more than once with differing case is an error.
241+ Existing keys are overridden in place.
242+ New keys that do not exist in the default string table are appended at the end of the relevant hashtable level.
243+
244+ ` ` ` yaml
245+ Type : IDictionary
246+ Parameter Sets : (All)
247+ Aliases :
248+
249+ Required : False
250+ Position : 8
251+ Default value : None
252+ Accept pipeline input : False
253+ Accept wildcard characters : False
254+ ` ` `
255+
224256### -PreInstallScriptBlock
225257
226258A ScriptBlock whose content will replace the Pre-Install phase of the Install-ADTDeployment function in the generated Invoke-AppDeployToolkit.ps1.
@@ -232,7 +264,7 @@ Parameter Sets: (All)
232264Aliases :
233265
234266Required : False
235- Position : 8
267+ Position : 9
236268Default value : None
237269Accept pipeline input : False
238270Accept wildcard characters : False
@@ -249,7 +281,7 @@ Parameter Sets: (All)
249281Aliases :
250282
251283Required : False
252- Position : 9
284+ Position : 10
253285Default value : None
254286Accept pipeline input : False
255287Accept wildcard characters : False
@@ -266,7 +298,7 @@ Parameter Sets: (All)
266298Aliases :
267299
268300Required : False
269- Position : 10
301+ Position : 11
270302Default value : None
271303Accept pipeline input : False
272304Accept wildcard characters : False
@@ -283,7 +315,7 @@ Parameter Sets: (All)
283315Aliases :
284316
285317Required : False
286- Position : 11
318+ Position : 12
287319Default value : None
288320Accept pipeline input : False
289321Accept wildcard characters : False
@@ -300,7 +332,7 @@ Parameter Sets: (All)
300332Aliases :
301333
302334Required : False
303- Position : 12
335+ Position : 13
304336Default value : None
305337Accept pipeline input : False
306338Accept wildcard characters : False
@@ -317,7 +349,7 @@ Parameter Sets: (All)
317349Aliases :
318350
319351Required : False
320- Position : 13
352+ Position : 14
321353Default value : None
322354Accept pipeline input : False
323355Accept wildcard characters : False
@@ -334,7 +366,7 @@ Parameter Sets: (All)
334366Aliases :
335367
336368Required : False
337- Position : 14
369+ Position : 15
338370Default value : None
339371Accept pipeline input : False
340372Accept wildcard characters : False
@@ -351,7 +383,7 @@ Parameter Sets: (All)
351383Aliases :
352384
353385Required : False
354- Position : 15
386+ Position : 16
355387Default value : None
356388Accept pipeline input : False
357389Accept wildcard characters : False
@@ -368,7 +400,7 @@ Parameter Sets: (All)
368400Aliases :
369401
370402Required : False
371- Position : 16
403+ Position : 17
372404Default value : None
373405Accept pipeline input : False
374406Accept wildcard characters : False
@@ -386,7 +418,7 @@ Parameter Sets: (All)
386418Aliases :
387419
388420Required : False
389- Position : 17
421+ Position : 18
390422Default value : None
391423Accept pipeline input : False
392424Accept wildcard characters : True
@@ -403,7 +435,7 @@ Parameter Sets: (All)
403435Aliases :
404436
405437Required : False
406- Position : 18
438+ Position : 19
407439Default value : None
408440Accept pipeline input : False
409441Accept wildcard characters : True
@@ -420,7 +452,7 @@ Parameter Sets: (All)
420452Aliases :
421453
422454Required : False
423- Position : 19
455+ Position : 20
424456Default value : None
425457Accept pipeline input : False
426458Accept wildcard characters : True
0 commit comments