

Odds are, it can't access at least one of them.Įdit: Here's a demonstration about the first bullet-point # Bad This means that the first time you can't verify the ProductVersion, your script will terminate right there.ĭue to this I recommend checking, that the computer account you are running this on has read permissions on the files.


If ($UninstallString -match "msiexec.exe /i") $keyBis="HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"įoreach ($Value in (Get-ItemProperty -Path "$key\*" | Select-Object -Property DisplayName, DisplayVersion, UninstallString)) $key="HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" $AlpiLMClient="\\Domain\IT\Deployment\Caneco\4.Alpilmclient\SetupALPIlmclient_v1.5.3.12.exe" $CanecoArmoire="\\Domain\IT\Deployment\Caneco\3.Caneco_Armoire\SetupCanecoArmoire_v2.4.0.28.exe" $DWGEditor="\\Domain\IT\Deployment\Caneco\1.DWG_Editor\setupDwgEditor_v1.1.0.18.exe" $CanecoBT56_CountryPack="\Domain\IT\\Deployment\Caneco\BT_v5.6\CanecoBT_v5.6.0.14_CountryPack_FR.exe" When the script start with startup GPO or scheduled task :Īnd now the script : (sorry for thoose expecting something extraordinary, it's pretty simple -) ) When the script is launched manually all 6 of them are OK. This script is about installing 1 program well, 6 to be exact but they'r all part of a bigger one. ) (in worst case i may get some tips to make my script better I opened a topic in the deployment forum and was asked to post here because my problem could be from my script, must admit i'm doubtfull but not being sure of myself i'll still follow the hint.
