Documente Academic
Documente Profesional
Documente Cultură
[string]$relname,
[Parameter(Mandatory=$true)]
[string]$flavor
)
$key = 'HKLM:\SOFTWARE\WOW6432Node\Wizards of the Coast\' + $relname
Write-Host "Checking Key $key"
if (test-path $key) {
$pathProperty = "Path"
$rootdir = $appdir.split(":").Get(0)
$rootdir = $rootdir + ":\"
if ($rootdir -eq $appdir) {
AI_SetMsiProperty ROOT_ERROR "true"
}
elseif (($appdir -notlike "*MTGA*") -and ($appdir -no
Action start 17:11:46: AI_DATA_SETTER_3.
MSI (s) (1C:A4) [17:11:46:364]: Doing action: SetTargetDirIfInstalled
Action ended 17:11:46: AI_DATA_SETTER_3. Return value 1.
MSI (s) (1C:24) [17:11:46:384]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSIA31F.tmp, Entrypoint: RunPowerShellFileScript
MSI (s) (1C!88) [17:11:47:130]: PROPERTY CHANGE: Adding APPDIR property. Its value
is 'F:\Juegos\MTGArena\'.
MSI (s) (1C!88) [17:11:47:130]: PROPERTY CHANGE: Modifying TARGETLOCKED property.
Its current value is 'FALSE'. Its new value: 'TRUE'.
Action start 17:11:46: SetTargetDirIfInstalled.
Dumping PowerShell invoke log ...
--> Found PowerShell path:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
--> PowerShell Script Execution Result Code: 0
MSI (s) (1C!88) [17:11:47:131]: PROPERTY CHANGE: Adding POWERSHELL_EXECUTION_LOG
property. Its value is 'Checking Key HKLM:\SOFTWARE\WOW6432Node\Wizards of the
Coast\MTGArena
appDir: F:\Juegos\MTGArena\
'.
--> PowerShell Script Execution log:
Checking Key HKLM:\SOFTWARE\WOW6432Node\Wizards of the Coast\MTGArena
appDir: F:\Juegos\MTGArena\
)
$key = 'HKLM:\SOFTWARE\WOW6432Node\Wizards of the Coast\' + $relname
Write-Host "Checking Key $key"
if (test-path $key) {
$pathProperty = "Path"
$rootdir = $appdir.split(":").Get(0)
$rootdir = $rootdir + ":\"
if ($rootdir -eq $appdir) {
AI_SetMsiProperty ROOT_ERROR "true"
}
elseif (($appdir -notlike "*MTGA*") -and (
Action start 17:11:47: AI_DATA_SETTER_4.
MSI (s) (1C:A4) [17:11:47:133]: Doing action: VerifyTargetDir
Action ended 17:11:47: AI_DATA_SETTER_4. Return value 1.
MSI (s) (1C:E8) [17:11:47:152]: Invoking remote custom action. DLL:
C:\Windows\Installer\MSIA61D.tmp, Entrypoint: RunPowerShellFileScript
MSI (s) (1C!48) [17:11:47:172]: PROPERTY CHANGE: Deleting POWERSHELL_EXECUTION_LOG
property. Its current value is 'Checking Key HKLM:\SOFTWARE\WOW6432Node\Wizards of
the Coast\MTGArena
appDir: F:\Juegos\MTGArena\
'.
Action start 17:11:47: VerifyTargetDir.
Dumping PowerShell invoke log ...
--> Found PowerShell path:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
--> PowerShell Script Execution Result Code: 0
--> PowerShell Script Execution log:
try
{
$commonDesktop = "$env:Public\Desktop"
$commonFile=$commonDesktop + '\' + $shortcutName + '.lnk'
Write-Host "Testing Path for shortcut $file"
$userDesktop = [environment]::GetFolderPath("DesktopDirectory")
$file=$userDesktop + '\' + $shortcutName + '.lnk'
Write-H
Action start 17:11:47: AI_DATA_SETTER_9.
MSI (s) (1C:A4) [17:11:47:710]: Doing action: AI_DATA_SETTER_8
Action ended 17:11:47: AI_DATA_SETTER_9. Return value 1.
MSI (s) (1C:A4) [17:11:47:711]: PROPERTY CHANGE: Modifying CustomActionData
property. Its current value is 'Flags#1#Script#function Delete-DuplicateDesktopIcon
{
Param(
$shortcutName
)
try
{
$commonDesktop = "$env:Public\Desktop"
$commonFile=$commonDesktop + '\' + $shortcutName + '.lnk'
Write-Host "Testing Path for shortcut $file"
$userDesktop = [environment]::GetFolderPath("DesktopDirectory")
$file=$userDesktop + '\' + $shortcutName + '.lnk'
Write-Host "Testing Path for shortcut $file"
if (Test-Path ($commonFile) )
{
if (Test-Path ($file) )
{
Write-Host "Removing duplicate shortcut $file"
Remove-Item $file
}
}
}
catch
{
Write-Host "FAILED TO Delete Duplicate desktop Icon"
}
}
$shortcutName = AI_GetMsiProperty ShortcutName
Write-Host "Checking for Duplicate ShortcutName: $shortcutName"
'.
--> PowerShell Script Execution log:
Icon location: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
AppDir: F:\Juegos\MTGArena\
ShortCut: MTG Arena
New Icon: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
Checking for commonDesktop Shortcut at: C:\Users\Public\Desktop\MTG Arena.lnk
Updating commonDesktop Icon Location for C:\Users\Public\Desktop\MTG Arena.lnk
New Icon: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
Checking for userDesktopShortcut Shortcut at: C:\Users\Wharrgarble\Desktop\MTG
Arena.lnk
Checking for programsDesktopShortcut Shortcut at:
C:\Users\Wharrgarble\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MTG
Arena\MTG Arena.lnk
Failed to Set CommonPrograms Icon Location
'.
Action start 17:11:48: RemoveDuplicateDesktopIcon.
Dumping PowerShell invoke log ...
--> Found PowerShell path:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
--> PowerShell Script Execution Result Code: 0
MSI (s) (1C!D8) [17:11:48:948]: PROPERTY CHANGE: Adding POWERSHELL_EXECUTION_LOG
property. Its value is 'Icon location:
F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
AppDir: F:\Juegos\MTGArena\
ShortCut: MTG Arena
New Icon: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
Checking for commonDesktop Shortcut at: C:\Users\Public\Desktop\MTG Arena.lnk
Updating commonDesktop Icon Location for C:\Users\Public\Desktop\MTG Arena.lnk
New Icon: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
Checking for userDesktopShortcut Shortcut at: C:\Users\Wharrgarble\Desktop\MTG
Arena.lnk
Checking for programsDesktopShortcut Shortcut at:
C:\Users\Wharrgarble\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MTG
Arena\MTG Arena.lnk
Failed to Set CommonPrograms Icon Location
'.
--> PowerShell Script Execution log:
Icon location: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
AppDir: F:\Juegos\MTGArena\
ShortCut: MTG Arena
New Icon: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
Checking for commonDesktop Shortcut at: C:\Users\Public\Desktop\MTG Arena.lnk
Updating commonDesktop Icon Location for C:\Users\Public\Desktop\MTG Arena.lnk
New Icon: F:\Juegos\MTGArena\MTGALauncher\MTGALauncher.exe
Checking for userDesktopShortcut Shortcut at: C:\Users\Wharrgarble\Desktop\MTG
Arena.lnk
Checking for programsDesktopShortcut Shortcut at:
C:\Users\Wharrgarble\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MTG
Arena\MTG Arena.lnk
Failed to Set CommonPrograms Icon Location
[Parameter(Mandatory=$true)]
[string]$flavor
)
$key = 'HKLM:\SOFTWARE\WOW6432Node\Wizards of the Coast\' + $relname
Write-Host "Checking Key $key"
if (test-path $key) {
$path = (Get-ItemProperty -Path $key -Name "Path")
$arr = $path -split (";")