Jump to content

Recommended Posts

Posted (edited)

I was looking for a way to silently install the INF associated with an add-on. I found this website, which explained how to do so.

To sum it up, the command line should read:

rundll32.exe advpack.dll,LaunchINFSection myinf.inf,DefaultInstall,1

where myinf.inf is the INF that you want to launch and DefaultInstall is the section to use for installation. The 1 is an instruction to RunDll32 to run the command quietly, while a 2 would instruct it to use"no GrpConv", whatever that means. The numbers can be added together to get 3, which would instruct it to run quietly and with "no GrpConv".

Please move that you will have to manually move the CAB file into a i386 folder for most add-ons in order for this to work. If you don't, the user will be prompted for the location of the files.

Edited by dougiefresh
  • 3 years later...
Posted

Hi,

I am following the exactly same steps with rundll32. But i dont want any pop up during the installation but  during the command execution its asking me to overwrite 3 files which are already exists in C:\windows\system32  folder.

 

How can i supress those confirmation dialog using rundll32.

 

Any help would be highly appreciated.

Posted (edited)

Its showing the popups for the folowing four files :

 

OLEAUT32.DLL

ASYCFILT.DLL

STDOLE2.TLB

COMCAT.DLL

 

Here is the code :---->

 

;DestDir can be 10 for Windows directory, 11 for Windows\System(32) directory, or left blank for the Occache directory.[version]signature="$CHICAGO$"AdvancedINF=2.0[DefaultInstall]CopyFiles=install.filesRegisterOCXs=RegisterFilesAddReg=AddToRegistry[RInstallApplicationFiles]CopyFiles=install.filesRegisterOCXs=RegisterFilesAddReg=AddToRegistry[DestinationDirs]install.files=11[sourceDisksNames]1=%DiskName%,MTMicrImage.CAB,1[Add.Code]MTMicrImage.ocx=MTMicrImage.ocxSaxComm8.ocx=SaxComm8.ocxmsstkprp.dll=msstkprp.dllMicrImageVBDemo.exe=MicrImageVBDemo.exemsvbvm60.dll=msvbvm60.dllOLEAUT32.DLL=OLEAUT32.DLLOLEPRO32.DLL=OLEPRO32.DLLASYCFILT.DLL=ASYCFILT.DLLSTDOLE2.TLB=STDOLE2.TLBCOMCAT.DLL=COMCAT.DLL[install.files]MTMicrImage.ocx=MTMicrImage.ocxSaxComm8.ocx=SaxComm8.ocxmsstkprp.dll=msstkprp.dllMicrImageVBDemo.exe=MicrImageVBDemo.exemsvbvm60.dll=msvbvm60.dllOLEAUT32.DLL=OLEAUT32.DLLOLEPRO32.DLL=OLEPRO32.DLLASYCFILT.DLL=ASYCFILT.DLLSTDOLE2.TLB=STDOLE2.TLBCOMCAT.DLL=COMCAT.DLL[sourceDisksFiles]MTMicrImage.ocx=1SaxComm8.ocx=1msstkprp.dll=1MicrImageVBDemo.exe=1msvbvm60.dll=1OLEAUT32.DLL=1OLEPRO32.DLL=1ASYCFILT.DLL=1STDOLE2.TLB=1COMCAT.DLL=1[MTMicrImage.ocx]file-win32-x86=thiscabRegisterServer=yesclsid={9E8EBAA8-573C-45D2-A64C-DD93489744DE}DestDir=FileVersion=1,7,0,3[saxComm8.ocx]file-win32-x86=thiscabRegisterServer=yesclsid={4A037C55-D2A8-435E-B42E-1B25CDA784FA}DestDir=11FileVersion=8,0,0,2350[msstkprp.dll]file-win32-x86=thiscabRegisterServer=yesDestDir=11FileVersion=6,0,88,77[MicrImageVBDemo.exe]file-win32-x86=thiscabRegisterServer=noDestDir=FileVersion=1,3,0,1[msvbvm60.dll]file-win32-x86=thiscabRegisterServer=yesDestDir=11FileVersion=6,0,98,2[OLEAUT32.DLL]file-win32-x86=thiscabRegisterServer=yesDestDir=11FileVersion=2,40,4275,1[OLEPRO32.DLL]file-win32-x86=thiscabRegisterServer=yesDestDir=11FileVersion=5,0,4275,1[ASYCFILT.DLL]file-win32-x86=thiscabRegisterServer=noDestDir=11FileVersion=2,40,4275,1[sTDOLE2.TLB]file-win32-x86=thiscabRegisterServer=noDestDir=11FileVersion=2,40,4275,1[COMCAT.DLL]file-win32-x86=thiscabRegisterServer=yesDestDir=11FileVersion=4,71,1460,1[setup Hooks]AddToRegHook=AddToRegHook[AddToRegHook]InfSection=DefaultInstall2[DefaultInstall2]AddReg=AddToRegistry[AddToRegistry]HKLM,"SOFTWARE\Classes\CLSID\{9E8EBAA8-573C-45D2-A64C-DD93489744DE}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"HKLM,"SOFTWARE\Classes\CLSID\{9E8EBAA8-573C-45D2-A64C-DD93489744DE}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"HKCR,"Licenses",,,"Licensing: Copying the keys may be a violation of established copyrights."[RegisterFiles]%\COMCAT.DLL%\OLEPRO32.DLL%\OLEAUT32.DLL%\msvbvm60.dll%\msstkprp.dll%\SaxComm8.ocx%\MTMicrImage.ocx
Edited by ricktendo
Posted

I have never seen a INF of that kind before, the CopyFiles code is different...try adding this

[install.files]

MTMicrImage.ocx=MTMicrImage.ocx,,,32

SaxComm8.ocx=SaxComm8.ocx,,,32

msstkprp.dll=msstkprp.dll,,,32

MicrImageVBDemo.exe=MicrImageVBDemo.exe,,,32

msvbvm60.dll=msvbvm60.dll,,,32

OLEAUT32.DLL=OLEAUT32.DLL,,,32

OLEPRO32.DLL=OLEPRO32.DLL,,,32

ASYCFILT.DLL=ASYCFILT.DLL,,,32

STDOLE2.TLB=STDOLE2.TLB,,,32

COMCAT.DLL=COMCAT.DLL,,,32

If that does not work try adding this to the file sections that prompt you
CopyOnlyIfNotOnTarget=1
example
[OLEAUT32.DLL]

file-win32-x86=thiscab

RegisterServer=yes

DestDir=11

FileVersion=2,40,4275,1

CopyOnlyIfNotOnTarget=1

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.

×
×
  • Create New...