Click here to Skip to main content
15,888,454 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to add event handler to call another Dialog Pin
doanhanam16-Mar-12 4:30
doanhanam16-Mar-12 4:30 
AnswerRe: How to add event handler to call another Dialog Pin
Richard MacCutchan16-Mar-12 7:00
mveRichard MacCutchan16-Mar-12 7:00 
GeneralRe: How to add event handler to call another Dialog Pin
doanhanam18-Mar-12 0:10
doanhanam18-Mar-12 0:10 
GeneralRe: How to add event handler to call another Dialog Pin
Richard MacCutchan18-Mar-12 2:22
mveRichard MacCutchan18-Mar-12 2:22 
AnswerRe: How to add event handler to call another Dialog Pin
Albert Holguin16-Mar-12 18:19
professionalAlbert Holguin16-Mar-12 18:19 
QuestionMicrosoft authenticode certificate Pin
john563215-Mar-12 22:53
john563215-Mar-12 22:53 
AnswerRe: Microsoft authenticode certificate Pin
Code-o-mat16-Mar-12 0:24
Code-o-mat16-Mar-12 0:24 
QuestionDriver Installation Issue Pin
rupeshkp72815-Mar-12 21:42
rupeshkp72815-Mar-12 21:42 
I am just trying to install using Installshield 2009 a demo driver written by me.
I wrote a demo inf file.
I also wrote a simple console application in VC++.

Then I wanted to install the application along with the drivers and so I created Basic MSI Project and added my application exe to it.
After this I added my inf file to it using Device Driver Wizard(located in Set Up Design >>> New Feature) where installshield also added the .sys and .cat files.

Now the problem is that when I run the generated msi file it only installs the application and the driver does not installed.
During installation it gives me a Windows Security window and when I clink on "Install this driver software anyway" it proceeds ahead for install completion.
But the are no drivers in system32/drivers and no entried in registry.

The demo driver contain just basic driver functions with printfs in them.
The inf contains:
C++
[version]
Signature="$CHICAGO$"
Class=RKP_LTO_DEMO_DD

; GUID created by me usingGUIDGEN tool
ClassGuid={03E9C4D5-178E-4684-B407-A3E103D71CE9}

Provider=%DD_DEMO%
CatalogFile = dd_demo.cat
DriverVer=02/24/2012, 2.0.1.2

[DefaultInstall]
CopyFiles=XYZ_Device.Copy
AddReg=XYZ_DeviceHW

[XYZ_Device.Copy]
demo_dd.sys

[XYZ_DeviceHW]
HKLM,SYSTEM\CurrentControlSet\services\,demo_dd,0x00000000,"%12%\demo_dd.sys"

[SourceDisksNames]
1=%LTO_DISK_NAME%,Sample_DIF,0

[SourceDisksFiles]
demo_dd.sys=1,,

[DestinationDirs]
XYZ_Device.Copy=12

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
DD_DEMO = "RKP XYZ DD DEMO"
DisplayName = "RKP XYZ Driver Install Frameworks"
ClassName = "rkp xyz dd_demo"
DD_DEMO.DeviceDesc = "Rkp Xyz WI DIF Sample"
lto.SVCDESC = "RKP XYZ Device Driver"
LTO_DISK_NAME ="RKP XYZ Installation Disk"



The installshield install log gives the following message (0xE0000301):
C++
DIFXAPP: INFO: ENTER: DriverPackageInstallW
DIFXAPP: WARNINGRIVER_PACKAGE_LEGACY_MODE flag set but not supported on Plug and Play driver on VISTA. Flag will be ignored.
DIFXAPP: INFO: Installing INF file 'C:\Program Files (x86)\DEMO\My Product Name\dd_demo\dd_demo.inf' (Plug and Play).
DIFXAPP: WARNING:No device Ids found in INF 'C:\Windows\System32\DriverStore\FileRepository\dd_demo.inf_amd64_neutral_c3727dded0bf2410\dd_demo.inf' for current platform.
DIFXAPP: INFO: RETURN: DriverPackageInstallW (0xE0000301)


The driver gets installed when I install it using run32dll.exe.
I verified this by checking the system32/drivers folder and the seeing the registry entry.

But with installshield it does not install it.
Will anybody pls let me know what might be the issue and how to resolve it?
How to fix this issue?
AnswerRe: Driver Installation Issue Pin
Erudite_Eric15-Mar-12 21:50
Erudite_Eric15-Mar-12 21:50 
GeneralRe: Driver Installation Issue Pin
rupeshkp72815-Mar-12 21:57
rupeshkp72815-Mar-12 21:57 
GeneralRe: Driver Installation Issue Pin
Erudite_Eric16-Mar-12 10:12
Erudite_Eric16-Mar-12 10:12 
QuestionQuestion about smart pointers in C++ Pin
supermoore102515-Mar-12 19:52
supermoore102515-Mar-12 19:52 
AnswerRe: Question about smart pointers in C++ Pin
_AnsHUMAN_ 15-Mar-12 20:25
_AnsHUMAN_ 15-Mar-12 20:25 
AnswerRe: Question about smart pointers in C++ Pin
Erudite_Eric15-Mar-12 22:07
Erudite_Eric15-Mar-12 22:07 
Questionc++, easy way to format filesize from Large Integer to KB, MB, GB Pin
jkirkerx15-Mar-12 10:55
professionaljkirkerx15-Mar-12 10:55 
AnswerRe: c++, easy way to format filesize from Large Integer to KB, MB, GB Pin
enhzflep15-Mar-12 14:49
enhzflep15-Mar-12 14:49 
GeneralRe: c++, easy way to format filesize from Large Integer to KB, MB, GB Pin
Chuck O'Toole16-Mar-12 14:48
Chuck O'Toole16-Mar-12 14:48 
GeneralRe: c++, easy way to format filesize from Large Integer to KB, MB, GB Pin
enhzflep16-Mar-12 17:25
enhzflep16-Mar-12 17:25 
GeneralRe: c++, easy way to format filesize from Large Integer to KB, MB, GB Pin
jkirkerx18-Mar-12 17:06
professionaljkirkerx18-Mar-12 17:06 
AnswerRe: c++, easy way to format filesize from Large Integer to KB, MB, GB Pin
jschell16-Mar-12 11:39
jschell16-Mar-12 11:39 
QuestionDialog based on JPG advise Pin
Codling202015-Mar-12 6:32
Codling202015-Mar-12 6:32 
AnswerRe: Dialog based on JPG advise Pin
Richard MacCutchan15-Mar-12 6:59
mveRichard MacCutchan15-Mar-12 6:59 
AnswerRe: Dialog based on JPG advise Pin
_AnsHUMAN_ 15-Mar-12 18:36
_AnsHUMAN_ 15-Mar-12 18:36 
Questionneed small c++ projects with documentation Pin
johan david15-Mar-12 4:21
johan david15-Mar-12 4:21 
AnswerRe: need small c++ projects with documentation Pin
CPallini15-Mar-12 4:28
mveCPallini15-Mar-12 4:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.