Skip to content

This HTA installer will compile unicode text based files to a single file .hta installer which can be installed on windows based corporate environments.

License

Notifications You must be signed in to change notification settings

uraikus/hta-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(Windows Only) HTA Installer

This HTA installer will compile unicode text based files to a single file .hta installer which can be installed on windows based corporate environments. The program was initially created for installing an intranet site that automatically creates network backups, while also storing a local copy of the site for backup purposes during network outages.
When the user attempts to run the installer, it will attempt to install to a user input local location, as well as a user input network drive location.
To create compile a installer file, open up the Resources/files.json file:

  • "iType": this setting can be either "local", "network", or "both". This will determine will the program can be installed to when ran by the user.
  • "fName": is the installers name.
  • "folders": stores all the directory names you would like the installer to make. Note: Create parent directories prior to the child directories. All directories will be installed relative to the locations input by the user running the installer.
  • "from": acts as a file manifest, it records each of the files you would like compiled.
  • "to": this is where the installer will install each individual file.
The "from" and "to" index will correlate with one another. For instance, from[1] will install the file to to[1].

A sample files.json manifest would look something like this:

  {
    "fName":"Console Installer",
    "iType":"both",
    "folders":[
      "CP Console",
      "CP Console/Resources",
      "CP Console/Resources/Widgets"
    ],
    "from":[
      "index.htm",
      "Resources/styles.css",
      "Resources/scripts.js",
      "Resources/Widgets/launcher.htm"
    ],
    "to":[
      "CP Console/CP Console.htm",
      "CP Console/Resources/styles.css",
      "CP Console/Resources/scripts.js",
      "CP Console/Resources/Widgets/launcher.htm"
    ]
  }
  

Once the files.json data is input, you can run the "Installer Compiler.hta" to create your hta installer.
Note: If you would like to utilize this program as an updater for your intranet site, you can open it in an intranet iframe with the URL appended with the hash #update. This will prevent the program from trying to re-create the folders, but rather will just upload the individual files.

About

This HTA installer will compile unicode text based files to a single file .hta installer which can be installed on windows based corporate environments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published