Jump to content

Damnfo


Recommended Posts

Howdy havin a small prob with installin Damnfo viewer in Ua. I have been using a posted Autoit script to install & works ok outside of Ua. It does install however but I can't seem to get around the occasional last screen that says"Do you want NFO to be your default viewer Yes or No" You obviously need to press yes or the viewer does not work?

Script attached.

Run ("setup.exe")
WinWaitActive("**** NFO Viewer v2.10 Setup")
send ("{ENTER}"); License Agreement
WinWaitActive("**** NFO Viewer v2.10 Setup")
send ("{TAB 2}")
Send ("{UP}")
WinWaitActive("**** NFO Viewer v2.10 Setup")
send ("{ENTER}"); EULA
WinWaitActive("**** NFO Viewer v2.10 Setup")
send ("{ENTER}"); location
WinWaitActive("**** NFO Viewer v2.10 Setup")
send ("{ENTER}"); language
WinWaitActive("**** NFO Viewer v2.10 Setup","Installation complete!")
sleep (2000)
send ("{ENTER}"); Run
sleep (1000)
winclose("**** NFO Viewer v2.10")
sleep (500)
winclose("**** NFO Viewer v2.10")
EXIT

I have used the Damnfo.msi installs but doesn't appear to work properly.

Any light appreciated :hello:

Link to comment
Share on other sites


I can't help you with your AutoIt Script, but I wrote a .inf file that installs **** NFO Viewer. Create a WinRAR SFX wich extracts the whole "**** NFO Viewer" folder to %ProgramFiles%, name it ****.exe

Then, run this .inf file using "rundll32 setupapi,InstallHinfSection DefaultInstall 128 \blablabla\****.inf"

[Version]
Signature=$Windows NT$

[DefaultInstall]
AddReg=ExtractDAMN
AddReg=FileAssoc
AddReg=Settings
AddReg=HKLM

[ExtractDAMN]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","****",,"%01%\****.exe"

[FileAssoc]
HKCR,".diz",,,"****.NFO.Viewer.File"
HKCR,".nfo",,,"****.NFO.Viewer.File"
HKCR,"****.NFO.Viewer.File",,,"**** NFO Viewer file"
HKCR,"****.NFO.Viewer.File\DefaultIcon",,,"%16422%\**** NFO Viewer\**** NFO Viewer.exe,1"
HKCR,"****.NFO.Viewer.File\shell",,,"open"
HKCR,"****.NFO.Viewer.File\shell\open",,,"Open in &**** NFO Viewer"
HKCR,"****.NFO.Viewer.File\shell\open\command",,,"""%16422%\**** NFO Viewer\**** NFO Viewer.exe"" ""%1"""
HKCR,"Applications\**** NFO Viewer.exe\shell",,,"open"
HKCR,"Applications\**** NFO Viewer.exe\shell","FriendlyCache",,"**** NFO Viewer"
HKCR,"Applications\**** NFO Viewer.exe\shell\open",,,"Open in &**** NFO Viewer"
HKCR,"Applications\**** NFO Viewer.exe\shell\open\command",,,"""%16422%\**** NFO Viewer\**** NFO Viewer.exe"" ""%1"""

[Settings]
HKCU,"Software\****\**** NFO Viewer","CheckDefaultViewer",0x00010001,00,00,00,00
HKCU,"Software\****\**** NFO Viewer","ReuseWindow",0x00010001,01,00,00,00
HKCU,"Software\****\**** NFO Viewer","AlwaysOnTop",0x00010001,00,00,00,00
HKCU,"Software\****\**** NFO Viewer\NFO","FontName",,"[built-in] Lucida Concole"
HKCU,"Software\****\**** NFO Viewer\NFO","FontData",1,98,00,00,01
HKCU,"Software\****\**** NFO Viewer\NFO","Window",0x00010001,23,00,00,00
HKCU,"Software\****\**** NFO Viewer\NFO","BackgroundColor",1,48,3d,8b,00
HKCU,"Software\****\**** NFO Viewer\NFO","TextColor",1,c0,c0,c0,00
HKCU,"Software\****\**** NFO Viewer\NFO","HyperLinkColor",1,f5,f5,f5,00
HKCU,"Software\****\**** NFO Viewer\NFO","HyperLinkHoverColor",1,dc,dc,dc,00
HKCU,"Software\****\**** NFO Viewer\NFO","Text",0x00010001,00,04,00,00

[HKLM]
HKLM,"SOFTWARE\****\**** NFO Viewer",,,"%16422%\**** NFO Viewer"

Link to comment
Share on other sites

Not to undermine anyone, but wouldn't it just be simpler to make Notepad the default handler for .NFOs?

HKCR,".NFO",,,"NFO_file"
HKCR,"NFO_file\shell\open\command",,0x00020000,"%11%\NOTEPAD.EXE%1"
HKLM,"SOFTWARE\Classes\.NFO",,,"NFO_file"
HKLM,"SOFTWARE\Classes\NFO_file\shell\open\command",,0x00020000,"%11%\NOTEPAD.EXE%1"

EDIT: I exported the path from the Registry and forgot to change %SystemRoot%\system32 to %11%. Oops.

Edited by larson
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...