Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sskras/installer.hta

Repository files navigation

Windows HTA-based application installer

The story

@sskras thought it would be nice to have a simple installation framework for Windows which:

  • would be text-based
    (could be fixed by hand / using notepad, with no rebuilding)

  • could run on as many retired NT versions as possible
    (going back to at least Win XP or even Win 2000)

  • would have no 3rd party dependencies
    (ones like Qt, Python, Perl, Lua, UI++)

So he ran some research and chose the Internet Explorer (IE)-based HTA — HTML Application technology introduced in 1999 along with IE5.

IE5 was supported on these OSes:
  • Windows 3.1x

  • Windows NT 3.51

  • Windows 95

  • Windows NT 4.0 SP3 or later

  • Windows 98

  • Mac OS X (up to v5.2.3)

  • Classic Mac OS (up to v5.1.7)

  • Solaris

  • HP-UX (up to 5.01 SP1)

By default it was bundled with:

  • Windows 98 Second Edition

  • Windows 2000

  • Windows ME

... and so was the HTA support.

Which makes all three initial requirements satisfied.

Initial try

The initial idea is to have a single .hta file which would contain all the logic and most of data, and so would be a self-contained executable.

So at first some fundamental things were ironed out — eg. a fixed size window having most of IE shortcut keys disabled, and being resistant to potential UI joggling using mouse.

I took OSD_HTA.hta from gitlab.com/chrismbradford/osd-wizard repository as a code-wise inspiration.
I also used gvd5-x64.exe installer of gBurner Free as the reference UI design:

installer of gBurner Virtual Drive 5.2

Basically it is a 640 x 480 size static window partitioned into several rows via <table>, which uses MS Shell Dlg 2 font.

As of commit ee221c0, it looks like this on Aug 05, 2025:

installer

Debugging

Some debug measures are implemented now. If table classes grid_lines and grid_thin are enabled, eg:

    <table class="grid_lines grid_thin ...">

... it gets somewhat easier to see the actual GUI layout:

installer gridlines

About

Simple, MS-HTA/JS based app-installer for Windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published