remove versioning dependency from install path

Suggestions from our community members for PR:BF2. Read the stickies before posting.
Post Reply
eggman
Retired PR Developer
Posts: 11721
Joined: 2005-12-27 04:52

remove versioning dependency from install path

Post by eggman »

Hey PR Devs,

I am not sure if I am missing some reason that the PRMM install folder needs to be "PRMM_02". By making the mod path version dependent, ancillary installers such as map packs need to be updated each time the version / install path changes.

Right now my installer is set to "PRMM_02". When PRMM 3 is released, it will have to be updated to install to PRMM_03, and so on...

There is no way to "autodetect" the install patch of a mod afaik (if there is a reg key, please let me know what it is).

It would make my life easier hehe if.... the PR mod path / install dir was a constant. So for example, when PRMM 0.3 is released, y'all move to "/mods/pr/" as the install dir, that way nothing changes going forward.

Not really a big deal for me, it will take a minor amount of work to change it on my end, rather it's a bit of a pain for ppl who may have to download map pack installers again (if they are not so inclined to move them manually .. I like to assume everyone is smart but at least as lazy as me).

egg
da.SPAWN
Posts: 276
Joined: 2005-12-18 11:54

Post by da.SPAWN »

you can read this registry entries to determine the path for prmm:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Project Reality Mini-Mod 0.2 rev.1_is1]
"Inno Setup: Setup Version"="5.1.6"
"Inno Setup: App Path"="G:\\_Games_\\Battlefield 2"
"InstallLocation"="G:\\_Games_\\Battlefield 2\\"
"Inno Setup: Icon Group"="(Default)"
"Inno Setup: User"="root"
"Inno Setup: Setup Type"="custom"
"Inno Setup: Selected Components"="main"
"Inno Setup: Deselected Components"="link"
"DisplayName"="Project Realtiy Mini-Mod 0.2 rev.1"
"DisplayIcon"="G:\\_Games_\\Battlefield 2\\mods\\PRMM\\PRMM.ico"
"UninstallString"="\"G:\\_Games_\\Battlefield 2\\unins001.exe\""
"QuietUninstallString"="\"G:\\_Games_\\Battlefield 2\\unins001.exe\" /SILENT"
"DisplayVersion"="0.2"
"Publisher"="Project Reality"
"URLInfoAbout"="www.realitymod.com"
"ModifyPath"="\\mods\\PRMM_02\\"
"NoRepair"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Project Reality Mini-Mod 0.2_is1]
"Inno Setup: Setup Version"="5.1.4"
"Inno Setup: App Path"="G:\\_Games_\\Battlefield 2"
"InstallLocation"="G:\\_Games_\\Battlefield 2\\"
"Inno Setup: Icon Group"="(Default)"
"Inno Setup: User"="root"
"Inno Setup: Setup Type"="custom"
"Inno Setup: Selected Components"="main,link"
"Inno Setup: Deselected Components"=""
"DisplayName"="Project Realtiy Mini-Mod 0.2"
"DisplayIcon"="G:\\_Games_\\Battlefield 2\\mods\\PRMM\\PRMM.ico"
"UninstallString"="\"G:\\_Games_\\Battlefield 2\\unins000.exe\""
"QuietUninstallString"="\"G:\\_Games_\\Battlefield 2\\unins000.exe\" /SILENT"
"DisplayVersion"="0.2"
"Publisher"="Project Reality"
"URLInfoAbout"="www.realitymod.com"
"ModifyPath"="\\mods\\PRMM_02\\"
"NoRepair"=dword:00000001
P5WDG2-WS Pro; 2x 7900GTX SLI; Audigy 2ZS; Core 2 Duo @ 3,6 GHz; XP32 SP2 & latest Autopatcher
Image
TheRealFritz
Retired PR Developer
Posts: 2316
Joined: 2005-10-28 19:44

Post by TheRealFritz »

That leaves you with the problem of how to identify the right installed program. With PRMM 0.3 most of those things will change, thus not really addressing eggman's original question.
IRONxMortlock
Retired PR Developer
Posts: 625
Joined: 2005-10-30 06:39

Post by IRONxMortlock »

Roger, I'll pass this on.
eggman wrote:Hey PR Devs,

I am not sure if I am missing some reason that the PRMM install folder needs to be "PRMM_02". By making the mod path version dependent, ancillary installers such as map packs need to be updated each time the version / install path changes.

Right now my installer is set to "PRMM_02". When PRMM 3 is released, it will have to be updated to install to PRMM_03, and so on...

There is no way to "autodetect" the install patch of a mod afaik (if there is a reg key, please let me know what it is).

It would make my life easier hehe if.... the PR mod path / install dir was a constant. So for example, when PRMM 0.3 is released, y'all move to "/mods/pr/" as the install dir, that way nothing changes going forward.

Not really a big deal for me, it will take a minor amount of work to change it on my end, rather it's a bit of a pain for ppl who may have to download map pack installers again (if they are not so inclined to move them manually .. I like to assume everyone is smart but at least as lazy as me).

egg
Image
Post Reply

Return to “PR:BF2 Suggestions”