BAM Posted August 22, 2004 Posted August 22, 2004 Hi all,I looked all over the place but didn't find the answer on how to use the shortcut command in XPlode.So hopefully someone is willing to help me out with this one.All i want to do when i create my custom startmenu to make shortcuts in those directory's to the programs i installed through XPlode.Example: i create a folder in my startmenu called: Tools.<item display='Creating start menu folders'><execute display="Tools" program='cmd' arguments='/C mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Tools"' hide='true' />After that i want in the folder Tools a shortcut called: WinRAR.lnkThe program is installed in the default dir, so everbody knows where that is. How am i going to do that? Did a try allready with the code from the example.xml.But when i executed it, i got a shortcut in my XPlode dir. haha, funny, but not what i amed for.This is what i try'd: <item display='Creating Start Menu shortcuts'><shortcut display='WinRAR shortcut' program='%systemdrive%\Program Files\WinRAR\WinRAR.exe'description='WinRAR'workdir='%ALLUSERSPROFILE%\Start Menu\Programs\Music\Winrar.lnk'arguments=''link='WinRAR.lnk'/>Can some help me understand this one!!?Thnx in advance.
evilvoice Posted August 23, 2004 Posted August 23, 2004 <item display='Creating Start Menu shortcuts'><shortcut display='WinRAR' program='%ProgramFiles%\WinRAR\WinRAR.exe'description='WinRAR'workdir='%ProgramFiles%\WinRAR'arguments='%1'link='%ALLUSERSPROFILE%\Start Menu\Programs\Music\Winrar.lnk'/>try that...i think thats how its supposed to work...I dont like spaces...especially when im not 100% sure that it will see the directory correctly...but people who use xplode should know...I just havent upgraded to it yet, am still trying to perfect everything else before moving over...
BAM Posted August 23, 2004 Author Posted August 23, 2004 THNX !!!That does the job! Only thing to change was to remove te %1 in arguments.Otherwise you get WinRAR.exe%1, and that is not recognised ofcourse!Try this one, works super now:<XPlode> <config> <hidewindow>Windows Update</hidewindow> <hidewindow>CMD.EXe</hidewindow> <show total='10' after='2' subcount='true' /> <!-- turn antialiasing OFF if you're running GUIinstall mode --> <font face='Tahoma' antialias='false' small='8' large='12' /> <!-- note the position attribute - it is listed in 'x,y' positions. --> <!-- 0..8 still may be used. --> <window width='440' position='4' fixmain='0' /> <windowmode mode='guitransparent' /> <!-- can be standalone, guitransparent, or guiredraw --> <!-- for the latter two, you don't need to specify background colours, or images. --> <colours> <header back='#003399' fore='#FFFFFF' image='%XPLODE%\images\head.png' /> <footer back='#003399' fore='#FFFFFF' image='%XPLODE%\images\foot.png' /> <progress border='#FFFFFF' back='#00000000' fore='#FF6600' fore2='#00000033' /> <main back='#FF00FF' fore='#FFFFFF' current='#FFFF00' description='#FFFFFF' image='%XPLODE%\main2.png' overlay='#FF00FF'/> </colours> <strings> <!-- main XPlode string --> <title>Post-Install Configuration</title> <complete>complete</complete> </strings> </config> <items> <item display='Creating start menu folders'> <execute display="Test" program='cmd' arguments='/C mkdir "%ALLUSERSPROFILE%\Start Menu\Programs\Test"' hide='true' /> </item> <item display='Creating Start Menu shortcuts'> <shortcut display='WinRAR' program='%ProgramFiles%\WinRAR\WinRAR.exe' description='WinRAR' workdir='%ProgramFiles%\WinRAR' arguments='' link='%ALLUSERSPROFILE%\Start Menu\Programs\Test\Winrar.lnk'/> </item> </items></XPlode>Thnx again!EDIT:Forgot to ask.. What is the purpose of the %1 thingy?
evilvoice Posted August 25, 2004 Posted August 25, 2004 %1 tells it to open the file...basically, its like this, from dos batch days, you enter say winrar.exe blah.rar...blah.rar is %1...if you dont use %1 then you will just open winrar.exe and not blah.rar. well, rack another point for me on the stupidity scale...if youre adding a shortcut to the start menu, you dont need %1, cause youre not opening a file, youre opening the program...man, anymore stupid points and I think Ill need to go back to high school. Is there a D'oh smiley LOL
zprog Posted August 25, 2004 Posted August 25, 2004 man, anymore stupid points and I think Ill need to go back to high school.Hey, that's harsh. Be helpful, not insulting.
evilvoice Posted August 25, 2004 Posted August 25, 2004 hmmm, since I was talking about MYSELF, how am I being insulting to anyone...you really should learn to read ALL of it before you post...but its ok
BAM Posted August 26, 2004 Author Posted August 26, 2004 Yeah!! i agree with zprog!Don't insult yourself!!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now