how to set silverlight out of browser application in windows startup - silverlight

Hi
I have one silverlight application which I have set for Out of browser application so that user can installed on their machine.
Now my question is "Is there any way or configuration or programmatically possible that when my silverlight application get installed it will put it self in the windows startup so that when user logged in it will automatically starts like messenger applications (yahoo, msn etc)?"
Thanks

You could create a batch file that would do 2 things :
Install your app in OOB using SLLauncher.exe (silverlight executable fo OOB applications), It now have a /install option in its parameters you could use that method to install it.
Copy the shortcut to the"Startup" folder of the current user :
%UserProfile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Related

UWP App WPF .Net Core has no access right to dependencies

We're making a new application using WPF .Net Core. To use the auto update function we decided to pack it with the MSIX Packaging Tool as a UWP App in VS2019. I was able to host the appinstaller File on an IIS and to Install the App over a link to that file over the web. Auto updating is also working fine.
Now to the problem:
When I run the installed App it's icon is not showing in the task bar but it is shown in the Task-Manager using a lot of cpu. In the Process Monitor it shows that the App tries to access its dependencies (like PresentationFramework.dll) but is not successful as the result is always "File locked with only readers". The DLL itself is present in the WindowsApps/xxx/ Path. Also I can not start the EXE manually as my user do not have the rights. What am I missing here?
Edit: Also I realized now that my app is only starting as a background process in the task manager and not as an app. When I go to the app directory under WindowsApps/xxx/MyApp I can not start the EXE directly because of no rights as mentioned before. But when I copy the whole folder I can start the EXE, the GUI appears and the app is an app again in the task manager.
We found an answer. As the GUI is a WPF .Net Core Project and we make the setup with a Windows Application Packaging Project to generate a UWP App from it the technology used seems to be the so called Desktop Bridge.
In the process monitor it seems that it tries to access the files under the correct path but somehow it does it not in the right way as long as the application path is not set correctly in the WPF Projects App.xaml.cs.
To fix this use the solution from Andrew Leader

Kiosk mode WPF app throw Windows Configuration Designer

I have Windows 10 Ent and WPF app with installer. I want get .ppkg file with configuration this WPF app in kiosk mode, but I get some validation errors in Windows Configuration Designer on the step Configure kiosk account and app. I follow the guides:
https://learn.microsoft.com/en-us/windows-hardware/customize/enterprise/create-a-kiosk-image#shell-launcher
https://learn.microsoft.com/ru-ru/windows/configuration/kiosk-single-app
Short. I am doing:
Turn on Shell Launcher in Windows features
Install Windows Configuration Designer
Set up a kiosk using the kiosk wizard in Windows Configuration Designer (guide 2)
I get an error at step 6
I try create KioskUser without Win Conf Designer. I try use another standart win app (for example notepad.exe), UWP app (calc). I create a kiosk user account with WCD and without WCD (Settings -> Account -> Family & other people). Anyway I fail in step 6. I guess the problem can be in the kiosk user.
In the end I want to get the .ppkg file with my WPF app in the kiosk mode.
Has anyone encountered a similar problem?

How to deploy a WPF application?

I have developed a WPF application and deployed it using Click Once Deployment. I installed it on another pc it works fine but the problem is that the application's root folder is being created in a temporary folder in app data/local. I want to give user the flexibility of installing the software wherever he/she wants. How do I do this?
You simply can't change the installation folder using ClickOnce. If you want to do this you need to choose a different installer technology.
ClickOnce application require no administrative privileges and are always installed per user in the user application cache.

Run .net app in Vista/Windows 7 as admin

I have created .NET winforms application and setup project for it.
What I need is that after installation, my application always runs with administrator privileges.
Could someone tell me how I can configure my application to do that? Can I do it just by modifying source code?
Add a manifest file to your project and set the "requireAdministrator" settings. e.g.
Right click your project, add file
Select app manifest
Open the file and make your requestedExecutionLevel match:
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
If it's already installed, you can locate the exe and select properties. In the Compatibility tab, check the box at the bottom "Run this program as an administrator".

Open Silverlight OOB on url, if installed

Is there anyway to make the OOB version of my Silverlight app open(if installed) when i go to
http://mydomain.com/silverlightapp <--- where the Xap is loaded.
Just like a irc client opens when i go to irc://servername
but instead of prefix can my app open the OOB version if
App.Current.InstallState == InstallState.Installed
when it's loaded in the browser?.
As of Silverlight 4 there is no way of launching oob application from the url. Irc and other applications can register custom url protocol handler to launch themselves from url. If you can create native application and install it on user's computer you could use it as a launcher for your oob application.

Resources