otya128 / winevdm

16-bit Windows (Windows 1.x, 2.x, 3.0, 3.1, etc.) on 64-bit Windows
GNU General Public License v2.0
2.69k stars 154 forks source link

Run as admin from the context menu does not work with Win16 apps. #939

Open Anixx opened 3 years ago

Anixx commented 3 years ago

Trying it with http://www.completelyfreesoftware.com/software/ATAM.zip

The program runs well from admin command prompt, but does not from run as admin from context menu.

otya128 commented 3 years ago

This is a Windows issue and is difficult to resolve. The UAC service kills the started process when it confirms that it is another executable file. In this case, the process is killed because it is otvdm.exe instead of the 16-bit executable file. However, if it's C:\Windows\SysWOW64\setup16.exe, C:\Windows\SysWOW64\InstallShield\setup.exe, it won't be killed, but it's probably hard-coded.