I'm new to MAUI and I'm making an application where I need to make the app run on startup on windows.
I did this before on Winform/WPF using things like registry records, adding a shortcut to shell:startup, or even from the installer file (like Inno setup).
Obviously, I can't use anything from above with MAUI as I don't have an EXE file or even able to get the executable directory.
MAUI is still new and there were no useful results when I searched.
Even a script that I can maybe add to a Task Scheduler would be helpful at this point as I can create a task for it but I need to know how to run an app on windows that is installed from the windows store.
Thanks.
Edit:
Whenever I try to run the EXE file from windows build I get this error from the event viewer
Faulting application name: MAUIApp1.exe, version: 1.0.0.0, time stamp: 0x6331eb0e
Faulting module name: KERNELBASE.dll, version: 10.0.22621.608, time stamp: 0x4769d08d
Exception code: 0xe0434352
Fault offset: 0x000000000008fb0c
Faulting process id: 0x0x5670
Faulting application start time: 0x0x1D8EE46B08192B8
Faulting application path: D:\CrossPlatform\MAUIApp1\MAUIApp1\bin\Debug\net6.0-windows10.0.19041.0\win10-x64\MAUIApp1.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 395637f8-d737-4ae3-8443-da7889494026
Faulting package full name:
Faulting package-relative application ID:
Thanks to ToolmakerSteve comment I figured out how to make it.
I still prefer doing it from the code as it gives me more control, but at least I can make it start with windows now.
I'm leaving the direct solution here for anyone in the future coming to look for it.
Under platform>Windows open Package.appxmanifest with a notepad or any text editor.
Inside Applications, tag add the following code
<Extensions>
<uap5:Extension
Category="windows.startupTask"
Executable="YOURAPPNAME.exe"
EntryPoint="Windows.FullTrustApplication">
<uap5:StartupTask
TaskId="MyStartupId"
Enabled="true"
DisplayName="YOURAPPNAME" />
</uap5:Extension>
</Extensions>
Should be like this
Enabled="true" make the star on startup enabled by default.
Enabled="false" still add the app to the startup list, but the user needs to go enable it from Task Manager himself/herself.
Next, add this line to the top inside the Package tag
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5"
Now save it then start your solution again then run your app or publish it, once the app starts it will be added to the startup list.
Related
I've recently starting looking at Anypoint Platform and Anypoint Studio. I'm on Windows 10 (17763).
I installed the currently latest version of Anypoint Studio, version 7.7.0. Just about every other time I start it, after a minute or so after starting it up, I get a dialog like the following:
When I dismiss it, obviously the application goes away.
I've inspected the Eclipse error log, and nothing appears associated with this. However, the Windows event log does show something, but it's not much more than nothing.
I only see the following in the event:
Faulting application name: javaw.exe, version: 8.0.2650.1, time stamp: 0x5f204288
Faulting module name: QIPCAP64.dll, version: 7.6.818.1, time stamp: 0x5f45806b
Exception code: 0xc0000409
Fault offset: 0x0000000000030fdf
Faulting process id: 0x7f8
Faulting application start time: 0x01d6c2b1c1e4c539
Faulting application path: C:\AnypointStudio-7.7.0-win64\AnypointStudio\plugins\org.mule.tooling.jdk.win32.x86_64_1.0.1\bin\javaw.exe
Faulting module path: C:\WINDOWS\System32\QIPCAP64.dll
Report Id: 55e2303f-ba56-4715-ac7e-71aedcf86474
Faulting package full name:
Faulting package-relative application ID:
This has been very consistent. I have rebooted many times, and that has no effect.
What DID have sort of an impact was installing the previous version, 7.6.0. I've tested them both many times now, and I never see this error from 7.6.0.
The "Anypoint.ini" file is almost unchanged, although I did increase the "Xmx" value to 2048m. I have also tried changing this to use the Java 8 distribution that I had installed before this. The only thing that changes when I do that is to change the error dialog slightly, indicating that it's coming from the other Java distribution, not the one included with Studio, along with the Windows event log entry showing the path to the expected Java distribution.
It's not clear to me whether the reference to the "QIPCAP64" dll is relevant.
I did report this to Mulesoft, but I'm not very hopeful they're going to find a solution.
QIPCAP64.dll seems to be part of forcepoint.com security products. Looks like it doesn't like Studio 7.7.
I hope that I am not spamming.
I recently upgraded my windows to windows 10 from windows 7. I re-installed MySQL Workbench. But I am not able to open it, there is no error message as well.
I also followed this post's suggestion, but still am not able to open MySQL workbench.
I also upgraded mysql community server pack to latest version. I am able to use mysql odbc connector to connect to remote server. But MySQL workbench is not working.
Any solution?
EDIT: System Error Log
Faulting application name: MySQLWorkbench.exe, version: 6.3.6.0, time stamp: 0x56698b0d
Faulting module name: KERNELBASE.dll, version: 10.0.10586.0, time stamp: 0x5632d1de
Exception code: 0xe0434352
Fault offset: 0x0000000000071f08
Faulting process id: 0x85c
Faulting application start time: 0x01d13bdf2049ff98
Faulting application path: C:\Program Files\MySQL\MySQL Workbench 6.3 CE\MySQLWorkbench.exe
Faulting module path: C:\WINDOWS\system32\KERNELBASE.dll
Report Id: b4d23999-f7f8-4a23-a770-085904b014f6
Faulting package full name:
Faulting package-relative application ID:
This exact situation happened to me. In my case, it was because I went into the program files and then did a cut and paste of the shortcut there and placed it on the desktop. I was unable to launch Workbench from the desktop after doing this. After many attempts, I thought to just open the shortcut from its original location in MySQL/MySQL Workbench 8.0 CE. Now, it works every time.
You can also right click on the shortcut in the program files and click create shortcut or click Send to and pick a location for the shortcut (this method worked fine for me when choosing the Desktop, at least). Cut and paste does not work for some reason. I hope this helps you or anyone else having the same problem. This is all assuming you have the latest versions of Visual C++ and Microsoft .NET Frameworks already installed on your computer.
Recently forced upgraded to windows 10 by microsoft. Windows Start and cortana froze. Searched google and from powershell ran
Get-AppXPackage -AllUsers | Foreach
{Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
Now lot of my windows application have disappeared. They show up with #{AppPackageName} in taskmanager or when searched using cortana for example #{Microsoft.ZuneMusic_2019.6.15131.0_neutral_~_8wekyb3d8bbwe}. I can not remove these app using any command like
Tried to install store app manually and get error Merge Failure : error 0x80070003 : Cannot register the Microsoft.WindowsStore_2015.21.25.0_x64__8wekyb3d8bbwe package because there was a merge failure with the following file: C:\Program Files\WindowsApps\Microsoft.WindowsStore_2015.21.25.0_neutral_split.scale-100_8wekyb3d8bbwe\resources.pri
Full log below:
Now I understand that store app is not getting add because add process is causing error or merge failure with another package (?). The problem is get/Add-AppxPackage are resolving dependency of application with package-version: Microsoft.WindowsCalculator_10.1510.13020.0_neutral_split.scale-100_8wekyb3d8bbwe
AND/OR
Microsoft.WindowsCalculator_10.1510.13020.0_neutral_split.language-hi_8wekyb3d8bbwe
My laptop c:\program files\windowsapp only has Microsoft.WindowsCalculator_10.1510.9020.0_neutral_split.scale-100_8wekyb3d8bbwe (not diff in version 13020 and 9020). Note: The version no on app is 13020 but dependent package on drive is 9020.
Second package is missing from drive (Microsoft.WindowsCalculator_10.1510.13020.0_neutral_split.language-hi_8wekyb3d8bbwe).
How to get my calculator and windows store application back.
<1>Create a new user account and Log into the new account
<2>You can also try
Running the System File Checker by running
sfc /scannow
Download files from Windows Update to replace the corrupt ones by running
DISM /Online /Cleanup-Image /RestoreHealth
You may try the following, at your own risk.
I had the same issue after trying to reinstall the apps via that powershell thingy. Fixed it and returned the apps to their out-of-box state by first wiping everything from C:\Program Files\WindowsApps and C:\Users*\AppData\Local\Packages and then reinstalling Windows over itself from the tech bench ISO (from under Windows and keeping "traditional" apps and files in place, of course). I had to use the ISO because the media creation tool wasn't cooperative at all, throwing some error at me. Just in case, the aforesaid wiping didn't cripple the vitals like the immersive control panel or something else, just the typical no start menu/dead modern apps/no right click on the taskbar items.
By the way, the whole problem started after the 1511 update. Modern apps would refuse to remember their settings, and windows shell experience host would freeze for no reason, taking the start menu and things like volume control with it. I've had this Windows installation for a couple of years now, and the system has gone pretty smoothly through the 8.0-8.1-10 update process over that time, but that 1511 screwed something big time.
I am new to citrix env.
When i run a PB application on Citrix environment, for a particular screen PB appl gets crashed without any error for the particulat screen. If I check the same in PB spource it is working fine. I dont know why it is happening.
Can you help me?
The multi-monitor hooks are the most common cause of unexpected behaviour on Citrix servers. So try adding an exception into the registry for your application to disable Citrix multi-monitor hooking to see if that helps. The following article describes how to do this:
http://support.citrix.com/article/CTX129712
Edit: for further ideas.
If disabling the MM hooks doesn't help, the only other thing I can think of is to check what DLLs are loaded in the process when it crashes. Check the stack dump you get from your crash and look at all the loaded DLLs, e.g. using Windbg to inspect your dump you can use the following commands:
http://windbg.info/doc/1-common-cmds.html#10_modules
Look for any Citrix DLLs loaded in the process space. You can then look for those files in the file system and temporarily rename them to hide them (so they won't get loaded into your process). Note: most Citrix DLLs live in C:\Program Files (x86)\Citrix\system32.
If that doesn't help all I can suggest is putting debugging tools on a Citrix server and debugging the app.
In windows-xp there are a lot of points where programs can be started automatically.
I would like to start a program before the programs in the startup folder are started. The user is logged on automatically, so there's not a big delay between starting up windows and logging in.
It must be a solution where i'm sure that the programs in the Startup folder are not started. So maybee the program should start before explorer.exe is started.
I see i can add the program in the registry (HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run) or create a service, but i'm not sure or thats the correct point.
Anybody an idea?
You could try Glary Quick Startup. It let's you delay the startup of programs and place them in the order that you want them to load.
I wouldn't use it to disable the startup of items though, see:
Dealing with Startup Processes
A good app for disabling programs from starting is:
Startup Control Panel
It doesn't hijack MSconfig registry keys. It's compatible with Win Vista and below.