none
Powershell not updating registry when deploying a package or app RRS feed

  • Question

  • I have a powershell script that installs Project then adds a value called InstallDate (because the install doesn't... why??) within this key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ProjectProRetail - en-us

    My powershell script works perfectly fine when run outside of CM. When I deploy the install as an application or as a package, it installs Project just fine, even says it's writing the registry key, but does not. Here's the line in PS:

    New-ItemProperty -Path $RegistryPath -Name InstallDate -Value $InstallDate -PropertyType String -Force | Out-Null

    Yes, I'm running on a 64-bit OS and no, it does not write to the wow64 key.

    I'm baffled why it won't write the key. Any ideas?

    Sunday, September 15, 2019 1:05 PM