/build/static/layout/Breadcrumb_cap_w.png

Installing PNP drivers MSI

I am attempting my first PNP driver install via MSI. I have read the information available here and it looks easy till I actually try to find the parts of the msi referenced. Does anyone know where is the "In the Execute Deferred section sequence an If Statement custom action after the InstallFiles action" is??? Is this in a table and if so which one?

I have orca and wininstall to edit the msi but can't seem to find the sections i am supposed to modify.

0 Comments   [ + ] Show comments

Answers (7)

Posted by: anonymous_9363 15 years ago
Red Belt
0
You need to research Custom Actions. There are some good links in this thread http://itninja.com/question/installshield-vs-wise-for-repackaging041
Posted by: joedown 15 years ago
Third Degree Brown Belt
0
The problem with the example posted on this site is that it was built using a Wise and a wise script. It's a disservice for those who do not have Wise to see how this is accomplished by looking at the msi in Orca.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0

The problem with the example posted on this site is that it was built using a Wise and a wise script. It's a disservice for those who do not have Wise to see how this is accomplished by looking at the msi in Orca.


Joedown,

Here's something that's microsoft: http://msdn.microsoft.com/en-us/library/aa368268.aspx Also, I think Ian's link contained stuff pointing to A. Stebners blog, which is not Wise specific. Also, I'm pretty sure that WinInstall, which the OP says he has, must have a GUI similar to Wise's where it divides up the custom action and script section into full UI, execution mode and deferred mode.
Posted by: dang574 15 years ago
Senior Yellow Belt
0
Thanks for the replies. I am slowly getting somewhere, have figured out where to put the name of the custom action in the AdminExecuteSequence table and have created the custom action. Now I just need to understand where the rest of the information goes (so far none of the links have shown this). A custom action consists of a Name:SETUPADDTOSOURCELISTA Type:DLL Source:??? Target:???, seems logical that the setupapi.dll is either the target or source but no one explains which. I am guessing that the function and parameters belong in a file that is the other (source or target) or maybe just use the driver.inf ?
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: dang574
have figured out where to put the name of the custom action in the AdminExecuteSequence table and have created the custom action.
That means that the CA will only run when you use the MSI to create an administrative install point, which is NOT the same thing as installing it using an account with local administrator-level privileges. It needs to be in the InstallExecuteSequence if you want it to run during a normal installation.

Next, get yourself a proper authoring tool.. Although I'm almost certain to get flamed for saying so, only a masochist would use Orca to build an MSI from scratch, particularly a driver install.

Lastly, check out the topic at the top of the forum 'PNP Driver Install Template'.
Posted by: dang574 15 years ago
Senior Yellow Belt
0
Thanks VBScab, I am using Wininstall 8, which has a nice little wizard to create a custom action. It starts with entering the name, no problem SETUPADDTOSOURCELISTA then it goes to select the type, again no problem select DLL from the list. Next it wants to know the source (binary table or file table), next it wants either binary entry or table entry, no clue what to put here. Next it asks for the DLL entry point, I'm guessing here but I put [systemfolder]setupapi.dll. Finally it asks for execution type: Always, first sequence, once per process, client repeat or inscript, and a return type: continue or asynchronous, and a do not impersonate checkbox.

I hope you can see how none of this equates to what is in the PNP driver install template that I have read over and over trying to figure out where to put a Function and Parameters. Any help would be greatly appreciated.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
ORIGINAL: dang574

Thanks VBScab, I am using Wininstall 8, which has a nice little wizard to create a custom action. It starts with entering the name, no problem SETUPADDTOSOURCELISTA then it goes to select the type, again no problem select DLL from the list. Next it wants to know the source (binary table or file table), next it wants either binary entry or table entry, no clue what to put here. Next it asks for the DLL entry point, I'm guessing here but I put [systemfolder]setupapi.dll. Finally it asks for execution type: Always, first sequence, once per process, client repeat or inscript, and a return type: continue or asynchronous, and a do not impersonate checkbox.

I hope you can see how none of this equates to what is in the PNP driver install template that I have read over and over trying to figure out where to put a Function and Parameters. Any help would be greatly appreciated.



binary or file table refers to where the dll is stored, is it a file in the installation (file table) or a utility you just want to run once (binary).

As for the other choices try the defaults and see how it works. Presumably you do at least know the command line you want to run? If so, then the links Ian sent should help you to get comfortable with custom actions.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