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"