I want to run some commands in PowerShell after my Inno Setup install.
But at the end it or shows the command without running or show the term error.
[Run]
Filename: "powershell.exe"; Parameters: "-NoProfile -NoExit -Command ""& {{Set-ProcessMitigation -Name ""{app}\Game.exe"" -Disable BottomUp}"""; StatusMsg: "Configurando..."; Description: "Configurando..."; Flags: shellexec
Filename: "powershell.exe"; Parameters: "Set-ProcessMitigation -Name ""{app}\Game.exe"" -Disable HighEntropy"; StatusMsg: "Configurando..."; WorkingDir: {app}; Description: "Configurando..."; Flags: shellexec
Filename: "powershell.exe"; Parameters: "Set-ProcessMitigation -Name ""{app}\Game.exe"" -Disable ForceRelocateImages"; StatusMsg: "Configurando..."; WorkingDir: {app}; Description: "Configurando..."; Flags: shellexec
at the first one I'm trying some but without success, the command is simple