It isnt PSADT related as such but was wondering if anyone has encountered a similar scenario and if they got around it with PSADT.
Ive got an app where the HKCU hive does not populate until the actual app has been run by the user after installation but I need to change a specific setting.
Changing the reg setting Post Install as normal will be overwritten once the application has run.
Not sure how to get around this... Does anyone have any ideas?
During the post install section, launch the app (silently or hidden if possible) - You may need to unblock the app launch if you had configured this during the install.
Wait a period of time until the expected registry changes have been populated
Close the App (confirm it has successfully closed)
Modify the Registry key how you would like it
Let the PSADT script complete
How you code this would be a fun exercise I'm sure
Another idea is to populate enough of the registry to fool the app to think it has run already.
This should to stop it from overwriting the registry changes you want.
But this is guess work and Adrian's solution has a better chance of success.
Are you by any chance trying the registry changes mentioned in the Fiddler Classic instructions found here:
?
As this needs to be run with Admin rights then maybe the registry addition needs to be carried out using Start-ADTProcessAsUser
N.B. I think the Fiddler Setup needs to be run with Admin rights (suggest System), then make the Registry changes as the user using Start-ADTProcessAsUser
Just found this:
Depending on the version of Fiddler you are trying to install, it may not be possible to what you are doing. Who thought it was a good idea to install an app as a user when the app needs admin rights, don't they know most (corporate) users don't have admin rights
Exactly! Dont get why vendors/developers do this so often and with this one, people have complained since 2019!
You could copy the .exe to somewhere on the device and give admin to that directory to run and then delete once done... I could try that... then try the reg settings (I only want to stop autoupdate check so it isnt a massive issue if i cannot).
The only other way around this is to run this as system:
FiddlerSetup.exe /S /D=%ProgramFiles%\Fiddler
And then physically create shortcut pointing to the .exe as it doesnt install for every user just the system user, but this may stop certain extensions for the app to run so I have read.
FullyQualifiedErrorId : PathNotFound,Repair-ADTWinGetPackageManager
ScriptStackTrace : at Get-ADTWinGetPath, C:\Packages\Intune files\Fiddler5\content\PSAppDeployToolkit.WinGet\PSAppDeployToolkit.WinGet.psm1: line 1394
at Repair-ADTWinGetPackageManager<Process>, C:\Packages\Intune files\Fiddler5\content\PSAppDeployToolkit.WinGet\PSAppDeployToolkit.WinGet.psm1: line 3609
at Install-ADTDeployment, C:\Packages\Intune files\Fiddler5\content\Invoke-AppDeployToolkit.ps1: line 226
at <ScriptBlock>, C:\Packages\Intune files\Fiddler5\content\Invoke-AppDeployToolkit.ps1: line 435
at <ScriptBlock>, <No file>: line 1
TargetObject : C:\Program Files (x86)\WindowsApps
PositionMessage : At C:\Packages\Intune files\Fiddler5\content\Invoke-AppDeployToolkit.ps1:226 char:5
+ Repair-ADTWinGetPackageManager -Verbose
Seem to keep getting this error when trying to install a winget app via psadt.