You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The win_package module does not honor the product_id parameter for .exe files whose path type is URL or UNC until after the file has been downloaded. This results in the file being re-downloaded on every run regardless of the existence of the product_id in the registry.
I believe the issue is that the $Id variable used in this statement is never defined and should instead be replaced with either $getParams.Id or $productId
After initial install, the vcredist_x64.exe file should no longer be downloaded since the specified product_id exists in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall{ca67548a-5ebe-413a-b50c-4b9ceb6d66c6}
ACTUAL RESULTS
The vcredist_x64.exe file continues to be downloaded on every run of the task, which can be observed on the remote host. However, the file is not re-installed and the task results in changed=false since the product_id is honored after the download step.
SUMMARY
The win_package module does not honor the product_id parameter for .exe files whose path type is URL or UNC until after the file has been downloaded. This results in the file being re-downloaded on every run regardless of the existence of the product_id in the registry.
I believe the issue is that the $Id variable used in this statement is never defined and should instead be replaced with either $getParams.Id or $productId
ISSUE TYPE
COMPONENT NAME
win_package
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
target OS: various versions of Windows
STEPS TO REPRODUCE
Run a task using the win_package module to install an .exe file from URL or UNC path while providing the appropriate product_id parameter.
EXPECTED RESULTS
After initial install, the vcredist_x64.exe file should no longer be downloaded since the specified product_id exists in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall{ca67548a-5ebe-413a-b50c-4b9ceb6d66c6}
ACTUAL RESULTS
The vcredist_x64.exe file continues to be downloaded on every run of the task, which can be observed on the remote host. However, the file is not re-installed and the task results in changed=false since the product_id is honored after the download step.
Initial Run:
Subsequent run:
The text was updated successfully, but these errors were encountered: