Want to create a autorun flashdrive - autorun

I want to create a flash drive that opens a exe file when it is plugged into a laptop/pc.
I dont want to make a Autorun.inf file. Those do not execute the program when it is plugged in, but give you the option of opening it. And i want it non-detectable from avast.
For my company, I need to install a new program on some of the Computers, I want to just plug in a flash drive to each of the computers and it installs my new program.
Operating systems to be used on: 7 and xp
Minimum space on each drive: 2gig
Antivirus: Avast

I don't think there is another way of automatically an .exe file without autorun, but autorun files does not run automatically in Windows Vista or higher.

Related

Windows Desktop doesn't show up on WSL

I just recently set up WSL with Ubuntu 18.04 on my new windows computer. I know that to access my windows files from the linux side, the C:\ drive is mapped to /mnt/c. When I try to cd to /mnt/c/Users/malik22/Desktop, however, I get a No such file or directory error. I access my window Downloads, Documents, etc. just fine from the linux side, but for some reason Desktop seems to be the only one not present.
I've been using WSL for over a year now on my old computer and have never run into this issue. Any ideas?
If your Desktop is backed up in your OneDrive it won't show up in your user directory.
You can either create a symbolic link as mentioned below by #raghav-malik or else choose to not back up your Desktop (you can instead back up your Documents directory).

Installing USB drivers before plugging in the device

We have a device that requires we install drivers before it's plugged in, otherwise we need to remove the drivers that Windows 8 and 10 automatically download.
How do we make a USB driver installer that can install correctly whether it's plugged in first or not?
On Windows 10, my simple driver for usbser.sys with just an INF file and a CAT file will automatically take precedence over Microsoft's usbser.inf that they supply in Windows 10. But if that doesn't happen for your particular driver/device, you might look into using DevCon, an open source utility from Microsoft that can be used to list devices and update their drivers. I have never used DevCon in an installer, but I think I have noticed other installers that use it. There is an MSYS2 package for DevCon.
We use DPinst which is a Driver Package installer program that Microsoft supply. It is quite flexible & straightforward to use & can give you a pretty standard wizard UI.

Windows 8 advanced startup command prompt documentation

I take part in development of disk filter driver.
Windows 8 has special recovery mode: Advanced Startup Command Prompt.
It is similar to Safe Mode Command Prompt in previous versions of Windows. But it works differently. For example not all commands are available. And not all drivers are loaded. And our driver is not loaded too.
Our driver must be loaded, because it encrypt/decrypt disk content. Without it disk content is unavailable.
How we can solve this problem? How driver can force Windows to load it in Advanced Startup Command Prompt? Probably we need to develop special type of driver, for this mode?
I cannot find detailed documentation about how Advanced Startup Command Prompt works. Is such documentation exist?
just add a small unencrypted boot bcd/swap partition upon making your install image. windows makes its own 300 meg partition too. simple to build.
3 partitions after a diskpart clean
1 windows partition (installed upon w8 1st reboot on install)
2 ntfs partition unencrypted that holds the BCD, SWAP, some other stuff
3 a single VHD File, or more :), on a huge encrypted partition
use easy bcd to choose the vhd of your choice, if you go from disk to disk, all you need is the VHD and the original BCD that the Windows was installed into. Basically a windows installation ties to the BCD, cant move one vhd from one disk to another without the BCD.
Pro,Ultimate,Server, et al are vhd bootable

Can't execute ISETool.exe from the command prompt (Windows 8)

I'm trying to use the Isolated Storage Explorer tool from Windows Phone SDK in order to retrieve data stored in specific Windows Phone Apps' IsolatedStorage and copy it to a folder that resides in my computer.
My computer runs Windows 8 Pro, and i have both the WP7 and WP8 SDKs installed.
The problem is that when i run the command prompt and insert a command line (such as the one below) i get an error that states:
"This app can't run on your PC"
How do i solve this? Thanks
Example:
ISETool.exe ts xd f8ce6878-0aeb-497f-bcf4-65be961d4bba c:\data\myfiles
I'd suggest you try using the Windows Phone Power Tools instead of what you are doing there. It will give you a nice UI to work with instead of trying to get a command line tool to work.
If you really want to use that tool then please post which directory you are running it from otherwise it is hard to tell why it won't work.

Autorun.inf on a usb can you get it to run a pdf?

I've done some research all over the net, I guess I am just looking for conformation.
Due to how Microsoft has put security on autorun in vista and above. Autorun from a usb no longer works. Correct? It seems like it will still bring up the options to run .exe but for some odd reason I cannot get it to run a .pdf. This site has suggested that I load up a pdf reader and run that and then call it to run the pdf. But a generic pdf reader would still have to go through the install prior to running it, something I am trying to avoid.
The other idea I came up with was cause of this specialty usb manufactures have stated that they their usb drives can autorun files because they are formated to be local disks.
So after some experimenting and doing this I converted my usb to a local to see if that would work and pasting the autorun.inf in there with the correct code...
[AutoRun]
shellexecute=mypdf.pdf
icon=mypdf.ico
label=mypdf
sadly it does't work
Also after thinking about it creating a local disk would only work with the driver software that I loaded up onto that usb... so say it is a 64bit and the client has a 32bit it wont run. (right?)
Can someone just confirm that there is no way to autorun a pdf from a usb? or even have it as an option to select from when it is plugged in for the first time. I cannot believe I have spent an entire day trying to just get autorun to work.
Thanks for taking the time to read this nub question
Try using a PDF viewer which does not require installation, eg:
http://www.snapfiles.com/get/sumatrapdf.html
From this site:
http://www.snapfiles.com/features/ed_usb_software.html
Using sumatraPDF portable installation you can launch that from the flash drive.
The way I did it is by creating autorun.inf with the following:
[autorun]
icon=autorun.ico
label=Label for Drive
action=Action Description
open=autorun.bat
And a autorun.bat file with the following:
start SumatraPDF.exe ../pdfname.pdf
However, if the user has autorun turned off it will not work and in Windows 7 and above autorun functionality for flash drives is restricted to label and icon only.