Jump to content
Sign in to follow this  
Alpha_95

[Solved] Problem Inf addon

Recommended Posts

Hello

the problem is that the shortcuts are not created (start menu and control panel).

After reboot the PC when running the inf file, I have the settings incorrect error ... I use to test WA install addons.

Inf file:

[Version]

Signature=$Windows NT$

[DefaultInstall]

RegisterDLLs=Install.MI

[install.MI]

11,,rundll32.exe,,,"advpack.dll,LaunchINFSection %1%\MediaInfo.inf,Install"

[install]

AddReg=MI.Reg,MediaInfo.cpl,uninstall.Addreg

ProfileItems=MI.Shortcut,MI.url.Shortcut,MI.chm.Shortcut,MI.Readme.Shortcut

RunPostSetupCommands=RunPostSetupCommands.install

[DestinationDirs]

INF=17

MI.Files=16422,MediaInfo

Plugin.Files=16422,"MediaInfo\Plugin"

Custom.Files=16422,"MediaInfo\Plugin\Custom"

Language.Files=16422,"MediaInfo\Plugin\Language"

Sheet.Files=16422,"MediaInfo\Plugin\Sheet"

Tree.Files=16422,"MediaInfo\Plugin\Tree"

PNF.File=17

DefaultDestDir=17

[sourceDisksFiles]

License.html=1

MediaInfo.url=1

MediaInfo.dll=1

MediaInfo.exe=1

MediaInfo_InfoTip.dll=1

ReadMe.txt=1

History.txt=1

MediaInfo.cfg=1

en.Example.csv=1

en.Example_HTML.csv=1

Example.csv=3

Example_HTML.csv=1

fr.Example.csv=1

it.Esempio.csv=1

it.Esempio_HTML.csv=1

Table by fields, compact (HTML).csv=1

Table by fields, short (HTML).csv=1

Table by fields, standard (HTML).csv=1

Table by fields, verbose (HTML).csv=1

Table by streams, compact (HTML).csv=1

Table by streams, short (HTML).csv=1

Table by streams, standard (HTML).csv=1

Table by streams, verbose (HTML).csv=1

XML.csv=1

zzz_Contrib - Dusil (HTML).csv=1

fr.csv=1

en.csv=1

Export example.csv=1

MediaInfo.inf=2

[MI.Files]

License.html

MediaInfo.url

MediaInfo.dll

MediaInfo.exe

MediaInfo_InfoTip.dll

ReadMe.txt

History.txt

[Plugin.Files]

MediaInfo.cfg

[Custom.Files]

en.Example.csv

en.Example_HTML.csv

Example.csv

Example_HTML.csv

fr.Example.csv

it.Esempio.csv

it.Esempio_HTML.csv

Table by fields, compact (HTML).csv

Table by fields, short (HTML).csv

Table by fields, standard (HTML).csv

Table by fields, verbose (HTML).csv

Table by streams, compact (HTML).csv

Table by streams, short (HTML).csv

Table by streams, standard (HTML).csv

Table by streams, verbose (HTML).csv

XML.csv

zzz_Contrib - Dusil (HTML).csv

[Language.Files]

fr.csv

en.csv

[sheet.Files]

Export example.csv

Example.csv

[Tree.Files]

Example.csv

[MI.Reg]

HKLM,"SOFTWARE\Classes\Folder\shell\MediaInfo",,0x10

HKLM,"SOFTWARE\Classes\Folder\shell\MediaInfo\Command",,0x0,"""%16422%\MediaInfo\MediaInfo.exe"" ""%%1"""

;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\MediaInfo.exe",,0x0,"%16422%\MediaInfo\MediaInfo.exe"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","DisplayIcon",0x0,"%16422%\MediaInfo\MediaInfo.exe"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","DisplayName",0x0,"MediaInfo 0.7.31"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","DisplayVersion",0x0,"0.7.31"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","NSIS:Language",0x0,"1036"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","Publisher",0x0,"MediaArea.net"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","URLInfoAbout",0x0,"http://mediainfo.sourceforge.net"

[uninstall.Addreg]

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","UninstallString",0,"rundll32.exe advpack.dll,LaunchINFSection MediaInfo.inf,Uninstallshellext"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","DisplayIcon",0x0,"%16422%\MediaInfo\MediaInfo.exe"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","DisplayName",0x0,"MediaInfo 0.7.31"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","DisplayVersion",0x0,"0.7.31"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","NSIS:Language",0x0,"1036"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","Publisher",0x0,"MediaArea.net"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","URLInfoAbout",0x0,"http://mediainfo.sourceforge.net"

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","NoModify",0x10001,01,00,00,00

HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MediaInfo","NoRepair",0x10001,01,00,00,00

[MediaInfo.cpl]

HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111197}"

HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111197}",,,"MediaInfo"

HKCR,"CLSID\{D14ED2E1-C75B-443c-BD7C-111111111197}","InfoTip",,"MediaInfo fournit des informations techniques et des m

Edited by Alpha_95

Share this post


Link to post
Share on other sites

This is breaking your install

