Jump to content











Photo
- - - - -

Shortcut.inf


  • Please log in to reply
4 replies to this topic

#1 niche99

niche99

    Frequent Member

  • Advanced user
  • 235 posts
  • Location:Aberdeen, Scotland
  •  
    Scotland

Posted 09 September 2006 - 01:40 PM

Hi,

TXTAddLine,"%TargetDir%\i386\system32\shortcut.inf","1,!PE\Programs\Debug\Depends\depends.exe,!SM\Programs\Debug\Dependency Walker 2.1","Append"

This line is successfilly added to shortcut.inf. B:\ProfilesDir and all subdirs exist. However, shc.au3 does not generate the shortcut. :P

Any help appreciated.
niche99

#2 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 09 September 2006 - 02:07 PM

Do you use the new shortcuts script? THe old versions doesn't support spaces .

#3 niche99

niche99

    Frequent Member

  • Advanced user
  • 235 posts
  • Location:Aberdeen, Scotland
  •  
    Scotland

Posted 09 September 2006 - 02:11 PM

Do you use the new shortcuts script? THe old versions doesn't support spaces .


I did an update, server says [4] computer says "No" :P , I mean Winbuilder says [4]. I assume I have the latest version.

Is shortcut generation dependant on an explorer shell running?

niche99

#4 niche99

niche99

    Frequent Member

  • Advanced user
  • 235 posts
  • Location:Aberdeen, Scotland
  •  
    Scotland

Posted 09 September 2006 - 05:04 PM

Hi,

I did a bit more testing.

TXTAddLine,"%TargetDir%\i386\system32\shortcut.inf","1,!WD\system32\depends.exe,!SM\Dependency Walker","Append"

works fine.

TXTAddLine,"%TargetDir%\i386\system32\shortcut.inf","1,!WD\system32\depends.exe,!SM\Debug\Dependency Walker","Append" - does not work

is not generated.

This would seem to indicate that subdirs of Start Menu\Programs are not being created or are not parsed correctly by the script.

niche99

#5 Draugen

Draugen

    Frequent Member

  • .script developer
  • 147 posts
  • Location:South of Heaven

Posted 09 September 2006 - 07:20 PM

IIRC, you need to create folders first.

TXTAddLine,"%TargetDir%\i386\system32\shortcut.inf","2,!SM\Debug" 

TXTAddLine,"%TargetDir%\i386\system32\shortcut.inf","1,!WD\system32\depends.exe,!SM\Debug\Dependency Walker","Append"


should work. the '2' at the start of the line says 'create a dir, not a shortcut' :P

//martin




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users