SideBySide Event 72 Error #135

Open
opened 2025-09-25 18:31:27 +08:00 by SistemOn09 · 4 comments
SistemOn09 commented 2025-09-25 18:31:27 +08:00 (Migrated from github.com)

Applications created with Windows Custom Client Builder fail to run with the following event log error.

Activation context generation failed for "C:\Users\x\AppData\Local\rustdesk.\File.exe". There is an error in the manifest or policy file "C:\Users\x\AppData\Local\rustdesk.\File.exe" on line 2. The security element appears as a child of urn:schemas-microsoft-com:asm.v1^assembly, but this version of Windows does not support it.

Thanks.

Applications created with Windows Custom Client Builder fail to run with the following event log error. Activation context generation failed for "C:\Users\x\AppData\Local\rustdesk\.\File.exe". There is an error in the manifest or policy file "C:\Users\x\AppData\Local\rustdesk\.\File.exe" on line 2. The security element appears as a child of urn:schemas-microsoft-com:asm.v1^assembly, but this version of Windows does not support it. Thanks.
SistemOn09 commented 2025-09-25 19:13:52 +08:00 (Migrated from github.com)

During my review, I discovered that if "Always run as Administrator: Yes" is selected in the generator, the following lines are added to end the manifest of the extracted exe file:

Image

This issue prevents the app from working.

Regards.

Image
During my review, I discovered that if "Always run as Administrator: Yes" is selected in the generator, the following lines are added to end the manifest of the extracted exe file: <img width="585" height="67" alt="Image" src="https://github.com/user-attachments/assets/f183c030-a222-4287-965f-8299ef11d9cc" /> This issue prevents the app from working. Regards. <img width="620" height="381" alt="Image" src="https://github.com/user-attachments/assets/5ef3e7fb-93e4-4c9b-b1f0-dae8375c8d65" />
bryangerlach commented 2025-09-26 02:20:45 +08:00 (Migrated from github.com)

This option is currently broken unfortunately. Someone will need to figure out how to get it working again.

This option is currently broken unfortunately. Someone will need to figure out how to get it working again.
SistemOn09 commented 2025-09-27 22:30:48 +08:00 (Migrated from github.com)

This option is currently broken unfortunately. Someone will need to figure out how to get it working again.

Hello Bryan,

I've figured out the problem with running as administrator. If the last characters in the generated build file name end with "install" or "qs," the program runs itself in install mode or as administrator.

Please see the lines below.

5481c300b2/src/core_main.rs (L139)

5481c300b2/libs/portable/src/main.rs (L149)

In this case, you should remove the "Run as administrator" option, as it completely prevents the program from running. For those who want to install the program directly or run it as administrator once, we need to make adjustments accordingly.

Even though I'm not a programmer, I can be a good debugger :)

Regards

> This option is currently broken unfortunately. Someone will need to figure out how to get it working again. Hello Bryan, I've figured out the problem with running as administrator. If the last characters in the generated build file name end with "install" or "qs," the program runs itself in install mode or as administrator. Please see the lines below. https://github.com/rustdesk/rustdesk/blob/5481c300b222ea5c56e6d2eb045468663853763b/src/core_main.rs#L139 https://github.com/rustdesk/rustdesk/blob/5481c300b222ea5c56e6d2eb045468663853763b/libs/portable/src/main.rs#L149 In this case, you should remove the "Run as administrator" option, as it completely prevents the program from running. For those who want to install the program directly or run it as administrator once, we need to make adjustments accordingly. Even though I'm not a programmer, I can be a good debugger :) Regards
Maxetto commented 2025-09-29 23:55:30 +08:00 (Migrated from github.com)

I would remove the feature as the service is still installed as SYSTEM, therefore have Administrator privileges.

I would remove the feature as the service is still installed as SYSTEM, therefore have Administrator privileges.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#135