You are here

help with auto start

3 posts / 0 new
Last post
jackfusion
Offline
Last seen: 14 years 1 month ago
Joined: 2006-03-06 12:35
help with auto start

When I change
[HKEY_CLASSES_ROOT\USBStart\DefaultIcon]
@="H:\\pstart.exe,1"
to
[HKEY_CLASSES_ROOT\USBStart\DefaultIcon]
@="%HD%\\pstart.exe,1"
and
[HKEY_CLASSES_ROOT\USBStart\shell\open\command]
@="H:\\pstart.exe"
to
[HKEY_CLASSES_ROOT\USBStart\shell\open\command]
@="%HD%\\pstart.exe"

it gives me an error H:\ Access is Denied. Is there a way to fix this?

source: https://portableapps.com/node/429

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\MixedContentOnArrival]
"USBStart"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\ShowPicturesOnArrival]
"USBStart"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayMusicFilesOnArrival]
"USBStart"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\USBStart]
"Action"="Open pstart"
"DefaultIcon"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\
53,00,48,00,45,00,4c,00,4c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
00,38,00,00,00
"InvokeProgID"="USBStart"
"InvokeVerb"="open"
"Provider"="PStart"

[HKEY_CLASSES_ROOT\USBStart]
@="PStart (ISO)"

[HKEY_CLASSES_ROOT\USBStart\DefaultIcon]
@="H:\\pstart.exe,1"

[HKEY_CLASSES_ROOT\USBStart\shell]

[HKEY_CLASSES_ROOT\USBStart\shell\open]

[HKEY_CLASSES_ROOT\USBStart\shell\open\command]
@="H:\\pstart.exe"

nm35
Offline
Last seen: 17 years 7 months ago
Developer
Joined: 2005-12-12 17:13
If you want to autorun

If you want to autorun PStart when it's inserted into the drive, you could try looking at my latest blog post, which covers the matter.

~nm35
a.k.a. Mark

Deuce
Offline
Last seen: 13 years 7 months ago
Developer
Joined: 2005-12-24 16:32
As far as I know.....

Between searching and experience, the regiustry cannot use such environmental variables as %HD%, just those such as %Systemdrive%, or other such syatem variables. Microsofts work, what can you say, eh.

IT must be hard coded. What I do is just keep a .reg file with the reg entry on my drive, when I go to a new machine I want to set it up on, I then change the letter in the reg file to the machines letter, and import, all fixed.

The way windows works, when you put that usb drive it it will basically reserve that letter, even when the drive is not in the machine, so it should work everytim, from then on.
***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.

Topic locked