A new Flexera Community experience is coming on November 18th, click here for more information.
Hi,
I've followed the instruction on how Update powershell app deployment toolit. https://docs.flexera.com/adminstudio2022r2sp1/Content/helplibrary/UpdatePowerApp.htm#applicationcatalogs_3719179812_3150904
However the variable {UnInstallPackage} is not reflecting the correct value when replaced. it translate to a mix of {InstallPackage} and {UnInstallPackage}
i.e.
Execute-Process -path "$dirFiles\apache-tomcat-10.1.7.exe""$dirFiles\Uninstall.exe" -Parameters "/S -ServiceName=""Tomcat10"""
as you can see from above the commandline to install is appended by the commandline to uninstall. Is this a known issue? Thanks.
Cheers,
Man
Mar 31, 2023 03:13 AM
Hi Man,
This looks to be a bug that is planned to be addressed in the next release.
Apr 14, 2023 11:55 AM
Hi Man,
Can you attach your modified Deploy-Application.ps1 template you are pointing to from the Template Directory for Wrap Options (Application Manager > Options >Wrap Options)
Also, in your example given, is it from the resultant wrapped package ps1?
Given i.e. Execute-Process -path "$dirFiles\apache-tomcat-10.1.7.exe""$dirFiles\Uninstall.exe" -Parameters "/S -ServiceName=""Tomcat10"""
Apr 04, 2023 03:35 PM
Regardless of using a default template or customizing my own it has the same result. I have attached a custom ps1 that i use. Note that this only happens when the installer is an EXE/Legacy, if the installer is MSI it works well.
TemplatePS.PNG - Is the initial template with variable
MSIResult.PNG - MSI. Works as expected
ExeResult2.PNG and ExeResult1.PNG - this are sample for exe.
Apr 04, 2023 09:06 PM
Hi Man,
When wrapping the package, the first dialog asks for the Uninstallation Parameters. By default, it populates it with the entire Uninstall Command Line from the .exe Deployment Data->Programs of the .exe. When prompted for the Parameters you can clear it out or put what is needed. That should affect the Execute-Process with the incorrectly appended values. That may be what you're looking for.
We hope that helps.
Apr 05, 2023 03:37 PM - edited Apr 05, 2023 03:50 PM
Yes, that's what I did.
Install Parameters: "apache-tomcat-10.1.7.exe" /S /NCRC
Uninstall Parameters: "%ProgramFilesX64%Apache Software Foundation\Tomcat 10.1\Uninstall.exe" /S -ServiceName="Tomcat10"
but still the uninstall command-line is incorrectly showing in the Deploy-Application.ps1, please see below.
'Execute-Process -path "$dirFiles\apache-tomcat-10.1.7.exe""$dirFiles\Uninstall.exe" -Parameters "/S -ServiceName=""Tomcat10"""'
Apr 05, 2023 07:57 PM
Hi Man,
We look to be using the entire field as a parameter rather than using it as an entire uninstall string. So it looks like we're appending it to base .exe instead of using it entirely for the execute-process. I'll check with our side on what the intention should be and what can be done.
Apr 13, 2023 03:51 PM
Hi Man,
This looks to be a bug that is planned to be addressed in the next release.
Apr 14, 2023 11:55 AM