question

azurepete-6753 avatar image
0 Votes"
azurepete-6753 asked CarlFan-MSFT answered

RemoteApp (trying to replace XPMode), works for some apps, not all

I know I know XP is old. Have a "must use" app that only runs on XP. On windows 7 we would use XPMode, no issues.

Upgraded to windows 10, now i have XP running in Hyper-V.

I read a couple of blogs about setting up remote apps on the XP machine. I can get notepad to launch, paint to launch, but not my program. This is all done in the registry key HLM\Software\Microsoft\Windows NT\Current Version\Terminal Server\TsAppAllowList\

for paint i add a key under Applications\ called mspaint under that key i create 2 string values, one for path and one for name, path is set to C:\WINDOWS\system32\mspaint.exe and name is set to mspaint.

On the host machine i modify the RDP file adding
devicestoredirect:s:
drivestoredirect:s:

redirectdrives:i:1
disableremoteappcapscheck:i:1
remoteapplicationprogram:s:mspaint


my application requires some command line parameters so i did a lot of testing with notepad opening with a file... like path=c:\windows\notepad.exe c:\test.txt

Cannot get that to work.

I even created a bat file called notepad.bat and in the bat file put "START c:\windows\notepad.exe c:\test.exe"

That works, but it ignores the command line argument, which i don't understand how it is possible.

Also in my testing i have noticed that for mspaint and notepad the key name or the name string value must match the name of the executable (without the exe) which i don't understand fully understand either.

Any thoughts/Tips?

I have some old keys in the registry from XPMode and that have string values for command line arguments and I tried that but TS RemoteApps must not recognize those string values.

remote-desktop-services
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

azurepete-6753 avatar image
0 Votes"
azurepete-6753 answered

well well well...

nevermind... I i figured out the RDP is not using the registry on the guest machine at all. it is just calling what ever is in the paramater

"remoteapplicationprogram" is in the RDP file

The blog i read was wrong and was just working by coincidence because they called everything "notepad" lol.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CarlFan-MSFT avatar image
0 Votes"
CarlFan-MSFT answered

Hi,
Thank you for your informaiton.
If you double-click the RDP file to open it, you will be prompted with a RemoteApp dialog to open the remoteapplication rather than a standard Remote Desktop Connection dialog. You can modify the remoteapplicationname, remoteapplicationprogram and remoteapplicationcmdline parameters to open any application installed in Windows XP as a RemoteApp.
Locate the remoteapplicationmode parameter in the file and change the value to 1.
it looks like this:
remoteapplicationmode:i:1
Hope this helps and please help to accept as Answer if the response is useful.
Best Regards,
Carl

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.