04-28-2010, 05:11 PM
After reading help file hive default 0...will play around...but this explains some of the trouble I was having.
...
Yes...that was it. Needed to add HKEY_LOCAL_MACHINE as hive. Now to just figure out those InvokeProgramID and the Provider and I'll be clipping along.
...
Does not run the program off the USB drive...but does create the AutoPlay item.
Function Function68
...
Just wrote:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+MixedContentOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+PlayMusicFilesOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+PlayVideoFilesOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+ShowPicturesOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+MixedContentOnArrival = "QMAutoPlay"
to the registry...doesn't associate autoplay. There must be somewhere else that works with this....any ideas?
...
Wow...there are a lot of places in the registry where this information is written. I'm gonna need help to do this automatically without screwing things up!!
Perhaps I'll just configure the systems manually using Properties -> AutoPlay tab...not really how I want to do it...this will take me at least two days, maybe three!!
...
I still haven't actually gotten the exe to run off the USB drive.
...
Yes...that was it. Needed to add HKEY_LOCAL_MACHINE as hive. Now to just figure out those InvokeProgramID and the Provider and I'll be clipping along.
...
Does not run the program off the USB drive...but does create the AutoPlay item.
Function Function68
rset("NT IT" "Action" "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\QMAutoPlay" HKEY_LOCAL_MACHINE)
rset("%SystemRoot%\system32\SHELL32.dll,194" "DefaultIcon" "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\QMAutoPlay" HKEY_LOCAL_MACHINE)
rset("QMAutoPlay" "InvokeProgID" "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\QMAutoPlay" HKEY_LOCAL_MACHINE)
rset("QMAutoPlay" "InvokeVerb" "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\QMAutoPlay" HKEY_LOCAL_MACHINE)
rset("NT IT" "Provider" "Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\QMAutoPlay" HKEY_LOCAL_MACHINE)
rset("" "QMAutoPlay" "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\MixedContentOnArrival" HKEY_LOCAL_MACHINE)
rset("" "QMAutoPlay" "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival" HKEY_LOCAL_MACHINE)
rset("" "QMAutoPlay" "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayDVDMovieOnArrival" HKEY_LOCAL_MACHINE)
rset("" "QMAutoPlay" "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayMusicFilesOnArrival" HKEY_LOCAL_MACHINE)
rset("" "QMAutoPlay" "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayVideoFilesOnArrival" HKEY_LOCAL_MACHINE)
rset("" "QMAutoPlay" "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\ShowPicturesOnArrival" HKEY_LOCAL_MACHINE)
Just wrote:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+MixedContentOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+PlayMusicFilesOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+PlayVideoFilesOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+ShowPicturesOnArrival = "QMAutoPlay"
H:\\?\STORAGE#RemovableMedia#x&xxxxxxxx&0&RM#{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}+MixedContentOnArrival = "QMAutoPlay"
to the registry...doesn't associate autoplay. There must be somewhere else that works with this....any ideas?
...
Wow...there are a lot of places in the registry where this information is written. I'm gonna need help to do this automatically without screwing things up!!
Perhaps I'll just configure the systems manually using Properties -> AutoPlay tab...not really how I want to do it...this will take me at least two days, maybe three!!
...
I still haven't actually gotten the exe to run off the USB drive.