Jump to content

Who did you create the desktop Icon

  • Please log in to reply
2 replies to this topic

#1 Guest_Turin Turumbar_*

Guest_Turin Turumbar_*
  • Guests

Posted 05 May 2007 - 02:18 PM

i have a Question:
How did you make, that you desktop Icon automaticly finds the right path to the lotrbfme2.exe, i am working on a Mod to, but I cant find how to make that!
PLS help


#2 Bart


  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 05 May 2007 - 09:18 PM

here is the Nullsoft Installer script
Name "Battle for Middle-earth II Deluxe Edition"
OutFile "bfme_2_deluxe_0_50.exe"

InstallDir "$PROGRAMFILES\BFME2DeluxeEdition"
InstallDirRegKey HKLM "Software\BFME2DeluxeEdition" "Install_Dir"

Page directory
Page instfiles

UninstPage uninstConfirm
UninstPage instfiles

Section "BFME2DeluxeEdition"
 ; Set output path to the installation directory.
  SetOutPath $INSTDIR
 ; Put file there
  File "bfme_2_deluxe_0_50.big"
 ; Make shortcut
  ReadRegStr $R0 HKLM "SOFTWARE\Electronic Arts\Electronic Arts\The Battle for Middle-earth II" "InstallPath"
  CreateShortCut "$DESKTOP\Battle for Middle-earth II Deluxe Edition 0.50.lnk" "$R0\lotrbfme2.exe" '-mod "$INSTDIR\bfme_2_deluxe_0_50.big"'
 ; Write the installation path into the registry
  WriteRegStr HKLM "SOFTWARE\BFME2DeluxeEdition" "Install_Dir" "$INSTDIR"

 ; Write the uninstall keys for Windows
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition050" "DisplayName" "Battle for Middle-earth II Deluxe Edition 0.50"
  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition050" "UninstallString" '"$INSTDIR\uninstall_050.exe"'
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition050" "NoModify" 1
  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition050" "NoRepair" 1
  WriteUninstaller "uninstall_050.exe"


Section "Uninstall"
 ; Remove registry keys
  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition050"

 ; Remove files and uninstaller
  Delete "$INSTDIR\bfme_2_deluxe_0_50.big"
  Delete "$INSTDIR\uninstall050.exe"

 ; Remove shortcuts, if any
  Delete "$DESKTOP\Battle for Middle-earth II Deluxe Edition 0.50.lnk"


bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#3 Turin Turumbar

Turin Turumbar
  • Members
  • 99 posts

Posted 06 May 2007 - 11:46 AM

Does work!
that had helped me very much, thank you!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users