Sunteți pe pagina 1din 2

msi package creation of magicDisc Application Information: - While installing the Magic disc s setup.

.exe it will prompt for confirmation to install the driver, since the driver is an unsigned one (not digitally signed by Microsoft). Click Install this driver software anyway Then it stall the unsigned driver into the system.

The message box Click Install this driver software anyway will come into picture fo applications which are containing unsigned drivers in it. (OS used:- window 7x64 bits) INSTALLDIR:- C:\program files (86)\Magic disc\ Changes in system:1:- installs the unsigned driver (Name: - mcdbus.inf) Location: - C:\Windows\System32\DriverStore\FileRepository and oem files in C:\windows\inf 2. Changes in registry:Create registry entries under - HKLM\SYSTEM\CurrentControlSet\Enum\Root\SCSIADAPTER and - HKLM\SYSTEM\CurrentControlSet\services\mcdbus Packaging information: - msi package created using wise packaging studio and cus tom action written to install the drivers using DPInst.exe Package installation:- After installation when the shortcut is launched, it thro ws the below error message. MagicDisc can't open driver(mcdbus), Please make sure that MagicDisc is run as a dminstrator. You need to right MagicDisc.exe on Windows Explorer, and click "Run As Adminstra tor" to run. Since the driver is not from a verified publisher (unsigned driver), the driver doesn t install. Hence the error. Solution :- Converting unsigned driver to signed driver Guide to signing unsigned drivers Tools you need: (most are from the Windows Driver Kit): Inf2Cat.exe (To generate the unsigned catalog file from our INF) In the same folder as Inf2Cat.exe I have the following DLLs: Microsoft.Whos.Shared.IO.Cabinets.dll Microsoft.Whos.Shared.IO.Catalogs.dll Microsoft.Whos.Shared.Xml.InfReader.dll Microsoft.Whos.Winqual.Submissions.SubmissionBuilder.dll Microsoft.Whos.Xml.NonXmlDataReader.dll Makecert.exe (Used to create our certificate) Cert2spc.exe (Create Software Publisher's Certificate (SPC) from our certificate ) Signcode.Exe (Sign our catalog file with an Authenticode digital signature) Certmgr.exe (Used to add and delete our certificate to the system root) Introduction Now we have our toolset in place, let's package the unsigned magicdisc s driver. We're

packaging this driver for a customer called MSFTLtd . Let's assume we've captured the Magic disc application using a snapshot tool. We can see from the resultant snapshot that there is a file in [WindowsFolder]\inf called 'mcdbus.inf'. There are also file called 'mcdbus.sys' in [SystemFolder]D riverStore\FileRepository All of these files make up the Magicdisc driver so let's create a folder anywher e on your work machine (say, "c:\MDdrivers") and copy the three files to it. We should now have our unsigned driver in a temporary folder called " c:\MDdrive rs " which contains: mcdbus.inf mcdbus.sys mInstNt.dll Now let's generate a customer certificate, so we can sign this (and many more) d river(s). SIGNING THE DRIVER 1. Create .cat (catalog) file for driver. We notice that the Magicdisc driver contain a cat file which is for unsigned dri ver, so we'll need to generate one for singed. Open the .INF file in a text editor. Ensure that under the [version] section tha t you have an entry specifying a .cat file. If it's not there, add the line at the end of the section. For example: [version] Signature=xxxxxx Provider=xxxxxx CatalogFile.NT=mcdbus.cat Command line: Inf2Cat.exe /driver:"<Path to folder containing driver files>" /os:7_X64 Example: Inf2Cat.exe /driver:"C:\MDdrivers" /os:7_X64 Running this successfully will generate mcdbus.cat in the 'C:\MDdrivers' folder.

S-ar putea să vă placă și