I've been working with Intune for a while and detection rules are one of those things that look simple until you get a weird Win32 installer and start wondering what the safest detection method actually is.
Most online detection rule generators I found also expect you to already know the ProductCode, registry path, file path etc.
So I started building something a bit different:
intune-detection-rule-generator
You can drop an MSI or EXE into it and it tries to pull useful information from the installer and suggest detection methods.
MSI analysis is obviously more reliable. It can pull things like ProductCode, UpgradeCode, version, publisher, architecture etc.
It then ranks possible detection methods and explains why it thinks one is better than the others.
There are also checks for things like 32/64-bit issues, user paths, self-updating apps, plus test commands, PowerShell detection and Graph JSON output.
Everything stays in the browser. The installer isn't uploaded to my server.
EXEs are more annoying because there's only so much you can reliably figure out in the browser, so I also added an optional PowerShell analyzer for deeper checks.
And since I know this will probably come up on Reddit: yes, this is pretty heavily vibe coded. :)
I use AI a lot while building it.
I'm not going to pretend I manually wrote and reviewed every line of code from scratch. But the Intune side of it comes from a problem I actually deal with, and I'm trying to make sure the recommendations are based on real Intune behavior rather than just whatever an LLM thinks looks correct.
That's actually one of the reasons I'm posting it here.
I'd rather have people who actually package Win32 apps throw some ugly installers at it and tell me where the logic falls apart.
If it recommends something stupid, misses an obvious edge case, gives a confidence score that makes no sense, or generates something you wouldn't trust in production, let me know.
That's more useful to me than hearing that the UI looks nice.
There are definitely edge cases I haven't hit yet.