Open grag-at-work opened 3 months ago
Could you add /l*v \"%SystemRoot%\\Logs\\install-Chrome.log\"
to your msiexec line and see what the output says?
I too am trying to remove Firefox using a similar method but neither your method or C:\\Program Files\\Mozilla Firefox\\uninstall\\helper.exe /S
seems to work...
Hey Al, appreciate the idea. I actually got it to work via a different method. I've abandoned all "RUN_COMMAND" operations in favor of "RUN_POWERSHELL" but utilizing the Start-Process powershell module. Still working out some kinks, but will paste an obfuscated mostly working config below as an example.
{ "DeleteBuilder": true, "CreateBundle": true, "SkipWindowsUpdates": true, "ImageNamePrefix": "WKS_Auto", "ImageTags": [ { "Key": "Automation", "Value": "Created by automated step function" } ], "BundleNamePrefix": "WKS_Auto_Bundle", "InstallRoutine": [ ["RUN_POWERSHELL","Start-Process 'gpupdate' -ArgumentList '/force' -Wait"], ["RUN_POWERSHELL","Start-Process -FilePath 'c:\\Program Files\\Mozilla Firefox\\uninstall\\helper.exe' -ArgumentList '/s' -Wait"], ["DOWNLOAD_S3","s3://wks-automation-installer-source/notepad_plus_plus/npp.8.6.9.Installer.x64.exe","c:\\wks_automation\\notepad_plus_plus\\"], ["RUN_COMMAND","c:\\wks_automation\\notepad_plus_plus\\npp.8.6.9.Installer.x64.exe /S"], ["DOWNLOAD_S3","s3://wks-automation-installer-source/microsoft_edge/MicrosoftEdgeEnterpriseX64.msi","c:\\wks_automation\\microsoft_edge\\"], ["RUN_POWERSHELL","Start-Process 'msiexec.exe' -ArgumentList '/I c:\\wks_automation\\microsoft_edge\\MicrosoftEdgeEnterpriseX64.msi /qn' -Wait"], ["DOWNLOAD_S3","s3://wks-automation-installer-source/fslogix/fslogix.zip","c:\\wks_automation\\fslogix\\"], ["RUN_POWERSHELL","Expand-Archive c:\\wks_automation\\fslogix\\fslogix.zip -DestinationPath c:\\wks_automation\\fslogix_unzipped\\"], ["RUN_POWERSHELL","Start-Process -FilePath 'c:\\wks_automation\\fslogix_unzipped\\x64\\Release\\FSLogixAppsSetup.exe' -ArgumentList '/install /quiet /norestart' -Wait"], ["DOWNLOAD_S3","s3://wks-automation-installer-source/microsoft_edge_webview/MicrosoftEdgeWebview2Setup.exe","c:\\wks_automation\\microsoft_edge_webview\\"], ["RUN_POWERSHELL","Start-Process -FilePath 'c:\\wks_automation\\microsoft_edge_webview\\MicrosoftEdgeWebview2Setup.exe' -ArgumentList '/silent /install' -Wait"], ["DOWNLOAD_S3","s3://wks-automation-installer-source/teams//msteams.msix","c:\\wks_automation\\teams\\"], ["RUN_POWERSHELL","Start-Process 'Dism' -ArgumentList '/Online /Add-ProvisionedAppxPackage /PackagePath:c:\\wks_automation\\teams\\msteams.msix /SkipLicense' -Wait"] ] }
I have just checked my last run and the following worked
[
"RUN_COMMAND",
"\"C:\\Program Files\\Mozilla Firefox\\uninstall\\helper.exe\" /S"
],
I am also trying to get a second round of InstallRoutine to run for apps that need to be provisioned/configure prior to image capture... hitting a bit of a wall at the moment
Hello, I have two issues with image generation I am looking for advice on. Anytime I start an execution that involves a RUN_COMMAND that installs software via msiexec my build freezes at 55% before eventually erroring out. Is there anything that can be done to debug these errors? The logs in cloudwatch do not seem helpful for this unless I am missing something. Secondly, are the quotes in the RUN_COMMAND element enough to account for spaces in file paths or do I need to do something in particular to handle that? Manifest below...
{ "DeleteBuilder": true, "CreateBundle": true, "SkipWindowsUpdates": false, "ImageNamePrefix": "WKS_Auto", "ImageTags": [ { "Key": "Automation", "Value": "Created by automated step function" } ], "BundleNamePrefix": "WKS_Auto_Bundle", "InstallRoutine": [ [ "DOWNLOAD_S3", "s3://obfuscatedi/notepad_plus_plus/npp.8.6.9.Installer.x64.exe", "c:\wks_automation\notepad_plus_plus\" ], [ "RUN_COMMAND", "c:\wks_automation\notepad_plus_plus\npp.8.6.9.Installer.x64.exe /S" ], [ "DOWNLOAD_S3", "s3://obfuscated/google_chrome/googlechromestandaloneenterprise64.msi", "c:\wks_automation\google_chrome\" ], [ "RUN_COMMAND", "msiexec /i c:\wks_automation\google_chrome\googlechromestandaloneenterprise64.msi /qn" ], [ "RUN_COMMAND", "c:\Program Files\Mozilla Firefox\uninstall\helper.exe -ms" ] ] }