Jump to content

Shortcut explanation!?


BAM

Recommended Posts

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.lnk

The program is installed in the default dir, so everbody knows where that is. :yes:

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.

:P 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.

Link to comment
Share on other sites


<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...:(

Link to comment
Share on other sites

THNX !!!

That does the job! :thumbup

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?

Link to comment
Share on other sites

%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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...