In the weeks that followed, the repack became a case study within the company: how to salvage useful legacy tools without rewriting them from scratch. Developers praised the pragmatic choices: minimal changes to the application, clear per-user defaults, and an automated repack pipeline that could be adapted for other legacy software. Management liked that old value was recovered with small effort.
Step one was to make the app redistributable. The original release had been an MSI that executed custom actions tied to deprecated runtime components and an installer script that registered COM objects with brittle GUIDs. Attempts to run the installer on a current test VM failed with cryptic errors. Amir made a pragmatic decision: repack the application as a standalone self-extracting bundle that would place the EXE and its runtime dependencies into a folder and generate a simple shortcut. No installer logic, no COM registrations—just a predictable, portable deployment. jenganet for winforms repack
The project had a name in the repository notes—“jenganet”—but no documentation. The binary’s icon still bore a faded logo: a stylized jenga tower balanced on a network node. The README was a single line: “jenganet: clientsync for legacy WinForms.” Amir opened the executable with a resource inspector and found strings that hinted at behavior: TCP endpoints, serialized settings, a custom protocol for syncing small datasets between clients. He could imagine an old team clustering laptops in meeting rooms to synchronize contact lists over ad-hoc networks. In the weeks that followed, the repack became
Amir kept a copy of the original MSI in an archive folder, with a note: “Do not re-run—use repack.” He also kept the repack pipeline simple and documented: every step, why it existed, and what assumptions it made. When the next legacy app surfaced, the team followed the same pattern—inspect, minimally adapt, stub where necessary, and deliver a repack that respected modern expectations without pretending to be a full rewrite. Step one was to make the app redistributable
Next came the user experience. The original WinForms UI had hard-coded paths, assuming the application lived in Program Files and that users had local admin privileges. Modern users install apps in their profile directories and rarely have admin rights. Amir adjusted the configuration to use per-user storage and moved logs to an accessible folder under AppData. He updated the startup script to detect and correct common permission errors, prompting the user with clear messages—unlike the inscrutable MSI failures he’d seen earlier.
He named the repackaging script “jenganet-repack.” The script’s goal was simple: gather the WinForms binaries and their configuration files, fix any runtime binding redirects, ensure the correct .NET Framework or compatibility shim was present, and create a signed ZIP plus an executable bootstrap for distribution. But the executable refused to run in the test VM without the expected runtime. Amir tracked down the app’s .config and found an assembly binding redirect that targeted a patched version of a serialization library the company had once maintained privately. That library was gone.
Rebuilding compatibility became a scavenger hunt. Amir found an archived branch in the version control system that referenced a fork of the serialization library patched for binary compatibility with the app. He compiled the fork, included its DLL in the repack, and added a private probing path so the WinForms application would load the local copy rather than a global assembly. The application launched at last, its old gray dialog appearing on the screen like a ghost returned.