1. Windows Installer Program
- Posted by ryanj Nov 20, 2013
- 2005 views
I am seriously considering writing a program in Euphoria that can install a program on Windows, add it to the Start Menu, Desktop, and Taskbar, and add whatever registry entries are necessary. I would use FluidAE for the GUI. It would be nice if programs written in Euphoria didn't have to depend on non-Euphoria installation tools. What do you all think? What would it take to get this working? If anyone has any useful bits of code, I would happy to incorporate them into the project.
I can think of a few things that would be needed:
- Elevating privileges
- Reading/writing the registry entries
- Creating shortcut files
- Accessing system folders, system variables, and other operating system information
- Perhaps, use 7-Zip to make a self-extracting file, which would contain:
- setup.exe (a bound euphoria program)
- files that will be copied to the installation location
2. Re: Windows Installer Program
- Posted by BRyan Nov 20, 2013
- 1955 views
I am seriously considering writing a program in Euphoria that can install a program on Windows, add it to the Start Menu, Desktop, and Taskbar, and add whatever registry entries are necessary. I would use FluidAE for the GUI. It would be nice if programs written in Euphoria didn't have to depend on non-Euphoria installation tools. What do you all think? What would it take to get this working? If anyone has any useful bits of code, I would happy to incorporate them into the project.
I can think of a few things that would be needed:
- Elevating privileges
- Reading/writing the registry entries
- Creating shortcut files
- Accessing system folders, system variables, and other operating system information
- Perhaps, use 7-Zip to make a self-extracting file, which would contain:
- setup.exe (a bound euphoria program)
- files that will be copied to the installation location
Maybe you you should check the archive for some ideas.
Go here:
http://rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=install
The first one on the list has source code.
3. Re: Windows Installer Program
- Posted by mattlewis (admin) Nov 21, 2013
- 1984 views
I am seriously considering writing a program in Euphoria that can install a program on Windows, add it to the Start Menu, Desktop, and Taskbar, and add whatever registry entries are necessary. I would use FluidAE for the GUI. It would be nice if programs written in Euphoria didn't have to depend on non-Euphoria installation tools. What do you all think? What would it take to get this working? If anyone has any useful bits of code, I would happy to incorporate them into the project.
I've thought about doing this sort of thing, but right now, I'm not in favor of it. On Windows, I think that WiX is the right way to go. I've played around with it a bit, and it's not too difficult to use, at least for relatively simple installations.
Matt
4. Re: Windows Installer Program
- Posted by ghaberek (admin) Nov 21, 2013
- 1984 views
I think a better idea might be a Euphoria Package Manager, à la RubyGems. Jeremy had started something with EuPack but I'm not sure where that stands. His last commit was just over three years ago.
-Greg
5. Re: Windows Installer Program
- Posted by fizzpopsoft Nov 21, 2013
- 1934 views
Hi,
I have a licenced copy of Astrum install wizard, see
http://www.thraexsoftware.com/aiw/features.html
if this fits the needs? No plug intended... if the requirements can be communicated, I can construct the installer package?
Alan
6. Re: Windows Installer Program
- Posted by ryanj Nov 21, 2013
- 1901 views
I've thought about doing this sort of thing, but right now, I'm not in favor of it. On Windows, I think that WiX is the right way to go. I've played around with it a bit, and it's not too difficult to use, at least for relatively simple installations.
Now that I think about it, you are probably right. Making an installer program would be a huge project. Perhaps, I should just focus on making graphical tools for Euphoria, such as an IDE with a GUI for binding programs.
7. Re: Windows Installer Program
- Posted by ryanj Nov 21, 2013
- 1967 views
What do you mean by "Euphoria Package Manager" exactly?
8. Re: Windows Installer Program
- Posted by mattlewis (admin) Nov 21, 2013
- 1907 views
I think the idea was to have an easy way to get euphoria code. A sort of automated front end to the archive, sort of like NuGet (to give another example).
Matt
9. Re: Windows Installer Program
- Posted by petelomax Nov 26, 2013
- 1827 views
Sorry for the late reply. Quite some time ago I found a little gem called makesfx, reasonably sure it was this one: http://74.cz/en/make-sfx/index.php
The important thing (for me) was command line support; I have a .bat file with two lines similar to:
"C:\Program Files\7-zip\7z.exe" a -tzip phix.zip @phix7zip.lstwhich creates a zip file (oh, yeah, I installed 7-zip as well!) from a plain text list of files, and
makesfx.exe /zip="phix.zip" /sfx="phix.exe" /title="Install Phix" /website="http://phix.is-great.org" /intro="This program installs Phix" /defaultpath="$programfiles$\Phix" /exec="$targetdir$\ppw.bat" /overwritewhich converts it into an installation program, with the option of running whatever post-extact processing you need. Dirt simple and fully automatic.
HTH, Pete