As a newbie I am really struggling to do the simplest of tasks

I need to remove a shortcut left by an old application in the start menu 
 > startup directory.

I have tried to define a directory (under the component) and add a 
removefile tag in the component. But this does not work. Any clues as I 
can't find a single example on that is doing anything similar.

Any help greatly appreciated.

        <Directory Id="TARGETDIR" Name="SourceDir">
            <Directory Id="ProgramFilesFolder"  Name='PFiles'>
        <Directory Id='CourtneyThorne' Name='Courtney Thorne Ltd'>
                  <Directory Id="INSTALLDIR" Name="Call Manager 4.0">

            <Component Id='MainExecutable' 
Guid='f83bbc21-952a-43d4-8055-da2bea58b891'>
              <File Id='CallManEXE' Name='Call Manager.exe' DiskId='1' 
Source='Call Manager.exe' Vital='yes'>
                <Shortcut Id="startmenuCT" Directory="ProgramMenuDir" 
Name="Call Manager 4.0"
                  WorkingDirectory='INSTALLDIR' Icon="CallManager.exe" 
IconIndex="0" />               
                <Shortcut Id="desktopCT" Directory="DesktopFolder" 
Name="Call Manager 4.0"
                  WorkingDirectory="INSTALLDIR" Icon="CallManager.exe" 
IconIndex="0" />
              </File>
              <File Id='CallManConfEXE' Name='Call Manager.exe.config' 
DiskId='1' Source='Call Manager.exe.config' Vital='yes'>
              </File>
              <RemoveFile Id="oldinstallshortcut" On="install" 
Name="Launch logging.exe.lnk" Directory="oldlnkstartupfolder" />
            </Component>        

                  </Directory>
        </Directory>
            </Directory>

      <Directory Id="ProgramMenuFolder" Name="PMenu">
        <Directory Id="ProgramMenuDir" Name="Courtney Thorne Ltd" />
      </Directory>
     
      <Directory Id="DesktopFolder" Name="Desktop" />
      <Directory Id="oldlnkstartupfolder" FileSource="C:\Documents and 
Settings\All Users\Start Menu\Programs\Startup" Name="Call Manager 4.0" />
        </Directory>

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to