Forum Discussion
Add registry keys
Rudy_Ooms_MVP
The install command is : msiexec /i AcroPro.msi /q
Do you mean to add the script as a file to the folder before I convert it to exe?
If yes, How to call the script in the install command?
Thanks
the install command should look something like this
powershell.exe -executionpolicy Bypass -file .\add-reg-key-adobe.ps1
- admin-CPHFeb 10, 2023Brass Contributor
Install command: msiexec /i AcroPro.msi /q powershell.exe -executionpolicy Bypass -file .\reg.ps1
Correct?
- Feb 10, 2023nope.... powershell.exe -executionpolicy Bypass -file .\reg.ps1 and add that msiexec /i AcroPro.msi to that reg.ps1 one...
- admin-CPHFeb 12, 2023Brass Contributor
The installation is failed, and I'm getting this error: The application was not detected after installation completed successfully (0x87D1041C).
The Powershell script:
New-Item -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe'
New-Item -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat'
New-Item -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC'
New-Item -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown'
New-Item -Path 'Registry::HKLM\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM'
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown\cIPM' -Name 'bDontShowMsgWhenViewingDoc' -Value 00000000 -PropertyType DWord -Force -ea SilentlyContinue;
New-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Policies\Adobe\Adobe Acrobat\DC\FeatureLockDown' -Name 'bIsSCReducedModeEnforcedEx' -Value 00000001 -PropertyType DWord -Force -ea SilentlyContinue;
msiexec /i AcroPro.msiInstall command:powershell.exe -ExecutionPolicy Bypass -file.\reg.ps1Please adviseThanks