Jump to content











Photo
- - - - -

[geloest] Mehrere Verknuepfungen im Menu bei einem Programm.script - wie ?


  • Please log in to reply
2 replies to this topic

#1 ds2k5

ds2k5

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 05 July 2010 - 11:55 AM

Hallo,
ich wollte mir ein vorhandenes script anpassen für Testdisk & Photorec schreiben.
Aber nur die Verknuepfung im Startmenu fuer Photorec erschreint in der Programmgruppe/Ordner: Tools.
Was mache ich falsch ?

Hier mein Script:

[Main]
Title=TestDisk & Photorec
Description=Filerecovery
Type=script
Selected=True
Level=5
Author=ds
Contact=http://www.cgsecurity.org/wiki/TestDisk_DE
Credits=http://www.cgsecurity.org/wiki/TestDisk_DE
Locked=false
Version=1
Date=05.07.2010
Mandatory=False
Download_Level=1

[Variables]
// title of the program (shortcut name
%ProgramTitle%=Testdisk
// folder name in program files directory
%ProgramFolder%=Testdisk
// name of executable
%ProgramEXE%=win\testdisk_win.exe
// title of the program (shortcut name
%ProgramTitle%=Photorec
// folder name in program files directory
%ProgramFolder%=Testdisk
// name of executable
%ProgramEXE%=win\photorec_win.exe


// Name of folder to prepare application within
%TmpFolder%=%GlobalTemp%\%ProgramFolder%
// path to templates
%TemplatesFolder%=%GlobalTemplates%
// path where program templates are stored
%ProgramTemplate%=%Target_Prog%\%ProgramFolder%
%orig_download%=testdisk.zip

[Process]
Echo,"Processing %ProgramTitle%..."
RunFromRam,%pRunFromRAM%
Set,"%ProgramTemplate%","%Target_Prog%\%ProgramFolder%"
If,NotExistDir,"%ProgramTemplate%",DirMake,"%ProgramTemplate%"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%ScriptDir%\prog\%orig_download%#$q -o#$q%ProgramTemplate%#$q"
run,%ScriptFile%,Setting
If,%pCheckBox2%,Equal,True,Add_Shortcut,StartMenu,%pTextBox1%


[Setting]
Echo,Processing registry...

[Interface]
pCheckBox1="Run from ram (boot.wim)",1,3,16,50,183,18,True
pCheckBox2="Create Startmenu Shortcut",1,3,17,89,185,18,True
pTextBox1="Start menu folder (blank for none):",1,0,33,125,168,21,Tools
pTextBox2="Name for Shortcuts:",1,0,33,168,168,21,Testdisk


Danke
Gruss ds2k5

#2 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12688 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 06 July 2010 - 09:44 AM

Du hast praktisch auch nur "Photorec" definiert, da die Photorec-Definitionen die vorher gemachen TestDisk-Definitionen überschreiben.

Wenn Du (was empfehlenswert ist) die Common-API benutzt, musst Du für jede App ein separates Script schreiben.

Peter

#3 ds2k5

ds2k5

    Newbie

  • Members
  • 19 posts
  •  
    Germany

Posted 06 July 2010 - 09:48 AM

OK, danke für den Tip




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users