Custom script (vbsscript) issue in Pre-Installation (Post-Installation) activities in Software Deployment
Hi
I create vbs script, that should check on 64-bit machine installed program in both registry uninstall keys:
64-bit key HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall
32-bit key HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
When I run this script localy it's work correct.
I place this script in pre-installation and post-installation activities.
When DC Agent run this script it's work no correct - script check twice 32-bit registry key ((
This is because the DC agent start "cscript" as 32-bit process and when script try read 64-bit registry key it redirected to 32-bit registry key.
I found a workaround - create cscript64.bat file with code "%SYSTEMROOT%\Sysnative\cscript.exe scriptname.vbs" and place it in post- and pre-installation activies as "Script name" and scriptname.vbs as "Script Argument".
Can you make so the DC agent execute cscript.exe as a 64-bit process on 64-bit machines?
New to ADSelfService Plus?