I am writing a program in qt that will be installed on a flash drive. I need it to run on several operating systems as soon as it is plugged in. I was thinking I could do this by putting all of the different os compiles in separate folders and having the autorun for each os in the first part of the drive. Would this work? It is supposed to be somewhat like sandisks u3 in the fact that it pops up as soon as it is plugged in and runs off the drive.
2
There are 2 best solutions below
0
rubenvb
On
I had a friend that fixed an auto-sync script on his thumb drive.
On Windows it basically boils down to a single AutoRun.inf file.
On other platforms, I don't know. On Linux, it will probably depend on Desktop Environment and security settings.
Related Questions in C++
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
- I want to be able to use 4 different variables in a select statement in c ++
- segmentation fault: 11, extracting data in vector
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- How can I print all the values in this linked list inside a hash table?
- Configured TTL for A record(s) backing CNAME records
Related Questions in QT
- C++ template using pointer and non pointer arguments in a QVector
- Using QPointer and QObject::connect with C++11
- qt How to style a QToolBar > QToolButton overflow button?
- Qt - Repeatedly write at beginning of file
- C++ Mongodb driver, not working
- deletion and cleanup of worker thread in Qt crashes
- How to drap item from QTableView to QPushButton?
- get image type from qimage
- C++ QT Getting part from QString
- How to connect a destroyed signal of C++ object from QML?
- How to get shader version from QOpenGLShader?
- Size of Qt QRadioButton able to get smaller, but not larger than default
- error WinSock.h has already been included Boost Windows Qt
- How to call a non-class member function with pointers as parameters with QtConcurrent::run?
- What is the difference between MinGW SEH and MinGW SJLJ?
Related Questions in AUTORUN
- Run batch file from usb flash when it's connected to pc
- Ways to autorun my C# app during startup in Windows 8
- Relative Link To Local File
- C# Application autorun exception
- How to autorun commands on OSX when ssh remotely?
- autorun excel file in windows 7 using CD or Pen drive
- jQuery each method for dynamic elements autorun
- Autorun USB in Windows 10?
- Alternative to using Flash Projector as Autorun Interface?
- Hide main form C# on autorun
- CD to Auto-Open Webpage
- Cross platform autorun
- auto import all sub modules in a folder then invoke same name functions - python runtime inspect related
- How does Flash Auto-Update launch at logon in Windows?
- Problem making an autorun file to open cd content plus an application
Related Questions in USB-FLASH-DRIVE
- Issue executing command prompt command in VB
- usb sniffing with wireshark
- Cross platform autorun
- Are there any decent Windows Phone 7 device one can connect a usb flash drive to?
- Python off a Flash Drive, how to start IDLE?
- Is there a way to mount an external hard drive as a USB Flash Drive?
- Android ContentResolver with data on a USB stick
- How to work programmatically with MBR and sectors of USB flash?
- python with flashdrives and linux commands
- Create fake flash drive programmatically
- How to prevent windows from accessing and detecting new volumes while writing a raw image file to PhysicalDrive?
- Want to create a autorun flashdrive
- How to get a file on a memory stick read into a python script?
- Longevity of flash drive in Iphone
- Running Mercurial on a Flash Drive?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It would certainly work - basically each autorun configuration file is OS specific, and you can specify exactly which executable to run on plug-in.
The Sandisk U3 platform is a rather devious trick around a typical Windows setting, which forbids autorun from a flash device, but allows it nonetheless on an CDrom drive. U3 device has two partitions, one of which (around 16MB) holds an ISO image, that, together with the special USB controller, gets recognized as an optical drive.
If you can get a hand on one of those drives, they can be reprogrammed to do anything else you want.