Hi
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
Turin
Who did you create the desktop Icon
Started by
Guest_Turin Turumbar_*
, May 05 2007 02:18 PM
2 replies to this topic
#1 Guest_Turin Turumbar_*
Posted 05 May 2007 - 02:18 PM
#2
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" SectionEnd 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" SectionEnd
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."
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."
#3
Posted 06 May 2007 - 11:46 AM
Thanks!
Does work!
that had helped me very much, thank you!
Does work!
that had helped me very much, thank you!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users