• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Unofficial Pokémon3D Installer

Status
Not open for further replies.

Blase Zinck

Fisherman
Pokémon3D Installer is a creation by Tllc(Blase) to allow the installation of Pokémon3D to go more smoothly.
This installer features:
  • Offline Install
  • Online Install
  • A nifty custom programmed progress bar that Tllc is proud of.
  • XNA Framework 4.0 checker and intaller.
  • .NET Framework 4.0 checker and installer.
  • Shortcut creater
  • Custom install location
  • Disclaimer that probably won't protect me from Microsoft suing.
Offline Installer [58.01MB] | Online Installer [7.80MB]
 

DracoHouston

Kolben Developer
Contributor
cool idea. i think the launcher should check for xna and net runtimes and allow automatic download/installation of them but nilllzz hasnt worked on something like that and i am unaware of any plans like that.
 

Blase Zinck

Fisherman
I agree with you on that, and it shouldn't be too hard to implement, depending on what language the launcher is in. This also works like a normal installer though, it saves the launcher and a couple of other files to the location of the user's choice...
 

DracoHouston

Kolben Developer
Contributor
I agree with you on that, and it shouldn't be too hard to implement, depending on what language the launcher is in. This also works like a normal installer though, it saves the launcher and a couple of other files to the location of the user's choice...
the games in vb.net using XNA framework but i dont know the specifics of the launcher, its probably just some vb.net winforms thing. should be able to do it fine, its just nilllzz hasnt gotten around to it i guess. it'd certainly help though.
 

nilllzz

Original Developer
Administrator
P3D Developer
I think I cannot implement the XNA and .Net frameworks because of legal problems, you are not allowed to put the installers into your project.
 

Blase Zinck

Fisherman
I think I cannot implement the XNA and .Net frameworks because of legal problems, you are not allowed to put the installers into your project.
I'm pretty sure you're actually right about that... That's why it says "Disclaimer that probably won't protect me from Microsoft suing." I'm trying to find a legal work around now though...
 

DracoHouston

Kolben Developer
Contributor
I think I cannot implement the XNA and .Net frameworks because of legal problems, you are not allowed to put the installers into your project.
hmmm, is it possible to run the check then at least advise the player those runtimes are missing? if it didn't actually install the runtimes for you would that still cause legal issues?

i think a big part of the problem is that when you don't have them the game just closes, no clues why. you put that troubleshooting link in there and i know i clicked it and followed the instructions at least but obviously not everyone does that. they end up asking on IRC or in this forum :\ is there anything you can do to make that less mysterious?
 

Blase Zinck

Fisherman
hmmm, is it possible to run the check then at least advise the player those runtimes are missing? if it didn't actually install the runtimes for you would that still cause legal issues?

i think a big part of the problem is that when you don't have them the game just closes, no clues why. you put that troubleshooting link in there and i know i clicked it and followed the instructions at least but obviously not everyone does that. they end up asking on IRC or in this forum :\ is there anything you can do to make that less mysterious?
Very possible, I don't mind sharing my code. The installer is written in VBA
Code:
        'Check for .NET Framework 4.0
        Dim msg As String
        Dim title As String
        Dim style As MsgBoxStyle
        Dim response As MsgBoxResult
        Dim WebDOTNet As Process = New Process
        Dim WebXNA As Process = New Process
        Dim readValue As String
        readValue = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Client", "Install", Nothing)
        If readValue = Nothing Then
            msg = "Pokémon3D requires Microsoft .NET Framework 4.0. Please visit" & vbcrlf & "http://www.microsoft.com/en-us/download/details.aspx?id=17851" & vbcrlf & "to download." & vbcrlf & "Would you like to open the webpage now?" 'Or something along those lines.
            style = MsgBoxStyle.YesNo
            title = "Microsoft .NET Framework 4.0 Required!"
            response = MsgBox(msg, style, title)
            If response = MsgBoxResult.Yes Then
                WebDOTNet.StartInfo.FileName = "http://www.microsoft.com/en-us/download/details.aspx?id=17851"
                WebDOTNet.StartInfo.WindowStyle = ProcessWindowStyle.Normal
                WebDOTNet.Start()
            Else
                Close()
            End If
        End If
        'Check for XNA Framework 4.0
        readValue = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\XNA\Framework\v4.0", "Installed", Nothing)
        If readValue = Nothing Then
            msg = "Pokémon3D requires Microsoft XNA Framework 4.0. Please visit" & vbcrlf & "http://www.microsoft.com/en-us/download/details.aspx?id=20914" & vbcrlf & "to download." & vbcrlf & "Would you like to open the webpage now?" 'Or something along those lines.
            style = MsgBoxStyle.YesNo
            title = "Microsoft XNA Framework 4.0 Required!"
            response = MsgBox(msg, style, title)
            If response = MsgBoxResult.Yes Then
                WebXNA.StartInfo.FileName = "http://www.microsoft.com/en-us/download/details.aspx?id=20914"
                WebXNA.StartInfo.WindowStyle = ProcessWindowStyle.Normal
                WebXNA.Start()
            Else
                Close()
            End If
        End If
I wrote most all of that from my head, so you'd probably want to make sure it works...
 

DracoHouston

Kolben Developer
Contributor
seems reasonable, just check the registry key and pop up a message box?

btw the forums are being split so this is going in released projects if you were wondering why its moved
 

Blase Zinck

Fisherman
Well, I'll be keeping it in my installer, but I guess I better remove the Framework installers... But I still think there should be some sort of official installer though...
 

DracoHouston

Kolben Developer
Contributor
Well, I'll be keeping it in my installer, but I guess I better remove the Framework installers... But I still think there should be some sort of official installer though...
yeah theres probably room for an offline installer alongside the launcher, as an online installer the launcher does a fine job but a few people have complained that they have trouble installing it on machines with no internet access. The zips that are being archived on p3d of each releases's files are probably Good Enough but there's no harm in making it easier for people
 
Status
Not open for further replies.
Top