Skip to content

Custom path Deploy and Undeploy fails when installation path does not end with application name #19

@navaneetkgd

Description

@navaneetkgd

In the last bug i raised(#5) the custom path installation was fixed. But i observed one more issue related to this.
For ex installation folder is F:\applications\applicationname\1.0 (when path ends with other than application name)

MSI installation task works fine but deploy and undeploy fails. Here Destination parameter was sent as F:\applications\applicationname\1.0 from the task.(This task powershell script Install-BTDFApplication.ps1 does not have the logic of appending ApplicationName to Destination when we specify Destination parameter) and install msi works fine.

But in UnDeploy-BTDFApplication.ps1 and Deploy-BTDFApplication.ps1 there is code to append destination ($Destination) and application name ($Name). So when we specify the parameter Destination from task as F:\applications\ the $ApplicationPath will be set to F:\applications\applicationname. So the folder 1.0 will not be set by passing any value to destination.

I think this can be fixed by the same way how MSI install task is implemented. User can send complete installation path always to both deploy and undeploy task when user wants custom install path.
Deploy-BTDFApplication.ps1 and UnDeploy-BTDFApplication.ps1 code can be modified to below approach. This won't cause any issues to user who use ProgramFiles as installation folder(incase of Destination is empty)

if (-Not $Destination) {
$Destination = $ProgramFiles $Name
}
$ApplicationPath = $Destination

So if this is implemented then user can install application to any custom path which will be very helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions