anyone got a good installer creator
#1
Posted 08 August 2006 - 10:00 PM
- copy files to a directory (_X_)
- get the bfme2 location from the registry (_Y_)
- make a shortcut something like this: "_X_" -mod "_Y_"
is this possible, or do i have to go and write it myself?
when this question is answered, you can move it to user submitted or something
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."
#2
Posted 08 August 2006 - 10:15 PM
Edited by Tom8778, 08 August 2006 - 10:17 PM.
a mod for rotwk, includes Harad, Rhun, Rohan and Southern Fiefdoms Factions, beta released, site/forums for the mod is here.
#3
Posted 08 August 2006 - 10:37 PM
Star Wars Tactics- A Star Wars Gaming Site
Empire at War Zone- An Empire at War Modding Site
Battle for the Galaxy- A Star Wars Mod For The Battle for Middle-earth 2
#5
Posted 08 August 2006 - 11:29 PM
https://www.twitch.tv/vileartist - Yes shameless self-promotion
----------------------------------------------------------------------------------------------------------------------
"Old modders never die, they just fade away" ~ Hostile
#6
Posted 09 August 2006 - 12:48 AM
Don
have a great day
Edit: Ok, From the response, I'll post it up for anyone to take and use as they see fit. I'll just have to find it again, and put it up in a manner people can understand. Give me a couple days, then hit me if its not posted.
Edited by Gumby22don, 09 August 2006 - 03:22 AM.
#8
Posted 12 August 2006 - 11:08 PM
There is a small trick I use to make shortcuts with the installer. It doesn't use the registry, instead it does a search for "lotrbfme2.exe" and is then set to install a 0 kb dummy file in that map. It is also named "lotrbfme2.exe" and is only really installed under the condition that no such file already exists.
As you can see, the dummy file will never be installed. The reason for this is that now this dummy file can be set as the main executable of the 'application' we are going to install. You can then easily add a shortcut with the right parameters.
Note: Do not forget to set the dummy file not to be removed at the uninstalling of the mod!
There is probably be a better, correcter, way to do this, but there isn't as much documentation about this installer as I'd have liked and this works, so why bother?
The above explaination will pobably leave some questions. It is to late to write more detailed now. If you need any help using Qsetup, please send me a PM and maybe I can help you out.
Edit: I may just upload a generic shortcut profile file tomorrow. You can use that as a basis for the installers you want to make.
PS. If you can get it to work right, Advanced Installer looked pretty good. It failed to work at all for me, but I think that was just me doing stuff wrong.
Solinx
Edited by Solinx, 12 August 2006 - 11:18 PM.
"An expert is a man who has made all the mistakes which can be made in a very narrow field." - Niels Bohr
#9
Posted 14 August 2006 - 11:29 PM
Edit: Ok, From the response, I'll post it up for anyone to take and use as they see fit. I'll just have to find it again, and put it up in a manner people can understand. Give me a couple days, then hit me if its not posted.
Wondering if we will be able to use/download this anytime soon?
#11
Posted 15 August 2006 - 04:27 AM
But to help you along, the answers to your questions, for NSIS:
Creating an nsi script to install it this way is do-able, but alot of work. You would be repeating somthing like this for all your files:- copy files to a directory (_X_)
SetOutPath "$INSTDIR\w3d\aa" file "w3d\aa\aa1.w3d" file "w3d\aa\aa2.w3d" SetOutPath "$INSTDIR\w3d\ab" file "w3d\ab\ab1.w3d" file "w3d\ab\ab2.w3d"Then if you opt to make an uninstaller you'll have to delete each file like...
Delete "$INSTDIR\w3d\aa\aa1.w3d" Delete "$INSTDIR\w3d\aa\aa2.w3d" RMDir "$INSTDIR\w3d\aa" Delete "$INSTDIR\w3d\ab\ab1.w3d" Delete "$INSTDIR\w3d\ab\ab2.w3d" RMDir "$INSTDIR\w3d\ab"
- get the bfme2 location from the registry (_Y_)
ReadRegStr $BFME_2_INSTALL HKLM "SOFTWARE\Electronic Arts\Electronic Arts\The Battle for Middle-earth II" "InstallPath"
- make a shortcut something like this: "_Y_" -mod "_X_"
CreateShortCut "$DESKTOP\YOUR MOD.lnk" "$BFME_2_INSTALL\lotrbfme2.exe" '-mod "$INSTDIR"'
Star Wars Tactics- A Star Wars Gaming Site
Empire at War Zone- An Empire at War Modding Site
Battle for the Galaxy- A Star Wars Mod For The Battle for Middle-earth 2
#12
Posted 15 August 2006 - 09:49 AM
doesn't the nullsoft software have some sort of generator that makes that script for you?
Edited by 2playgames, 15 August 2006 - 09:50 AM.
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."
#14
Posted 15 August 2006 - 03:07 PM
here is my script:
[codebox]
; settings for the installer
Name "Battle for Middle-earth II Deluxe Edition"
OutFile "bfme_2_deluxe_24_06_2006.exe"
; get the _default_ install dir
InstallDir "$PROGRAMFILES\BFME2DeluxeEdition"
InstallDirRegKey HKLM "Software\BFME2DeluxeEdition" "Install_Dir"
; these page must be shown
Page directory
Page instfiles
; these for uninstall
UninstPage uninstConfirm
UninstPage instfiles
; the mode
Section "BFME2DeluxeEdition"
; Set output path to the installation directory.
SetOutPath $INSTDIR
; Put files there
File "bfme_2_deluxe_24_06_2006.big"
File "bfme_2_deluxe_24_06_2006.txt"
; 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 (24-06-2006).lnk" "$R0\lotrbfme2.exe" '-mod "$INSTDIR\bfme_2_deluxe_24_06_2006.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\BFME2DeluxeEdition24062006" "DisplayName" "Battle for Middle-earth II Deluxe Edition (24-06-2006)"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition24062006" "UninstallString" '"$INSTDIR\uninstall_24062006.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition24062006" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition24062006" "NoRepair" 1
; make uninstaller
WriteUninstaller "uninstall_24062006.exe"
; show the readme
ExecShell "open" "$INSTDIR\bfme_2_deluxe_24_06_2006.txt"
SectionEnd
; uninstaller
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\BFME2DeluxeEdition24062006"
; Remove files and uninstaller
Delete "$INSTDIR\bfme_2_deluxe_24_06_2006.big"
Delete "$INSTDIR\bfme_2_deluxe_24_06_2006.txt"
Delete "$INSTDIR\uninstall24062006.exe"
; Remove shortcut
Delete "$DESKTOP\Battle for Middle-earth II Deluxe Edition (24-06-2006).lnk"
SectionEnd
[/codebox]
Edited by 2playgames, 15 August 2006 - 03:11 PM.
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users