Yeah, this isn't a VB6 programming issue. You can't get around it by doing anything different in VB6.

I'm not sure why an application would ever be trying to perform these kinds of administrative actions. You'd normally only run Deployment Image Servicing and Management from a Command Prompt or "PowerShell" script.

Not only does this command line tool come in separate 32- and 64-bit versions, there are different versions that work in different Windows versions.

https://learn.microsoft.com/en-us/wi...iew=windows-11