PSAppDeployToolkit icon indicating copy to clipboard operation
PSAppDeployToolkit copied to clipboard

Active Setup 3.8.4 Inner Exception when toolkit is ran in system context

Open ASDF-PS opened this issue 5 years ago • 2 comments

Describe the bug Hi, When ran via MEMCM or via PSEXEC -i -s cmd.exe in system context active 1 setup produces an error.

[Installation] :: Failed to set Active Setup registry entry. Error Record: -------------At C:_PKG\Test\PKG\AppDeployToolkit\AppDeployToolkitMain.ps1:10768 char:58

  • ... et-RegistryKey -Key $HKCUActiveSetupKey -SID $UserProfile.SID -Value ...
  •                                              ~~~~~~~~~~~~~~~~
    

Error Inner Exception(s):

command line causing the error. Set-ActiveSetup -StubExePath "$RK_customisation" -Arguments '/S' -Description 'DocsCorp pdfDocs LS' -Key 'DocsCorp pdfDocs LS' -Locale 'en' -Version '1,0,0'

Older versions of the toolkit don't have this issue. Thanks for all your efforts, love the toolkit!

ASDF-PS avatar Mar 11 '21 14:03 ASDF-PS

The active setup keys are actually created and the next time I login the stub is executed. The old version of the toolkit used to execute the active setup stub straight after creation to save the user having to log out and back in again.

ASDF-PS avatar Mar 11 '21 14:03 ASDF-PS

Yes, we are aware of the issue. The next version will compare versions and the bugs are fixed.

luki1412 avatar Mar 11 '21 14:03 luki1412