How to: Create runtime scripts for WinPcap driver

Post specialized setup scripts you have created here.
lextm
Posts: 23
Joined: Wed Aug 22, 2007 2:53 am
Contact:

How to: Create runtime scripts for WinPcap driver

Postby lextm » Tue Aug 28, 2007 2:29 am

WinPcap is a driver available from http://www.winpcap.org

After reading about How to on BDE, I design this WinPcap runtime in an hour.

This runtime script is not yet perfect but can be used easily.

1. Copy all rtm and mia files to <InstallAware>\\runtimes

2. Open your project in IA, and in Design mode you can see WinPcap is listed there.

3. When you have select WinPcap, two files are added under Include Scripts in MSIcode mode.

4. You should modify some lines in order to make it work on your machine:

4.1 Line 11 and 14 in checkwinpcap.mia - you should update the version string

4.2 Line 27 in checkwinpcap.mia - update the version string

4.3 Line 3 in setupwinpcap.mia - update the File Bag

This runtime can be a nice start point if you want to learn how to write a runtime yourself. Because WinPcap installer is created with NSIS, you can see how to deal with it correctly in this sample.

File Attached:

WinPcap.zip

lextm
Posts: 23
Joined: Wed Aug 22, 2007 2:53 am
Contact:

Postby lextm » Tue Sep 04, 2007 3:46 am

Just an update. I made a mistake in setupwinpcap.mia, which is fixed now.

Please use this new version.

File Attached:

WinPcap.zip

lextm
Posts: 23
Joined: Wed Aug 22, 2007 2:53 am
Contact:

Postby lextm » Wed Sep 19, 2007 11:37 pm

Yesterday my partner found a bug in checkwinpcap.mia.

And after digging I found it is because WinPcap installer is created by NSIS, so the uninstallation is slightly different.

I will blog about this later on my blog at http://lextm.blogspot.com

Never mind. I upload the new runtime package now.

Issue addressed in this version is,

When you have an old version of WinPcap installed instead of calling uninstaller in MSIcode, I let new version installer of WinPcap clean things up. This really removes a lot of inappropriate behaviors.

File Attached:

WinPcap.zip


Return to “Sample Scripts”

Who is online

Users browsing this forum: No registered users and 26 guests