Skip to content

Adds Windows functionality to the project#2

Merged
ferricoxide merged 26 commits into
mainfrom
AddWinFunc
Jun 4, 2026
Merged

Adds Windows functionality to the project#2
ferricoxide merged 26 commits into
mainfrom
AddWinFunc

Conversation

@ferricoxide
Copy link
Copy Markdown
Member

See CHANGELOG.md for summary of changes

Use an externalized powershell script (install_postman.ps1) to run
the install:

1. Externalizing allows easier linting
2. Postman's use of Squirrel and expectation that installs will go to
   %localappdata%\Postman effectively necessitates use of a home-brewed
   installation script to work around the EXE's own limitations.
* Update `.../install_postman.ps1` script so that it will block when
  trying to install if there's already an installation and the
  installation is the same version as the to-be-installed version
* Update `.../win_install.sls` state-file so that it uses a suitable
  requisite evaluation to determine if the to-be-installed version would
  be a reinstall of any present installed versions
Default values for `version` parameter:

* Windows and Linux distros other than EL9:
    version: 'latest'

* RHEL9 and derivative Linux distros:
    version: '10.24.26'
When re-running the formula to install a different version than is
already installed, it leaves behind an `{{ install_root }}\app-X.Y.Z
directory. Each such directory can be 0.5GiB or more. This update
attempts to ensure no such orphans exist after a different version is
installed in place of an existing version
* Ensure proper security-setting on `install_root`
* Suppress attempts at auto-updating (users can't do it, any way, given
  the installation-location and associated security-settings)
* Add app-specific exclusion to Process Mitigation security controls
* Ensure all users have a "Postman" launcher-icon on their desktops
* Ensure all users have a "Postman" launcher-icon in their start menues
* Set up system-registry to ensure protocol deep-linking
Fixes state verification failures for Windows shortcuts. explicitly
declares 'icon_location' and 'icon_index' parameters within the
native 'shortcut.present' resource definitions. This supplies the
validation-query with explicit metadata to match against Windows COM
API inspection returns, preventing false-positive state failures
under Session 0 headless contexts (avoiding the need to resort to
cmd.run kludgery)
The `service` and `subcomponent` directories are derived from execution
of the https://github.com/saltstack-formulas/template-formula project's
bin/convert-formula.sh script but aren't necessary for this formula
While we're here, change state-IDs to use "capital-case"
@ferricoxide ferricoxide merged commit 1f7bc96 into main Jun 4, 2026
8 of 9 checks passed
@ferricoxide ferricoxide deleted the AddWinFunc branch June 4, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant