Automatically launch app on USB (through autorun?) - usb

Is it possible to automatically launch an application from a USB flash drive (bypassing windows prompt asking user what he wants to do)? on windows XP or vista.
I looked into "autorun.inf" and "open" entry seems to work only for CD drives for Windows XP SP2+ and Vista. Is it possible to launch program automatically on all windows versions?
I don't care if autorun is disabled by user in Windows settings.

First of all, some people choose to disable autorun for security reasons; but Windows computers up to Vista have it enabled. Edit: Apparently the functionality was removed from Windows 7 onwards.
Put a file named autorun.inf in the root of your USB flash drive. This is what's in mine:
[Autorun]
Open=PStart.exe
Action=Start portable apps
Icon=diskicon.ico
What it does: when you insert this disk, starts PStart.exe
On older computers, the program specified in Open= will launch automatically.
On most modern computers (Windows XP SP2+, Vista), dialog "what do you want to do" will be displayed (for security reasons), but what you have in autorun.inf will display as the selected default, with Icon= as icon and Action= as description. If you want to launch it, just click the "OK" button in the dialog.
So, although I'm not aware of any way to start the application (e.g. PStart) immediately, it is possible to insert flash disk with this configuration and start application by clicking OK.
Tested on different computers, running Windows XP without a SP, also on Windows XP sp 1, sp2, sp3, and on various Vistas (not sure which types, but should work all the way from Vista Home Basic to Vista Enterprise Super-Mega-Premium-Extended Edition) and "Windows 7". Also works on Windows 2000 (although autorun on Win2000 for removable drives is not enabled in default configuration).
Note that some applications, in addition, may trigger the "unknown/unsigned exacutable" security dialog, as if you opened them manually.
Edit: For more details, see also:
Autoplay in Windows XP: Automatically Detect and React to New Devices on a System

I've had something set up on my USB keys for a while now. Using the autorun.inf file will work, depending on your system's settings for autorun. Some disable it altogether after that little debacle with Sony a couple years back installing rootkit software on peoples' machines. Here're a couple articles to check out.
Label a Flash Drive with Your Name and Number
Have Your Lost USB Drive Ask For Help (1) or 2

you need UseAutoplay to let this work on usb.
and if you take ShellExecute instead of open you can also open scripts/documents/...
[Autorun]
ShellExecute=System\something.exe
UseAutoplay=1

there are also U3 usb sticks arround, they will be reconised as cdrom drives in windows.
if you put an a autorun.inf on one of those, it will get executed without the user being questioned.
regards morla

I found the solution in this blog
How To Auto-Launch Apps With A USB Stick [Windows]
It worked fine for me
(the article explains how to do it with AutoIT, a 3rd party app that must be installed on the host computer)

Related

How to set up a PDF network printer that will keep the PDF file

I would like to find a way to have a Windows computer share a virtual PDF printer with other local computers (that first part is easy!). However, I would like the PDF to be saved on the print server and not on the computer from which the print out is initiated. Any idea how to do that?
This is going to depend on your skill at resolving other driver problems.
I was able after several false starts to get a 32bit Win 7 peer user (admin) to print on My Win 10 restricted user Virtual printer. But the output result is not great so would need to dig deeper, than I need, just to find out why.
I used a GhostScript Virtual Printer since It allows remote users on network to download its drivers for ARM x64 and x32
It is hosted on a 64bit Win 10 restricted account so I had to jump through hoops to get it seen and accessible on the network, and then had to dig into it share settings to see 32bit/Arm clients need an extra check box on.
It took some challenges to get the 32bit client to see printer was available but it ran from there with the above test page output in the 64bit printme folder, Whilst monitoring that file visually real-time a print from the client was transmitted and instantly appeared on the host screen without noticeable corruption unlike the test print!!.
So an issue you could have is how to stop clients from overwriting the file whilst they are post processed (renamed like in a port redirection monitor) since my GS virtual printer uses a single named NoPromptPort.pdf
Your question should in effect be answered, However My Question is why go this route? It would be so much simpler efficient and reliable for each client to MSPrint to NoPromptPort.PDF then simply copy their renamed.PDF to a server folder.

TIA PORTAL v11. Open existing project

I have to use an existing project in STEP7/TIA PORTAL v11 and I have the PLC (CPU 1212C AC/DC/RLY) with the code downloaded inside it which is connected to a touch panel (KTP600 Basic Color PN).
What I want is to download the code from the PLC to my computer to try to modify it, is this posible?
Because I've tried to connect it to my PC and it doesn't detect it. It turns on the ERROR and the MAINT leds in red.
The configuration is over a virtual machine (VMware player with Windows 7) because my PC has Windows 8 installed and it doesn't support TIA PORTAL is there any problem with this?
If program was uploaded with TIA11 it is not good idea to use v13. What is more with other version you need new licence keys.
From your vm ping the plc address if itis in right subnet. Then serch for sccessible nodes. On your picture i see that you should try using 'search all accessible devices'.
Upgrade to version 13 of TIA Portal. This version can run under Windows 8.
Under VMWare you have to change the network settings for your Virtual Machine to bridged. Also install VMWware Tools.
Those are some steps that I would try.
make sure you can ping it from inside your Virtual Machine. It will validate the route to the plc (cable, network config). It’s not a necessary step to connect to a plc, but it’s a good check.
Go to Control Panel on Windows, then PG/PC , then make sure that you have the right Hardware Interface Active
If you still not able to see the PLC, I advise you to to download PRONETA, if it still doesn’t show up there, then the research would have to go deeper. Until today, I’ve only one time in all year when a device have not apeares in Proneta.

signing of symbian app,is there any way now?

Since nokia doesn't sign symbian apps any more,is there any alternative to sign app for symbian?
may be some behind the scene hack or bypass?
symbiansigned.com and cer.opda.cn are dead, don't even mind getting developer certificates - just hack your phone, no way to do this otherwise nowadays:
https://shahbazalam781.blogspot.com/2013/04/hack-all-symbian-phones-s60v3-s60v5-s3.html
This works great, just try setting your phone Date & Time to somewhere about 2010-2012 when installing apps until it clicks. After hacking phone you won't need to do this anymore.
In case link dies:
SIMPLEST PROCEDURE: First Download 3 Files
DOWNLOAD-Norton-Symbian-Hack http://gallery.mobile9.com/f/3177996/
DOWNLOAD-Rom-Patcher-Plus-v31 http://gallery.mobile9.com/f/3178010/
DOWNLOAD-Xplore V1.58 http://gallery.mobile9.com/f/3175430/
Install “NortonSymbianHack.sisx”.
Launch it.
Go Options – Anti-Virus – Quarantine list.
Go Options – Restore. Accept prompt.
Exit application. Delete Norton from Application Manager (Symantec Symbian Hack). Also delete “C:\shared\” folder.
Install “RomPatcherPlus_3.1.sisx”.
Launch and apply patches:
Open4all for full access to file system.
Installserver for installing any unsigned applications.
(If “Installserver” has red cross, follow steps 8 to 15.) (If checked,
reboot now your phone.)
Note: Set patches to auto if needed. (Options – Add to auto)
Install X-Plore.
Open it.
Press (Menu – Tools – Configuration).
Check all (Show Hidden Files, etc.).
Open “installservers_pack.zip”.
Choose what Symbian OS you have. (List below)
Copy “installserver.exe” from the folder of your OS to “C:/sys/bin”. (No need to apply patch on RomPatcher.)
Reboot phone. Phone is now hacked.
Officially, you could of course continue using the developer certificates you might have, and if they are expired, the device time might be needed to be adjusted for the installation time.
Then also the self-signing works just as it used to. For any new certificates or signings, unfortunately there are no official help available.
You can use this app to sign Symbian apps.
The signing process is fail-able but the self-signing works perfectly.
Here's the link

IE11 Developer Tools Blank Network and Profile Tab

Extensively used IE9 Developer Tools and I just updated to IE11 "11.0.2" and the Developer Tools are garbage.
My Network and Profile Tabs are blank.
Is there a "special" setting that I'm missing in order to enable them, or could there be a specific windows hot fix between the IE11 RTM and 11.0.2 that I may be missing?
I had the same problem (version 11.0.9600.17633) on WIN7
Only on one of 4 accounts. Reinstalling IE11, etc did not help.
With regedit, I renamed HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer Old
I logged off, then logged on again and started Internet Explorer. This recreated the key. The network tab and profiler tab are no longer blank. Internet Explorer settings have been lost however. I assume the settings and state of Internet Explorer are the same as just after creating a new account.
The network tab was not working for me on Windows 10 Creators Update (Version 1703 OS Build 150063.540) in IE OR Edge.
After trying the various registry changes mentioned by others without success, I removed Internet Explorer as a Window Feature (Control Panel > Programs and Features > Turn Windows Features on or off).
I rebooted and opened Edge and the network tab was working again.
Then I went back into Programs and Feature and added IE back as in installed feature. I rebooted and now the network tab is working in both IE and Edge.
To make blank Network Panel/Profiler Panel appear again(also pin F12 developer tool not working either), delete the following registry DWORD key:
HKEY_CURRENT_USER\Software\Microsoft\Internet
Explorer\Main\TabProcGrowth
This key could be recreated automatically.
I still have this problem using IE 11.0.9600.18097 on Win 7 [Version 6.1.7601]. I post my solution here in case someone faces the same situation like me, that your company doesn't allow updating IE on your own. My
Possible related issue tracker:
https://connect.microsoft.com/IE/feedback/details/808417/ie-11-win-7-developer-tools-does-not-pin
Here is the solution: install the following patch from Microsoft and restart your computer:
https://www.microsoft.com/en-us/download/details.aspx?id=46507
This helped me for IE 11, Windows 10:
sc config diagnosticshub.standardcollector.service start=demand
(see https://www.systemcamp.com/network-collection-agent-failed-to-start-in-ie-11-or-edge/)
It's definitely worth getting the latest updates.
There shouldn't be any special settings. The only special/different thing about the network and profiler tools are the two tools that weren't rebuilt in IE11 and were just themed. However they should most definitely work just fine. Though there are some timing bugs that can cause the tools to hang and crash :(. But, that doesn't seem to be happening for you.
I'm a bit of a loss as to make recommendations on how to fix the issue as we've not seen the issue before (I work on the F12 tools at Microsoft).
If you try a different user account does the same issue happen? Is it happening on all your machines or just one? Does it happen on all pages or just some? (try both an intranet and internet site.)
I created a new local account, logged into that account and that solved this problem for me. All of the tabs in the developer tools work and I can now dock the developer tools as well which I could never do before.
more info:
Not sure if this is the full answer but this appears to be related to settings on your computer more then IE itself. For whatever reason I could not change visual settings or apply themes or change the desktop wallpaper. I followed all the online setting changes for fixing those things. Basically it can be setting changes in group policies/registry settings that disable this. However I'm pretty sure at one point I had a virus on my computer and that destroyed my settings so there was no real undoing of all the damage that it had done. So creating a new account was my only answer.
I doubt this would fix the issue but just to make sure it is not being caused by an extension have you tried running IE without extensions?
from run: iexplore.exe -extoff
This happened to me and the answer was that my machine (win8.1) wasn't being patched per the group policy since the rest of the company's on win7 and the patches are controlled.
When I forced the update-- there's a link on the windows update dialog box that says "Check online for updates from Microsoft Update". I got a gig a of stuff to dl and installed it and we were fine after that.
NOTHING until then- wiping bits of the registry, uninstall ie11, reinstall, etc, worked.
Change the value data in DWORD "TabProcGrowth" that located in "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main" to 1. close and open IE11 .
For me, Network tab stopped working one day and following worked:
Restart Microsoft (R) Diagnostics Hub Standard Collector Service
Just close IE11 and all its tabs and reopen

USB - autorun a web address

I currently have 2 files on it:
autorun.inf
start.url
autorun.inf contains 3 lines:
[autorun]
ShellExecute=start.url
open=start.url
start.url contains 5 lines:
[InternetShortcut]
URL=http://cnn.com
IDList=
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
Loads ok on Vista, but does not load on XP or Windows7.
Any clue what to change?
Is the autorun functionality disabled on the XP and Win7 boxes? If so you have to re-enable it.
See this article for how it was, probably, disabled in XP: How to disable the Autorun functionality in Windows
Though I think it could also have been disabled in a group policy.