Archive: Problem with additional Game Explorer tasks


Problem with additional Game Explorer tasks
I have a problem with additional Game Explorer tasks; I can't get them to work. Only the obligatory "Play" task appears no matter what I do. I've tried both Games plug-in and Game Explorer script example, both following the examples to the letter, but neither shows results. Any suggestions?


Try validating the paths where the shortcuts are created to make sure they are written where they should. Also make sure you have a unique identifier for each task. When all else fails, attach a minimal example of a script that doesn't work and we'll see what we can do.


I located the problem, which is all my fault - in a way. Before swapping to near-perfect NSIS I tried to code my own MSI thing and with zippo experience on the subject, and believe it or not, I managed to remove the entire ProgramData\Microsoft\Windows\GameExplorer during a buggy uninstall test! I had backups of the folder, but copying it back didn't help, as I no longer can't get any subfolders created there. The games do show up in Game Explorer, but I guess that's through Windows registery, not from Game Explorer folder - it can't be, cause NSIS nowdays doesn't create folders there.

Since I have hundreds of gigabytes of on-going production content on my harddrive I can't exactly re-install the system and thanks to the fact I'm using HP machine, I don't have Windows Vista DVD for OS-only re-install, just the horrible 2-DVD system recovery monster that will wipe everything. So; Any suggestions? Or do I just wave Game Explorer goodbye for time being?


Try re-registering gameux.dll.

Start->Run->regsvr32.exe gameux.dll

Thanks, that brought GameExplorer from the dead, but I still don't get things working. I stripped the entire installer into very basics, but no. Nothing is installed to GameExplorer folder, no folders, no tasks, nothing.

I hate to ask anyone to do the dirty work for me, but it seems I have no choice - I'm simply out of ideas. Attached is the NSI stripped to bare bones and to just one exe (example thingy I've been used for testing, not the real deal). The core points where I guess I'm messing things up are:

WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Game" "DisplayName" "Game"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Game" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Game" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Game" "NoRepair" 1
WriteUninstaller "uninstall.exe"

${GameExplorer_GenerateGUID}
Pop $0
${GameExplorer_AddGame} all $INSTDIR\Game.exe $INSTDIR $INSTDIR\Game.exe $0

and:

SetShellVarContext all

; Remove from game explorer
${If} ${AtLeastWinVista}
File GameuxInstallHelper.dll
System::Call "GameuxInstallHelper::RetrieveGUIDForApplication(t '$INSTDIR\Game.exe', *g .r0)"
Pop $0
${GameExplorer_RemoveGame} $0
${EndIf}


The code seems fine. Are you sure the GDF is valid?