Install scripts: a surprisingly great use-case for AI

Claude Fable seems to be able to “one shot” InnoSetup install scripts.

Please create me an InnoSetup install script.

My program files are in C:\Temp\Compile\ProgramName and my 
executable is Prog.exe.
 
My software is called "My Best Program" and I would like a 
shortcut created in the menu and an option for a desktop 
shortcut. Also at the end of installation give the options 
to view the readme (readme.txt in the install folder) or 
launch the program file.

There is an additional folder of files in C:\Python\dist\env
that needs to be deployed to AppData (roaming)\MyBestProgram
and at the end of installation run "first_run.bat" from 
that folder to set up the python environment.

My setup icon is C:\Temp\icon.ico and use the banner image 
at C:\Temp\setupbanner.png

Create an uninstaller that removes the program files and the
entire AppData (roaming)\MyBestProgram folder recursively, 
but first runs the executable with the switch --deactivate,
wait for it to finish, and if you get any exit code other
than 0 inform the user that you were unable to deactivate
the software and get confirmation that they still want to 
uninstall.

It nailed it in one pass.

2 Likes

It should go without saying that you NEED to manually review the scripts that you get, especially when it’s recursively deleting folders in the uninstaller.

Also wouldn’t be a bad idea to put in the minimum runtime requirements in there, have it check for Windows build 18362 or greater, etc.

1 Like

Did you create the program in Python?

Part of it is done in Python. The interface is done in HTML and Javascript, and Xojo is the glue that holds it all together. But it’s technically a Xojo app.

1 Like

Lucky you! Fable is disabled here in Europe.

1 Like