-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#113 - Allow Launcher.exe
to pass through the ActivationData
arguments
#135
#113 - Allow Launcher.exe
to pass through the ActivationData
arguments
#135
Conversation
…o the clickonce application as process scoped environment variables (CLICKONCE_ACTIVATIONDATA_1, CLICKONCE_ACTIVATIONDATA_2, etc.). This is important in order to get the command line arguments and other information into the clickonce-packaged application runtime. This change directly addresses the issue #113.
thanks @NikolaMilosavljevic. Would you be able to provide any timelines for the solution, so that i (and other developers) can plan accordingly? Would it be at all possible to have this fixed before .NET 7? Don't want to repeat all the complaints here, but this is indeed the very last blocker that prevents us to upgrade to .NET 5/6. |
@NikolaMilosavljevic Can you please tell us if this will be available in the upcoming .NET6 release? Our dev team is spending lots of time on various workarounds for deploying via ClickOnce without the ApplicationDeployment class, as described in #27, #53, etc. Maybe we don't need to? Some guidance would be much appreciated. |
Confused. Is this in the .NET 6 release or not? |
The fix to this issue is not in the .net 6 release, and there's no clear timeline for it either. I think i'll have to try a suggestion here: #53 (comment) because I can't afford to wait any longer for the fix. |
Thanks @e-master. |
@NikolaMilosavljevic can you clarify why this was closed? We are waiting for argument forwarding. Should we open another issue for net6? |
Apparently, it has been incorporated (in a slightly different, IMHO better, way) #208. |
@nzain Well, I most likely misunderstood you then. But I'm using what is proposed in #208 in my application right now. Specifically the #208 is a slightly different solution to the same problem than this PR, but I think it is even better. It uses specifically named env vars instead of "_1", etc. and also exposes more information to the application. YMMV of course. I'm using Microsoft.DotNet.Mage 7.0.0. |
Allow
Launcher.exe
pass through theApplicationData
arguments to the clickonce application as process scoped environment variables (CLICKONCE_ACTIVATIONDATA_1
,CLICKONCE_ACTIVATIONDATA_2
, etc.). This is important in order to get the command line arguments and other information into the clickonce-packaged application runtime. This change directly addresses the issue #113.This change is backwards compatible, doesn't require any API changes. It does require some effort from the application developers to actually read and parse the environment variables for
CLICKONCE_ACTIVATIONDATA_x
variables, but i wanted to make the change as least invasive as possible.I couldn't find any existing tests for
Launcher.exe
, but i did test the change locally and it worked fine.In the following example the name of the file (using file associations in ClickOnce) is passed through by
![image](https://user-images.githubusercontent.com/13695064/131595557-1afd8d1c-65e4-4942-84e9-cb9341b86700.png)
Launcher.exe
as a process scoped environment variable: