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.

3 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

It is disabled also in USA

How interesting!
Where do you use Python? To use for data analysis and management?
What was your reasoning for using Python instead of XOJO?

I was lucky enough to use it while it was still active, before the shutdown.

However I just tried the same prompt with Opus and it gave me functionally identical results!

Thanks to PyTorch I was able to use GPU acceleration, CUDA on Windows and MPS on Mac, which greatly speeds up the calculations on the audio waveform. This isn’t natively available in Xojo so I bit the bullet with Python, which unfortunately bloats the size of my distributables signficantly.

1 Like

so you used a now banned AI model to use a Pascal program using Python to make a install for a Xojo program?
Had to type that all out :grin:

3 Likes