This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Add a modem
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 07, 2008
12:41 PM
Add a modem
What is the best approach to add a modem in Windows XP/Vista using InstallShield 2008?
I write InstallScript code, etc. and if that is the best way, just point me at some functions, thanks!
-Ed
I write InstallScript code, etc. and if that is the best way, just point me at some functions, thanks!
-Ed
(5) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 13, 2008
07:55 PM
Any place to start with InstallShield? Or do I have to write a separate app to install the modem driver?
-Ed
-Ed
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 14, 2008
10:30 AM
I used this piece of code to load a USB dongle which required a specific driver. So you will need to replace the appropriate parameters for you modem.
Let me know if this works for you.
Let me know if this works for you.
external prototype BOOL NewDev.UpdateDriverForPlugAndPlayDevicesA(HWND, // HWND hwndParent,
BYVAL STRING, // LPCTSTR HardwareId,
BYVAL STRING, // LPCTSTR FullInfPath,
LONG, // DWORD InstallFlags,
POINTER // PBOOL bRebootRequired OPTIONAL
);
function OnFirstUIAfter()
STRING strFileName;
STRING strTemp;
NUMBER nResult;
NUMBER nHwnd;
begin
strFileName = WINSYSDIR ^ "NewDev.dll";
strTemp = WINDIR ^ "INF\\DS24902k.inf";
nResult = UseDLL(strFileName);
if (nResult = 0) then
nHwnd = GetWindowHandle (HWND_INSTALL);
bResult = UpdateDriverForPlugAndPlayDevicesA(nHwnd,
"USB\\VID_04FA&PID_2490",
strTemp,
1,
NULL);
UnUseDLL(strFileName);
endif;
end;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 14, 2008
08:27 PM
Hmm this looks good. But I will need to install the modem INF file, and also tell it what COM port to use. (And probably design a dialog box to ask for that, but I've got that part down.)
Don't suppose there is a pre-existing function for taking a COM port parameter? Or modem specific INF installation in InstallShield?
-Ed
Don't suppose there is a pre-existing function for taking a COM port parameter? Or modem specific INF installation in InstallShield?
-Ed
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2008
03:03 AM
I've looked through a lot of various places on the net, and found rundll32.exe calling modem.cpl, but can't seem to make it work in XP and Vista to point at a COM port.
I just need to install an existing modem driver and point it to a COM port that a user selects. I'm sure people have done it before, but what is the simplest/common method?
-Ed
I just need to install an existing modem driver and point it to a COM port that a user selects. I'm sure people have done it before, but what is the simplest/common method?
-Ed
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 19, 2008
03:08 PM
Found the solution: http://support.microsoft.com/kb/304294
The Windows DDK (now WDK) is needed to compile it.
And then do a LaunchAppandWait with: "mdminst c:\mdmgen.inf COM3 mdmgen336"
There ya go.
-Ed
The Windows DDK (now WDK) is needed to compile it.
And then do a LaunchAppandWait with: "mdminst c:\mdmgen.inf COM3 mdmgen336"
There ya go.
-Ed