AI-Assisted Programming for Building a One-Click Windows Installer for Open-Source Scientific Software

    This article recounts how the author used an AI coding assistant to build a one-click Windows installer for an open-source scientific computing tool that originally assumed a Unix-like environment. It covers the installation barriers, runtime dependency analysis, installer scripting, file layout and environment variables, uninstall cleanup, clean-machine validation, and practical lessons for collaborating with AI tools on cross-domain packaging work.

    1. The Starting Point: A Frustrating “Can’t Install” Request

    The story began in a very ordinary way. Last December, my cousin, who was in graduate school, sent me a message. Her research group needed to use an open-source scientific computing software package, but everyone in the lab was stuck at the installation stage. They had read through online tutorials repeatedly and still could not figure it out, so she asked me for help.

    At first, I did not take it seriously. In my mind, installing software was just a matter of downloading it, extracting it, and configuring a few paths. How hard could it be? But when I actually started looking into the deployment process for this software, I realized it was far more complicated than I had imagined.

    The software was born in the research community, and its target users were assumed to be researchers familiar with Unix-like environments. On Windows, the full installation path looked roughly like this:

    1. Install and configure a Linux compatibility layer or a virtual machine environment.
    2. Install a compiler, math libraries, and a series of build dependencies in that environment.
    3. Compile from source, or search around for community-maintained precompiled binaries.
    4. Manually handle dynamic library search paths, environment variables, and parallel runtime configuration.
    5. Finally, verify that the version works and that a test case can run.

    The whole process could easily take hours, and any error along the way was enough to block a graduate student who was not familiar with the command line for half a day. For research users whose main work is experiments and papers, this was an entirely unnecessary barrier.

    2. A Shelved Idea: Why Not “Double-Click and Install”?

    After struggling through the process, a simple question came to mind: mainstream software in the Windows ecosystem can almost always be deployed by double-clicking an installer and clicking “Next” through the wizard. Why couldn’t this type of scientific software offer the same experience?

    The answer is not hard to understand. The core maintainers of scientific software put their energy into algorithms and features, and graphical distribution for Windows has never been a priority. Packaging a proper installer is itself a separate engineering skill. It involves writing installation scripts, mapping runtime dependencies, managing registry entries and environment variables, and implementing uninstall and cleanup logic. It has almost nothing to do with computational science itself.

    At the time, my engineering skills were limited. Faced with these unfamiliar areas, I had to shelve the idea. It sat in my notes for half a year.

    3. The Turning Point: AI-Assisted Programming Lowered the Cost of Crossing Domains

    This year, AI-assisted programming tools have become far more capable. In my daily work, I have grown more accustomed to collaborating with an AI coding assistant through conversation: describing requirements, pasting error messages, and iterating on fixes. At some point, that shelved idea came back to me. Since the tools could now help me learn while doing, why not try again?

    So I gave the coding assistant a clear goal: build a one-click Windows installer for this scientific computing software. The requirements were that it must install successfully, run properly, and uninstall cleanly.

    The biggest takeaway from this process was this: I did not need to know everything in advance. I only needed to describe the problem clearly. I was not familiar with the syntax of packaging scripts—that was fine. I had never mapped the runtime dependency chain—that was fine too. How the installer embeds files and writes registry entries could all be learned by asking along the way. My role shifted from “all-around implementer” to “requirements definer and results validator.”

    4. Five Key Steps to a Working Installer

    The whole process can be broken down into five core steps, each completed in collaboration with the coding assistant.

    4.1 Runtime Dependency Analysis

    The first step was to figure out what the software actually needs in order to run on Windows. This included the core executable files, dynamic link libraries, data files, and runtime components required for parallel computing. The assistant helped me go through the dependency list item by item and verify whether anything was missing by running the software and checking errors. For missing runtime libraries, the strategy was to bundle redistributable components that complied with licensing requirements with the installer, so users would not have to install them separately.

    4.2 Writing the Installer Script

    The second step was to choose a common installer-authoring approach and write a graphical installation wizard script. The assistant provided a complete script framework: welcome page, license agreement page, installation path selection, component selection, progress display, and completion page. I only needed to adjust the directory structure and text according to the actual requirements.

    4.3 File Layout and Environment Variables

    The third step was to design a reasonable installation directory structure and automatically complete environment configuration at the end of installation—for example, appending the executable directory to the system path and writing the necessary runtime parameters. The script also handled permission issues: writing to system-level paths requires administrator privileges, and the installer requests them correctly at startup.

    4.4 Uninstall Logic

    A proper installer must uninstall cleanly. The uninstall script needs to delete all installed files, clean up registry entries, restore modified environment variables, and clearly distinguish between user data and program files to avoid accidentally deleting the user’s work.

    4.5 Validation in a Clean Environment

    The final step was critical: end-to-end validation on a “clean” Windows machine that had never been configured with any development environment. Double-click the installer, click “Next” through the wizard, and finish installation; double-click the program, check the version information, and run a minimal example. Everything passed and worked out of the box.

    5. Lessons from the Collaboration

    Looking back on the process, several lessons are worth sharing:

    • Clear requirements are more important than technical details. When acceptance criteria such as “installs successfully, uninstalls cleanly, and produces a clean, reproducible environment” are stated upfront, the number of rework cycles drops noticeably.
    • Error messages are the best communication language. When a problem occurs, pasting the full error output is far more efficient than a subjective description such as “it seems not to work.”
    • Stay in the validator role. The assistant’s proposals need to be verified one by one, especially anything involving system configuration changes. They should not be accepted blindly.
    • Iterate in small steps. First get a minimal usable installer working, then gradually add capabilities such as component selection and uninstall cleanup. This keeps risk under control.

    6. Conclusion

    From the moment the idea appeared to the installer working end to end, the whole thing spanned half a year, but the actual hands-on work took only a few days. What often stops us is not the idea itself, but the unfamiliar knowledge gap between the idea and its implementation. AI-assisted programming tools are gradually filling that gap—they will not make decisions for you, but they will accompany you through each unfamiliar area. If you also have a long-shelved “small wish” sitting in your notes, perhaps now is the time to take it out.