Autolaunch exe on USB in windows XP SP3 - windows

I want to autolaunch my application on USB as soon as I plug it into a PC running on windows XP SP3. I have made an autorun.inf (having below written code) and also tried to lauch setup using a batch file(autorun.bat) but none of these seem to be working.
I have also read that a particular windows update (KB971029) disables the autorun/autoplay feature of USB. How can I overcome it? (I can't ask my client to uninstall a windows security update for using my product..)
Code Of autorun.inf file
[autorun]
UseAutoPlay=1
icon=setup.exe
Open=setup.exe
action="Start my application"
Label=setup
[Autoplay]
shellexecute=autorun.bat
Icon=setup.exe
My product contains some media (video) files too so on inserting the USB I get a pop up asking following options
1.) to open files in explorer
2.) play files using media player
3.) take no action

If autorun is disabled, you cannot use autorun. It's that simple.

Related

WindowsPE - How to run electron app, missing dll

Hello Computer enthusiasts,
i try to run my electron app on windows pe.
When i try to start the app trough the "startnet.cmd" nothing happens.
If i want to start it over "procex64.exe" (Windows Process Explorer, from Sysinternals) i get the error that some ddl's are missing
msdmo.dll
dxgi.dll
d3d9.dll (DirectX ?)
dxva2.dll
Anyone know what this is, how i can fix that problem ?
Thanks for any advice.
Found a solution:
copy they files from a full windows installation to your windows pe image,
c:\windows\system32:
BCP47Langs.dll
d3d9.dll
d3d11.dll
dxgi.dll
dxva2.dll
msdmo.dll
(Tested/Found on Windows 10 Pro)
Is just a simple electron app with a single page and a few buttons. Perhaps there are other *.dll's if you work with media files or similar.

Custom ROM Samsung SM-G53OT1

I've been using this phone a while, and I have been through tough times with it. Two bootloops, Google Play Services crashing infinitely, weird errors, everything. I'd say I've "bonded" with this Samsung and would like to take it up a notch.
I've been looking everywhere for ROMS for this phone and I haven't been able to find any, not figure out how. Maybe I'm just stupid but man it's aggregating.
I have a PC, Samsung driver's, Odin, and of course, my Samsung. I have everything I believe is necessary to flash a custom ROM.
I would appreciate ANY help to get a nice ROM for my phone.
At the minimum, I'd like it to have a theme changer.
Samsung Galaxy Grand Prime One
SM-G53OT1
You can install CM 13 on your SM G5series
CM 13 is a custom ROM used in android devices.
your warranty will be void if you install a custom rom.
careful that installing a custom ROM would sometimes injure your device
permanently.
Follow these steps to root your device to enjoy vast features
Download a recovery.img,USB driver and ADB tools for your corresponding device(extract and install them and keep the extracted file in one folder)
Download and Copy the zipped cm13 and gapps6(arm)to your device's internal or SD storage
Connect your device to a PC in USB debugging mode(just tap 7 times on the developer options in settings to enable USB debugging)
open program files,open minimal adb tools.Type CMD in location bar to open the command prompt in that folder)
type "adb devices" in the CMD without quotes.
"fastboot recovery.img"
Your device will be reboot and
Team win recovery is opened
wipe the system ,cache,dalvik cache
select INSTALL from the option
choose the zipped file cm13 and swipe it to flash the custom ROM.
choose the zipped file gaapps and flash it by swiping.
Your device will be updated to marshmallow after rebooting

Detect all connected monitors using Windows API

I am using Windows 7. When I plug a new monitor when the PC is running, the monitor is not automatically detected. I must go to the Display->Screen Resolution and click on the Detect button in order to detect the monitor with the registry configuration.
I am searching for a way to do the same programmatically using the Windows API. So I would like to write a program that detects all connected monitors reproducing the Detect button. I tried using ChangeDisplaySettingEx but with bad results. Any suggestions?
Not really a WinApi but try this utility:
C:\Windows\System32\DisplaySwitch.exe
DisplaySwitch.exe /internal - Switch to Primary only
DisplaySwitch.exe /external - Switch to Secondary only
DisplaySwitch.exe /clone - Clone desktop on both screens (Not HDCP compliant!)
DisplaySwitch.exe /extend - Extend desktop to both screens
In particular, try /extend switch, it should perform detection internally.
Not an API solution, but you can use MS's DevCon utility on the command line to scan for new hardware.
https://support.microsoft.com/en-us/kb/311272
Download it from that page, then just execute this from a cmd window:
devcon.exe rescan
You can easily create a .bat or .cmd file to run this from a link.
You should read this if you want to learn about display-aware apps.

Auto Open USB Drive on Mac 10.6/7/8/Windows XP/Vista/7

I'm creating a FAT32 formatted USB Stick/Drive to ship a product. We'd like it to behave a bit more like the hybrid CD/DVD's that we create:
Insert the disk on Mac 10.6 or later and the drive opens up and shows you a window with the application in it. We can do it from a DMG or CD but the USB drive doesn't seem to want to honor the bless command.
On Windows, we've set up an autorun.inf. On XP it's not showing the icon, label, or opening the specified file. I know that you can't have Windows Vista and Windows 7 automatically open something or add an entry to the AutoPlay list by default, but it still should show the Volume Label and icon.
Here is my autorun.inf:
[AutoRun]
Action="Install My Cool App"
Open="InstallThis.exe"
icon="Ultimate.ico"
[Content]
MusicFiles=false
PictureFiles=false
VideoFiles=false
Are these things too much to ask for a USB stick? Anyone else out there shipping things on a USB flash drive and have overcome these issues?
As of Windows 7, AutoRun feature is not supported on USB drives. Only the following commands are supported:
label
icon
See Improvements to AutoPlay on Engineering Windows 7 blog.
Examples in Autorun.inf Entries do not use quotes for values. Does it work without the quotes?
MacOS might have implemented a similar approach to Windows 7: do not autorun anything from a flash drive automatically to protect you from malware.

Error: Could not load the assembly file

I got the following error when running my first HelloWorld Windows phone 7 application.
Could not load the assembly file://\linkdotnet.local\linkdev\salma.mohamed\my documents\visual studio 2010\Projects\Assign1\Assign1\obj\Debug\Assign1.dll. This assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information.
Any Idea how to resolve it.
Thanks alot in advance.
I am assuming this assembly was in a zip file you downloaded from the internet? if that is the case you need to 'unblock' it. Right click the assembly within Windows Explorer, the click the 'unblock' button. See the example below:
A likely cause of this error is if you load you Windows Phone project from a network share. Visual Studio will not trust the DLLs in this case. If you move the project folder to a local machine it will work (if this is the issue in your case)
ColinE this is not that at all:
This error is typically when you didn't have followed the unlock process as requested by MS and compile on the device instead of Emulator.
To unlock, follow the MSDN steps:
Turn on your phone and if necessary unlock the phone screen.
On your phone, ensure that the date and time are correct
Using the USB cable that came with your phone, connect your phone to your computer
On your computer, the Zune software starts automatically. If Zune does not start, then start it manually.
On your computer, click Start, click All Programs, and then click Windows Phone SDK 7.1.
Click Windows Phone Developer Registration.
The application starts, as shown in the following image. Verify that the Status message displays Phone ready. Please enter your Windows Live ID and password and click "Register" to begin.
f your phone is already registered, the Status message will indicate this and you will see an Unregister button.
Enter the Windows Live ID and password that correspond to your App Hub membership.
Click Register.
As referenced in MSDN
that way you will always be able to use your phone to test your application "in situ" instead of the emulator.

Resources