You are viewing limited content. For full access, please sign in.

Question

Question

Silent Install with PDQ

asked on February 18, 2020

We are trying to run a test environment with deploying the LF client 10.4.2 using PDQ with no luck,

 

under PDQ parameters we have set " -noui -iacceptlicenseagreement -log "C:\Logs\ClientInstall" INSTALLLEVEL=200 "

 

0 0

Replies

replied on July 18, 2024

I know this is very old. These steps allowed us to deploy or uninstall Laserfiche 11 using PDQ Deploy without manually copying setup files to each client computer, streamlining the deployment process across your network.
 

PDQ Steps

1. Copy the Laserfiche setup files to the PDQ Deploy repository folder on your server.

2. Open PDQ Deploy and create a new package. Add a command step to the package.

3. Specify the following command line (adjust paths according to your setup)

"\\[Server]\d$\Admin Arsenal\PDQ Deploy\Repository\Laserfiche\Laserfiche_11_New\en\WindowsClient\SetupLf.exe" -silent -noui -iacceptlicenseagreement  INSTALLLEVEL=300

4. Ensure the command is set to run as the deploy user.
5. Save the package in PDQ Deploy. Test the package deployment to ensure it installs Laserfiche correctly on client computers.
 

Similarly, to uninstall Laserfiche, I use the following commands

"C:\Program Files (x86)\Common Files\Laserfiche\Client\SetupLf.exe" /odll /remove
"C:\Program Files (x86)\Common Files\Laserfiche\Client\Setup.exe" /odll /remove

 

2 0
replied on November 19, 2024 Show version history

Hey so I am now running into the same issue of trying to uninstall with PDQ Connect/Deploy. 

For Example, if I run the install command below for 11 no problem. 



However, trying the above you had I get errors returned of 


And running another method that works running locally in elevated CMD prompt and also if I run them as commands as above work however it does work. 

I basically ran the same command as I did for the install but added -silent REMOVE=ALL parameters to each end.

If this is the only method now that works but was just curious to your uninstall syntax and how come I can't get that way to work as even with the LF 11 install seems to hang on running forever. 

Thank you 
 

0 0
replied on November 19, 2024

Hello Chris,

I don't have PDQ Connect, but here's how I implemented it. You're correct that it stopped working for me in version 11, so I switched to using PowerShell. This is how PDQ handles most of the uninstallers. I hope this information is helpful!

 

I created a new package.

Step 1: CMD step  - Stop Laserfiche if its running. Added the following commands to terminate the following applications

%SYSTEMROOT%\system32\taskkill.exe /f /im LF.exe
%SYSTEMROOT%\System32\taskkill.exe /f /im excel.exe
%SYSTEMROOT%\System32\taskkill.exe /f /im msaccess.exe
%SYSTEMROOT%\System32\taskkill.exe /f /im outlook.exe
%SYSTEMROOT%\System32\taskkill.exe /f /im winword.exe
%SYSTEMROOT%\System32\taskkill.exe /F /IM wmiprvse.exe
%SYSTEMROOT%\System32\taskkill.exe /F /IM setuplf.exe

Step 2:  Install step . But create a PowerShell file with the following content and set it as the install path.

#This will uninstall Laserfiche

$AppName = "Laserfiche *"

ForEach ( $Architecture in "SOFTWARE", "SOFTWARE\Wow6432Node" )
{ 
 $UninstallKeys = "HKLM:\$Architecture\Microsoft\Windows\CurrentVersion\Uninstall"
 if (Test-path $UninstallKeys)
 {
  $GUIDKey = Get-ItemProperty -Path "$UninstallKeys\*" | Where-Object -FilterScript { $_.DisplayName -like $AppName }
  $GUIDRealKey = $GUIDKey | select-object PSChildName -ExpandProperty PSChildName
  
  If ( $GUIDKey -ne $null -and $GuidRealKey -notlike "Laserfiche" ) {
   $GuidRealKey | ForEach-Object {
    $GUID = $_
    Write-Output "Uninstalling: $(( Get-ItemProperty "$UninstallKeys\$GUID" ).DisplayName) " 
    Start-Process -Wait -FilePath "MsiExec.exe" -ArgumentList "/X$GUID /qn /norestart"
   }
  } Else { 
   Write-Output "$AppName installation not found in: $UninstallKeys"
  }
 }
}

1 0
replied on November 19, 2024

Great I will give that a try . Do you have any recommendations for installs seemingly taking long times ? The LF software seems to be the only silent install that takes long ( took one hour for full 11 silent push ). It seemed to be taking a while on the installation of LF patches I assume from the main folder or auto downloaded . I would assume since downloading the files it shouldn’t need that many updates . 
 

