Get the new PortableApps.com Platform 10.0: Gorgeous themes, a full portable app store and advanced functionality
Announcing the World's Best Flash Drive: The PortableApps.com Companion

auto start application

jackfusion - March 7, 2006 - 7:06pm

Sorry I have posted the information in Other App support as well not knowing where would be the best place for it.

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: http://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"


( categories: )

%HD%

Did you set this enviroemtnal value or is it already set within windows??

As far as I can tell, I cannot get this setup to work on my machine, it will not accept the %HD% variable.

***********************************
Deuce   {The Core}
"Portable Software: Just the beginning..."

Deuce
Portable Software: Just the beginning.