Auto-AutoRun is an auto-run for those who want to distribute apps using CDs/DVDs and have no programming knowledge.
It uses a tree view to show apps, which is populated depending on the contents of the disk.
To use this auto-run you (distributor) need to be able to:
- Work with file explorer
- Write markdown files (markdown is an easy to learn markup language)
OR HTML files (The markup language for 99.9% of the Internet pages)
The window contains:
- A tree view on the left showing the apps, which content is populated depending on the contents of the disk
- A tabbed documentation in the middle, which changes according to the selected app
- An optional version selector next to the tree view and above the documentation, which changes according to the selected app
- A list of button for setup, activation, etc. which changes according to the selected app and version
- An icon and a title showing the name and icon of the selected app
You can learn markdown here.
OR HTML here
Markdown files should end with .md (recommended) or .markdown
HTML files should end with .html or .htm
You can use plain text files, with .txt extension
The markdown files appear the same as they do in github.com. (This document you are reading is a markdown file viewed on github.com)
HTML files are shown as they do in a browser (Auto-AutoRun uses something like internet explorer)
Links inside documentation files can have special URIs, which can link to:
- Nodes: use this format:
node://path/to/node. If the user clicks on this link, the target node will be selected and viewed, as if it was clicked in nodes tree. - Actions: There are to types:
runaction://path/to/node/action-name: If the user clicks on the link, the action will be invoked (it's file will be opened), as if it's button was clicked.showaction://path/to/node/action-name: If the user clicks on the link, the action's file will be shown in file explorer, as if it's button was middle-clicked (clicked with middle mouse button).
Note: replace path/to/node in URIs with the path to your node, for example in this node tree the node Chrome is the target:
AppsBrowsersChrome
The path to Chrome is Browsers/Chrome. Note that Apps isn't included in the path.
Nodes can be either folder or apps. They appear as items in the apps tree.
Actions, versions and documentation
-
make a folder in the apps directory. A node's name is the same as it's folder's name
Any name is accepted, except those staring with either an underscore (
_), or the letterv. These letters are reserved for actions and versions
Auto-AutoRun.exeMarkdownSharp.dllBrowsers-> NodeChrome-> Node- ...
FireFox-> Node- ...
Edge-> Node- ...
They appear as items in the apps tree.
Actions are files that can be opened by clicking a button on the Auto-AutoRun window. Each action has it's own button. The buttons appear on the top-right of the window.
-
Inside a node folder, create a new folder starting with an underscore (
_). The action's name is the name of it's folder's name excluding the underscore.Note: Do not use the name
_docsbecause it is reserved. -
Inside the action folder, create or paste the file to be opened when the action is invoked (e.g. setup.exe) and make sure it's name (excluding extension) is the same as the action name.
Acceptable file types are:
-
Executable files (.exe)
-
Windows installer files (.msi)
-
Zip files (.zip)
-
RAR files (.rar)
-
Text file (.txt):
Text files are not opened. They are considered as pointers to the actual file, which can be of any type. these files should contain a relative path to the actual file. An example is the Visual Studio setup, which wont't work if it gets renamed. (e.g. It should be always
vs_community.exe)
-
Google Chrome-> Node_Install-> ActionInstall.exe-> Opens when 'Install' button is clicked
Visual Studio 2015-> Node_Community-> ActionCommunity.txt-> content:vs_community.exevs_community.exe-> Opens when 'Community' button is clickedpackages- ...
_Professional-> ActionProfessional.txt-> content:vs_professional.exevs_professional.exe-> Opens when 'Professional' button is clickedpackages- ...
_Enterprise-> ActionEnterprise.txt-> content:vs_enterprise.exevs_enterprise.exe-> Opens when 'Enterprise' button is clickedpackages- ...
Actions appear as buttons in the Auto-AutoRun interface in the top-right position.
Clicking them opens the exe/msi/zip/rar file
Clicking it with middle mouse button shows the exe/msi/zip/rar file in file explorer.
A documentation can contain one or more markdown / HTML / plain text files to be displayed, an icon, and a list of screen-shots.
- Create a folder inside of the node folder, named
_docs
-
Create/paste any markdown/HTML/plain text file to the
_docsfolder.Markdown file should have the extension
.mdor.markdown
HTML files should be.htmlor.htm
Plain text files should be.txt
-
Create/paste the icon file and rename it to
icon. Supported formats are:.png,.ico,.jpg,.jpeg,.jfif,.bmpExample:
icon.ico,icon.png
-
Create a folder named
Screenshotsinside the_docsdirectoryNote: You can use any name for the folder, which will be the tab name.
-
Inside the folder, insert image files. Most popular formats except
.webpand.svgare supported.
Visual Studio-> Node
Displayed in the center of the app, each documentation file has it's own tab, with the file name (without extension) shown as tab name
Shown on the left of the node name, with 32px size
Shown in a separate tab named 'Screenshots'
Versions are used to have different versions of a software in a single node. They are a bit similar to nodes in folder structure as they contain actions, but are completely different.
Actions, a markdown file
- Inside the node folder, create a new folder starting
v. The rest of the name is the version's name. For example a version with folder namev5.4.3has the name5.4.3. (Any name can be used as long as it doesn't contain illegal characters for paths (\/:*?"<>|)) - Create the actions inside the version folder, as you did when creating nodes.
- [Optional] Create a documentation file named
info(valid formats and extensions were explained earlier) to show it as a separate tab named "version: <version name>". You can insert a changelog or breaking changes warning there.
Visual Studio-> Node_docs-> Documentation- ...
v2015info.md-> Contains new features in vs2015_Install- ...
v2017info.md-> Contains new features in vs2017_Install- ...
v2019info.md-> Contains new features in vs2019_Install- ...
A drop-down (combo-box) appears below the title of the node, with which you can select the version you want to install.
Version actions are shown as node actions, but with a little difference:
- Only the actions of the selected version can be seen
- They appear below the node actions (a bit lower in position)
NOTE: Step 4 does not have any effect if you're not using a CD/DVD.
-
Download Auto-AutoRun executable (
Auto-AutoRun.exe) from the releases page and copy it to the root of the CD/DVD with the nameautorun.exe -
Download
MarkdownSharp.dllfrom the releases page and copy it to the root of the CD/DVD with the nameMarkdownSharp.dll -
[Optional] Copy the icon with
.icoformat to the root folder with the nameIcon.ico -
Create a file named
autorun.inf, open it with notepad (which is usually default) and copy-paste the following into it:[AutoRun] OPEN=autorun.exe ICON=Icon.ico
-
Change the label of the CD/DVD because it will be root node's name and Auto-AutoRun window title.
-
Copy the contents of the root node into the root folder (not the folder itself)
-
Now your app CD/DVD is ready! (Test it before publishing)
The CD's folder tree should look like this:
- autorun.exe
- MarkDownSharp.dll
- Icon.ico
- autorun.inf
- <root nodes>