I have the Druva Insync app that I need to uninstall from all devices and reinstall a new version but I need to add to the installation command the token to reactive the application when I used the command below it is not working.
Execute-MSI -Action Install -Path 'inSync7.1.0.msi' -Parameters 'SERVERLIST="www.druva.com:XXX" TOKENV2='TOKEN NUMBER' REPLACE_DEVICEV2="Yes" HEADLESS="1" '
Is it possible to use this command or it will give an error too?
msiexec /i "inSync7.1.0.msi" SERVERLIST="www.druva.com:XXX" TOKENV2='TOKEN NUMBER' REPLACE_DEVICEV2="Yes" HEADLESS="1"
Don’t use msiexec directly in PSADT. You won’t get any logging of msiexec in the PSADT log file.
As for your command, try this:
Execute-MSI -Action Install -Path 'inSync7.1.0.msi' -Parameters 'SERVERLIST=www.druva.com:XXX TOKENV2="TOKEN NUMBER" REPLACE_DEVICEV2="Yes" HEADLESS=1 '
If you still have an error, post it here so we can take better guesses.
Thanks,
I am using Intune to push PSADT and still gives me an error after I change the command. Error is
App installation failed
8/28/2023 10:42:38 AM
Hide details
Error code: 0x80070643
Fatal error during installation
Suggested remediation
A Microsoft Windows Installer failure occurred. Enable Windows Installer verbose logging. Then retry the installation to capture error details.
So now we have to force MSI create a log file. This should make the MSI log file appear in the same folder as PSADT’s log file.
Execute-MSI -Action Install -Path 'inSync7.1.0.msi' -Parameters "SERVERLIST=www.druva.com:XXX TOKENV2=`"TOKEN NUMBER`" REPLACE_DEVICEV2=`"Yes`" HEADLESS=1 /L*V `"$configToolkitLogDir\inSync7.1.0_msi.log`" "
If you haven’t touched the PSADT XML file, the PSADT log file should be in C:\Windows\Logs\Software\
hi,
as it is a MSI, do in the pre install a
Remove-MSIApplications -Name 'insync'
and in the install
Execute-MSI -Action Install -Path 'inSync7.1.0.msi' -Parameters 'SERVERLIST="www.druva.com:XXX" TOKENV2='TOKEN NUMBER' REPLACE_DEVICEV2="Yes" HEADLESS="1"'
At first glance, I’d say your issue is with the quoting. Your original -Parameter
string mixes single and double quotes in a way that appears broken. If you use That Annoying Guy’s suggested replacement, I think it might still broken since some items have quotes, some don’t. Yes, installers can be picky about quotes so you may indeed need to use quotes for some and not for others, but I’d start with using quotes for all.
Sticking TAG’s string into a variable to see how PoSh interprets it:
$Test = 'SERVERLIST=www.druva.com:XXX TOKENV2="TOKEN NUMBER" REPLACE_DEVICEV2="Yes" HEADLESS=1 '
sets $Test
to:
SERVERLIST=www.druva.com:XXX TOKENV2="TOKEN NUMBER" REPLACE_DEVICEV2="Yes" HEADLESS=1
(second and third values use quotes, first and fourth don’t)
I suggest you try this instead:
' SERVERLIST="www.druva.com:XXX" TOKENV2="TOKEN NUMBER" REPLACE_DEVICEV2="Yes" HEADLESS="1" '
If that still no worky, you might need to escape the quote marks with a backtick (`). I don’t know how to show that here, though, because the markup engine on this page steals the backticks for its own formatting.
I am able to fix the issue and the application is uninstalled and reinstalled only when I run Deploy-Application.exe locally on the device. When I run it through Intune it does the installation but the application never runs. It is odd.
Install command is:
powershell.exe -WindowStyle Hidden -Executionpolicy Bypass -file .\Deploy-Application.ps1
I think there maybe some confusion here (or is it just me?)
I am able to fix the issue and the application is uninstalled and reinstalled only when I run Deploy-Application.exe locally on the device. When I run it through Intune it does the installation but the application never runs. It is odd.
Install command is:
powershell.exe -WindowStyle Hidden -Executionpolicy Bypass -file .\Deploy-Application.ps1
Are you deploying it as System from Intune?
e.g.
Your Install command when run locally might look like that, but when sent from Intune it will be different to that.
I install Druva Insync via their msi installer packaged into an Intunewin file (i.e. without the need to use PSADT), my install command is:
msiexec /i "Druva-inSync_Setup.msi" /qn /log C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\Druva_install.log
I’d suggest that if you are using PSADT your install command from Intune would likely be:
Deploy-Application.exe -DeploymentType "Install"
However, if you want the user to actually see the messages or interact with the install process (served by the PSADT) it would be:
ServiceUI.exe -Process:explorer.exe Deploy-Application.exe -DeploymentType "Install"
N.B. This assumes you package the ServiceUi.exe (from MDT) in the root of the IntuneWin file
P.S. Unless your Druva Insync version is very old you can usually install the msi straight over an existing install - it’s not caused us (or our users) any issues
Any help?
Thanks for your message. My main point is to Uninstall the old version and Install the new Version using Intune as a silent deployment. the problem with PSADT is not active the token
Error:
[09-05-2023 09:16:56.533] [Installation] [Execute-Process] :: Execution failed with exit code [1635]: This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
Your error message seems to infer it can not find the file
[09-05-2023 09:16:56.533] [Installation] [Execute-Process] :: Execution failed with exit code [1635]: This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
I suspect your Deploy-Application.ps1 script either can not find the file or it is corrupt or it does not understand your command line.
Can you paste the install section of your Deploy-Application.ps1 here so we may assist?
The Application is installed but the problem is the application not active
This command installs the application only and does not active the Servlist, TokenV2
Execute-MSI -Action 'Install' -Path 'inSync7.1.0.msi' -Parameter 'SERVERLIST="cloud.druva.com:443", TOKENV2="TOKEN NUMBER HERE", REPLACE_DEVICEV2="Yes", HEADLESS="1"'
Is it way to install the application using .bat file?
I think that is because you have a typo in your command - a missing ‘s’ on -Parameter
You have:
Execute-MSI -Action 'Install' -Path 'inSync7.1.0.msi' -Parameter 'SERVERLIST="cloud.druva.com:443", TOKENV2="TOKEN NUMBER HERE", REPLACE_DEVICEV2="Yes", HEADLESS="1"'
It should be:
Execute-MSI -Action 'Install' -Path 'inSync7.1.0.msi' -Parameters 'SERVERLIST="cloud.druva.com:443", TOKENV2="TOKEN NUMBER HERE", REPLACE_DEVICEV2="Yes", HEADLESS="1"'
1 Like