Azure / Azure/RDS-Templates

FSLogix.ps1 failing to install FSLogix following download.

Open
#761 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
524
Forks
610
PR merge metrics
No merged PRs in 30d

Description

The start-process in line 70 of FSLogix.ps1 fails to start as per below, due the archive containing the base folder with the version number.

Below logs are from a run today.

`PACKER OUT azure-arm: VERBOSE: Performing the operation "Expand-Archive" on target "C:\temp\wvd\FSLogixAppsSetup.zip".
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\fslogix.adml'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\fslogix.admx'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\README.txt'.
PACKER OUT azure-arm: VERBOSE: Adding 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\Win32\'.
PACKER OUT azure-arm: VERBOSE: Adding 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\Win32\Release\'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\Win32\Release\FSLogixAppsJavaRuleEditorSetup.exe'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\Win32\Release\FSLogixAppsRuleEditorSetup.exe'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\Win32\Release\FSLogixAppsSetup.exe'.
PACKER OUT azure-arm: VERBOSE: Adding 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\x64\'.
PACKER OUT azure-arm: VERBOSE: Adding 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\x64\Release\'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\x64\Release\FSLogixAppsJavaRuleEditorSetup.exe'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\x64\Release\FSLogixAppsRuleEditorSetup.exe'.
PACKER OUT azure-arm: VERBOSE: Created 'C:\temp\wvd\FSLogix\FSLogix_Apps_2.9.8612.60056\x64\Release\FSLogixAppsSetup.exe'.
PACKER OUT azure-arm: AVD AIB Customization - Install FSLogix : UnZip of FSLogix complete
PACKER OUT azure-arm: AVD AIB Customization - Install FSLogix : Starting to install FSLogix
PACKER OUT azure-arm: Start-Process : This command cannot be run due to the error: The system cannot find the file specified.
PACKER OUT azure-arm: At C:\AVDImage\enableFslogix.ps1:70 char:26
PACKER OUT azure-arm: + $fslogix_deploy_status = Start-Process `
PACKER OUT azure-arm: + ~~~~~~~~~~~~~~~
PACKER OUT azure-arm: + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException
PACKER OUT azure-arm: + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
PACKER OUT azure-arm:
PACKER OUT azure-arm: AVD AIB Customization - Install FSLogix : Configure FSLogix Profile Settings
`

As can be seen from the extraction logs above the error itself, the archive is downloaded and extracted how Line 70 of the script does not reference the version folder (and also contains a hardcoded reference to the temp folder instead of using the $LocalWVDpath variable

Contributor guide

No contributing guide indexed for this repository

Research direction

Open FSLogix.ps1 and inspect the Start-Process call at line 70, comparing its hardcoded path with $LocalWVDpath and the extracted versioned directory shown in the logs. Reproduce the installation through the Azure image build and confirm that FSLogixAppsSetup.exe is found and installation proceeds without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.