thanks again 

0 0
replied on November 19, 2024

Also will the above work for uninstall for machines withLF 10 and then LF 11 and 12 installs are same syntax as you had from your original post or is there a better method now ?  Our main thing now is I’m needing to completely remove all of the LF10 “pieces” that seem to hang or get leftover and then upgrade to LF11 or 12 (preferably).  The main problems as noted besides the removal leaving pieces of the LF 10 pieces but also that the LF 11 install takes forever and I can’t get 12 to even start with testing . 

0 0
replied on February 18, 2020

So what happens when you run it?

0 0
replied on February 18, 2020

Nothing but If I run the CMD from the client machine with this command :


"\\avantesrv\ServerApps\LFClient 10.4.2\WindowsClient\SetupLF.exe" -noui -iacceptlicenseagreement -log "C:\Logs\ClientInstall" INSTALLLEVEL=200 

 

It installs without problems.

0 0
replied on February 18, 2020

Do you get logs created in the folder you specified when you try installing it through PDQ?

0 0
replied on February 18, 2020

yes,

 

 

[PID: 17460] 2020-02-18  Laserfiche Setup (C:\WINDOWS\AdminArsenal\PDQDeployRunner\service-1\exec\SetupLf.exe) Log
[PID: 17460] 16:49:39.500  Setup.exe was run with the command line:  /noui /iacceptlicenseagreement /log C:\Logs\ClientInstall INSTALLLEVEL=200
[PID: 17460] 16:49:39.500  Beginning no user interaction installation.
[PID: 17460] 16:49:39.500  Beginning MSI update check.
[PID: 17460] 16:49:39.500  No MSI update was necessary.

0 0
replied on February 18, 2020

Try the solution provided by Michael Swanson in Client installation with PDQ Deploy and use a Batch file to call the installer and pass the arguments

0 0
replied on February 20, 2020

I tried it and didn't worked.

0 0
replied on February 21, 2020

Do you have the entire Laserfiche installation in the C:\WINDOWS\AdminArsenal\PDQDeployRunner\service-1\exec folder or just SetupLF.exe? The log indicates that there was nothing to update. That could happen if the LF Client is already installed or if SetupLF can't find any MSIs to load.

1 0
replied on February 25, 2020

We do it with batch files through PDQ accounting for running processes, old versions...etc. we've probably missed something but it works so far. Each category is a step...

install prereqs

"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2010\vcredist_x86.exe" /q /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2012\vcredist_x64.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2012\vcredist_x86.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\vcredist_x64.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\vcredist_x86.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\vc_redist.x64.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\vc_redist.x86.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\update2\vc_redist.x64.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\update2\vc_redist.x86.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\update3\vc_redist.x64.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2015\update3\vc_redist.x86.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2017\VC_redist.x64.exe" /install /quiet /norestart
"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\Support\MSVC2017\VC_redist.x86.exe" /install /quiet /norestart

Kill unwanted processes

taskkill /IM "WmiPrvSE.exe" /F

Uninstall old OCR engine

"C:\Program Files (x86)\Common Files\Laserfiche\OmniPageOCR 18.5\Setup.exe" /odll /remove

Install Laserfiche 10 OCR engine

"\\server\Laserfiche\Laserfiche10.4.2_20191218\en\OCR\SetupLf.exe" -silent -iacceptlicenseagreement

kill more unwanted processes

taskkill /IM "WmiPrvSE.exe" /F
taskkill /IM "LFScan.exe" /F
taskkill /IM "Laserfiche.OfficeMonitor.exe" /F
taskkill /IM "LFSession.exe" /F
taskkill /IM "LF.exe" /F

Install Laserfiche 10 Client

"\\server\laserfiche\Laserfiche10.4.2_20191218\en\WindowsClient\setuplf.exe" -silent LFCDESKTOPSHORTCUTS=1

1 0
replied on February 27, 2020

Hi Miruna,

So, I should have the entire folder with the install? The way I'm doing is I copy the folders OCR, Support and Windows Client to another folder and run from there.

0 0
replied on February 27, 2020

Your log says it installs from by running C:\WINDOWS\AdminArsenal\PDQDeployRunner\service-1\exec\SetupLf.exe.

If that's the Windows Client's setupLF.exe, then the entire contents of the Windows Client install need to be in that C:\WINDOWS\AdminArsenal\PDQDeployRunner\service-1\exec folder. SetupLF.exe detects the MSIs using paths relative to its location.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.