Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
Hi All
 
I am developing an ActiveX installer so I need to create .inf file.
Can anybody please let me know how to create .inf file?
 

Thanks
Posted 25-Sep-11 20:43pm
Edited 25-Sep-11 22:03pm
Dalek Dave432.6K
v2
Comments
SAKryukov at 26-Sep-11 3:03am
   
This is a simple text file, so what's the problem?
--SA
meghamaharshi at 26-Sep-11 3:17am
   
Thanks for your reply...
i have done with this.
 
SAKryukov at 26-Sep-11 3:21am
   
Nice talking to you...
Good luck,
--SA
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

System.IO.File.WriteAllText(@"d:\WriteText.inf", text);
 
text = data to add in inf file
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

take a text file and save as "filename.inf".
double quotes is menedatory.
  Permalink  
Comments
Dalek Dave at 26-Sep-11 4:03am
   
Easiest Answer Ever?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

A sample INF to install ActiveX. Copy and paste in Notepad and save as ActiveX.inf
You can find all the details for packaging and distributing ActiveX controls
here
[version]
    signature="$CHICAGO$"
    AdvancedINF=2.0
 [Add.Code]
    time.ocx=time.ocx
    msvcrt.dll=msvcrt.dll
    mfc42.dll=mfc42.dll
    olepro32.dll=olepro32.dll
 [time.ocx]
    file-win32-x86=thiscab
    clsid={DCF0768D-BA7A-101A-B57A-0000C0C3ED5F}
    FileVersion=1,0,0,0
    RegisterServer=yes
 [msvcrt.dll]
    FileVersion=4,20,0,6164
    hook=mfc42installer
 [mfc42.dll]
    FileVersion=4,2,0,6256
    hook=mfc42installer
 [olepro32.dll]
    FileVersion=4,2,0,6068
    hook=mfc42installer
 [mfc42installer]
    file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab
    run=%EXTRACT_DIR%\mfc42.exe
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

Hi,
 
Make sure the encoding of ".inf" file should be ANSI.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.140926.1 | Last Updated 26 Sep 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100