Start wxHaskell on another machine
I have compiled a haskell program that uses the wxHaskell library, now I would like to know how to make it work on other machines that do not have wxHaskell installed. Of course I can see errors and I can copy the DLLs written in the output and copy them to this machine, but what is the professional resolution, can I write some kind of installer or something?
thanks for the help
a source to share
If you are using recent kabbalized implementations of wxHaskell, this is pretty easy since almost everything is statically linked.
I am using InnoSetup which is Open Source and works really well. My script requires at least the following:
AppName=My Wonderful Application
AppVerName=My Wonderful Application 0.1.13
CreateAppDir=yes
DefaultDirName={pf}\MyWonderfulApplication
[Files]
Source: "path\to\your\wxWidgets.dll"
Source: "path\to\msvcrt.dll"
Source: "path\to\your\application.exe"
All paths, with the exception of DefaultDirName, are paths on your development machine.
The key elements are your wxWidgets dlls (there may be multiple dlls, depending on how you created wxWidgets - I recommend and use the monolithic variant that creates a single dll, wxmsw28u_gcc_custom.dll) and the binary version of your application.
If you link with other libraries, you will need those as well. Many third party Windows libraries require msvcrt.dll, so I mentioned that already.
a source to share