Is this a bug?

Topics: Archive - Toolkit Extensions
Mar 24, 2015 at 11:59 PM
I noticed an anomaly in an attempt to isolate another anomaly.
## Build the Installation Name
If ($appArch) {
    [string]$installName = $appVendor + '_' + $appName + '_' + $appVersion + '_' + $appArch + '_' + $appLang + '_' + $appRevision
}
Else {
    [string]$installName = $appVendor + '_' + $appName + '_' + $appVersion + '_' + $appLang + '_' + $appRevision
}
[string]$installName = $installName.Trim('_') -replace '[_]+','_'
should resolve to (at least it does initially)
PS_Wireshark_1.12.4_EN_01
and if that is correct then
Write-Log -Message "[Custom-logging] :: [$installName] :: -CheckExist parameter was applied. Proceeding, please wait."
should resolve to
[03-24-2015 18:35:05.848] [Pre-Uninstallation] :: [Custom-logging] :: [PS_Wireshark_1.12.4_EN_01] :: -CheckExist parameter was applied. Proceeding, please wait.
instead it resolved to
[03-24-2015 18:35:05.848] [Pre-Uninstallation] :: [Custom-logging] :: [@{InstallSource=; UninstallString="C:\Program Files\Wireshark\uninstall.exe"; Is64BitApplication=False; ProductCode=Wireshark; InstallLocation=C:\Program Files\Wireshark; Publisher=The Wireshark developer community, http://www.wireshark.org; InstallDate=; DisplayVersion=1.12.4; DisplayName=Wireshark 1.12.4 (64-bit)}] :: -CheckExist parameter was applied. Proceeding, please wait.
When called via a custom function in the AppDeployToolkitExtensions.ps1
Mar 25, 2015 at 12:07 AM
Disregard. I recycled the wrong variable. Problem solved.
Marked as answer by yralexandre on 3/24/2015 at 4:07 PM