HKU,"S-1-5-21-1659004503-796845957-1801674531-1004\*

You also cant use that because this is unique to each install, its different every time...

Is it not enough to register MediaInfo_InfoTip.dll?

Share this post


Link to post
Share on other sites

The key HKU,"S-1-5-21-1659004503-796845957-1801674531-1004\* are not to be integrated.

if I understand you well? (They are different in each new installation?)?

HKU may be in HKCU? (because it is the right click menu on a file)

Is it not enough to register MediaInfo_InfoTip.dll?

This is not correct the register ?

Share this post


Link to post
Share on other sites

Yes your RunOnce (should be RunOnceEx if you use a subdir dont it?) RegisterDLL looks correct, what Im asking is if you just register the DLL and NOT add the HKU,"S-1-5-21-1659004503-796845957-1801674531-1004\* registry entries will the program work just fine without it?

Share this post


Link to post
Share on other sites

I deleted the key RunOnce, but I just let this one:

HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnce","Reboot",,"rundll32.exe advpack.dll,LaunchINFSection MediaInfo.inf,DelRegSection2"

replaced by:

HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnceEx","Reboot",,"rundll32.exe advpack.dll,LaunchINFSection MediaInfo.inf,DelRegSection2"

I do not think it will prevent the proper functioning of the program but when you make a right click on the file, it will no longer choose to open it with MediaInfo ...

Share this post


Link to post
Share on other sites

No you got me wrong...when you use RunOnceEx you need to add a \SubDir or it will not work.

HKLM,"Software\Microsoft\Windows\CurrentVersion\RunOnceEx\AnySubDir","Reboot",,"rundll32.exe advpack.dll,LaunchINFSection MediaInfo.inf,DelRegSection2"

I was not too sure about your RunOnce\SubDir thats what I was wondering about

Share this post


Link to post
Share on other sites

Updated code in the first post. The problem is always the same ...

MediaInfo is created in the start menu but the directory is empty ... The icon in the Control Panel is missing ...

Edited by Alpha_95

Share this post


Link to post
Share on other sites

Did you delete the AddReg?

Also you may want to have a look at these two shortcuts

[MI.url.Shortcut]
Name ="Site Web De MediaInfo",8,23
SubDir ="MediaInfo"
CmdLine =16422,"MediaInfo","Site Web De MediaInfo"
WorkingDir=16422,"MediaInfo"
InfoTip ="Site web de MediaInfo."

[MI.chm.Shortcut]
Name ="License",8,23
SubDir ="MediaInfo"
CmdLine =16422,"MediaInfo","License.html"
WorkingDir=16422,"MediaInfo"
InfoTip ="License de MediaInfo."

Look in my Sidebar addon and you will see how to make URL files with ProfileItems

[BBC6.AddURL]
Name =radio_BBC 6music,0x00000008,38
URL =http://www.bbc.co.uk/6music/ram/6music_hi.asx
SubDir =%WMPST%
IconPath=11,,url.dll

Notice instead of CmdLine= it uses URL=, also notice that I tell it to use the first icon in url.dll (you can leave out InfoTip and WorkingDir for these types of shortcuts)

The second shortcut to the .html file I am not too sure about, if it does not seem to want to create you need to add IconPath= and IconIndex= to specify a icon

But first fix your URL shortcut see if that solves the problem...come back if the .html shortcut does not want to be created

Share this post


Link to post
Share on other sites

I corrected the error, it came File Tasks.txt I changed and I thought no more ... :oops:

Thank you for your help ricktendo64 ;)

Edited by Alpha_95

Share this post


Link to post
Share on other sites

Shorcut url is good, Shorcut IcoFx.exe doens't create :

Tasks.txt:

Name=IcoFX

Creator=Owned67

Version=1.6.4 FR et EN

Description=IcoFX est un

Edited by Alpha_95

Share this post


Link to post
Share on other sites

You are doing the URL shortcut wrong, do it this way

[IcoFX.url.Shortcut]
Name =IcoFX,0x00000008,23
URL =http://icofx.ro
SubDir ="IcoFX 1.6"
IconPath =11,,url.dll

Or you can do it your way but rename it to what the program uses "IcoFX on the Web"

Share this post


Link to post
Share on other sites

yes, renaming was the solution, thank you to you for your help!

One question, when a file. Ocx or. Dll (RegDllView Entry System 2) is recorded twice, how?

Directory :

%ProgramFiles%\Fichiers communs\Blueberry Software\BBFileTransfer.dll

%ProgramFiles%\Fichiers communs\Blueberry Software\ActiveBand.ocx

"regsvr32.exe /s ""%16422%\BB FlashBack Pro\ActiveBand.ocx"""
"regsvr32.exe /s ""%16422%\BB FlashBack Pro\BBFileTransfer.dll"""

Enough or I have to run a second time?

Share this post


Link to post
Share on other sites

When a file .Dll or .ocx or .ac is registered, it runs:

"regsvr32.exe /s ""%16427%\MyProg\MyFile.dll"""

but it is recorded two, how we should proceed?

[solved]

Edited by Alpha_95

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...