• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 959
  • Last Modified:

Get dlls,ocx etc that a win32 Application is using

I have installed a win32 Application on machine A with the InstallShield  that sets automatically dlls,registry e.t.c.

What I need is to run the same application on Machine B without running the InstallShield - do it manually (write a script to import the correct entries in the registry , register the dlls etc). So I  have to identify all the program files that my win32 Application depends to.

My questions are

1.How can I identify the different programs that my win32 exe file depends to?
2.How can I write a script to do the same work on machine B that the InstallShield did on machine A?

Thanks

 
0
Cosine_Consultants
Asked:
Cosine_Consultants
1 Solution
 
ori_livnehCommented:
http://www.dependencywalker.com/

"Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules. For each module found, it lists all the functions that are exported by that module, and which of those functions are actually being called by other modules. Another view displays the minimum set of required files, along with detailed information about each file including a full path to the file, base address, version numbers, machine type, debug information, and more."
0
 
WillHudsonCommented:
For 1 - I'd use a couple of Utils from Sysinternals.com

http://www.sysinternals.com/ntw2k/utilities.shtml

Filemon and Process Explorer are probably the best 2 for you.
0
 
ori_livnehCommented:
Also, check out InstallShield decompilers.

http://www.woodmann.com/fravia/laste_09.htm
http://desktopengineer.com/article.php?story=20010329054101927&mode=print

The main website seems to be down, but you can still find the program here:
http://www.woodmann.com/fravia/zipped/isdcc10.zip

Otherwise, just google for "InstallShield decompiler" or "InstallShield script cracking".
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Cosine_ConsultantsAuthor Commented:
My first question is answered. How about the second one:

How can I write a script to do the same work on machine B that the InstallShield did on machine A?

Can you give me a sample?

The depedency walker is giving me a bunch of DLLS. How I am going to use those files to run my application.


0
 
gecko_au2003Commented:
If I was you I would make a list of dll's, ocx's or w/e other files dependancy walker tells you that your app needs and list them in this question so that we know which files your application needs, then from there also the registry entries that it requires and list them here as well, then from there open a new question in either the visual basic or the programming TA asking to make a script for you that will register the files, or w/e else you want it to do :) on Machine B :) and have a pointer question from your new question to this one so that people know which files you are talking about or you could just list those files in the new question :) upto you :)
0
 
Cosine_ConsultantsAuthor Commented:
thanks gecko_au2003 for your recomendation.

The dlls that the depedencywalker is giving me for the CIS.exe are

Module
MSJAVA.DLL
c:\windows\system32\MPR.DLL
c:\windows\system32\ADVAPI32.DLL
c:\windows\system32\COMCTL32.DLL
c:\windows\system32\GDI32.DLL
c:\windows\system32\KERNEL32.DLL
c:\windows\system32\MFC42.DLL
c:\windows\system32\MSVCRT.DLL
c:\windows\system32\NTDLL.DLL
c:\windows\system32\OLE32.DLL
c:\windows\system32\OLEAUT32.DLL
c:\windows\system32\RPCRT4.DLL
c:\windows\system32\SHELL32.DLL
c:\windows\system32\SHLWAPI.DLL
c:\windows\system32\USER32.DLL
c:\MyApplication\CIS.EXE
c:\windows\system32\ACTIVEDS.DLL
c:\windows\system32\ADSLDPC.DLL
c:\windows\system32\ADVPACK.DLL
c:\windows\system32\APPHELP.DLL
c:\windows\system32\ATL.DLL
c:\windows\system32\AUTHZ.DLL
c:\windows\system32\BROWSEUI.DLL
c:\windows\system32\CABINET.DLL
c:\windows\system32\CDFVIEW.DLL
c:\windows\system32\CERTCLI.DLL
c:\windows\system32\CFGMGR32.DLL
c:\windows\system32\CLUSAPI.DLL
c:\windows\system32\COMDLG32.DLL
c:\windows\system32\CREDUI.DLL
c:\windows\system32\CRYPT32.DLL
c:\windows\system32\CRYPTUI.DLL
c:\windows\system32\CSCDLL.DLL
c:\windows\system32\DBGHELP.DLL
c:\windows\system32\DEVMGR.DLL
c:\windows\system32\DHCPCSVC.DLL
c:\windows\system32\DNSAPI.DLL
c:\windows\system32\DUSER.DLL
c:\windows\system32\EFSADU.DLL
c:\windows\system32\ESENT.DLL
c:\windows\system32\HLINK.DLL
c:\windows\system32\HNETCFG.DLL
c:\windows\system32\IMAGEHLP.DLL
c:\windows\system32\IMGUTIL.DLL
c:\windows\system32\IMM32.DLL
c:\windows\system32\INETCOMM.DLL
c:\windows\system32\IPHLPAPI.DLL
c:\windows\system32\LINKINFO.DLL
c:\windows\system32\LZ32.DLL
c:\windows\system32\MFC42U.DLL
c:\windows\system32\MLANG.DLL
c:\windows\system32\MOBSYNC.DLL
c:\windows\system32\MPRAPI.DLL
c:\windows\system32\MPRUI.DLL
c:\windows\system32\MSASN1.DLL
c:\windows\system32\MSGINA.DLL
c:\windows\system32\MSHTML.DLL
c:\windows\system32\MSI.DLL
c:\windows\system32\MSIMG32.DLL
c:\windows\system32\MSLS31.DLL
c:\windows\system32\MSOERT2.DLL
c:\windows\system32\MSRATING.DLL
c:\windows\system32\MSSIGN32.DLL
c:\windows\system32\MSVCP60.DLL
c:\windows\system32\MSWSOCK.DLL
c:\windows\system32\NETAPI32.DLL
c:\windows\system32\NETCFGX.DLL
c:\windows\system32\NETMAN.DLL
c:\windows\system32\NETPLWIZ.DLL
c:\windows\system32\NETRAP.DLL
c:\windows\system32\NETSHELL.DLL
c:\windows\system32\NETUI0.DLL
c:\windows\system32\NETUI1.DLL
c:\windows\system32\NETUI2.DLL
c:\windows\system32\NTDSAPI.DLL
c:\windows\system32\NTLANMAN.DLL
c:\windows\system32\ODBC32.DLL
c:\windows\system32\OLEACC.DLL
c:\windows\system32\OLEDLG.DLL
c:\windows\system32\OLEPRO32.DLL
c:\windows\system32\POWRPROF.DLL
c:\windows\system32\PRINTUI.DLL
c:\windows\system32\PSAPI.DLL
c:\windows\system32\QUERY.DLL
c:\windows\system32\RASAPI32.DLL
c:\windows\system32\RASDLG.DLL
c:\windows\system32\RASMAN.DLL
c:\windows\system32\REGAPI.DLL
c:\windows\system32\RTUTILS.DLL
c:\windows\system32\SAMLIB.DLL
c:\windows\system32\SCECLI.DLL
c:\windows\system32\SECUR32.DLL
c:\windows\system32\SETUPAPI.DLL
c:\windows\system32\SHDOCVW.DLL
c:\windows\system32\SHSVCS.DLL
c:\windows\system32\TAPI32.DLL
c:\windows\system32\URLMON.DLL
c:\windows\system32\USERENV.DLL
c:\windows\system32\USP10.DLL
c:\windows\system32\UTILDLL.DLL
c:\windows\system32\UXTHEME.DLL
c:\windows\system32\VERSION.DLL
c:\windows\system32\W32TOPL.DLL
c:\windows\system32\WINHTTP.DLL
c:\windows\system32\WININET.DLL
c:\windows\system32\WINMM.DLL
c:\windows\system32\WINSCARD.DLL
c:\windows\system32\WINSPOOL.DRV
c:\windows\system32\WINSTA.DLL
c:\windows\system32\WINTRUST.DLL
c:\windows\system32\WLDAP32.DLL
c:\windows\system32\WMI.DLL
c:\windows\system32\WS2_32.DLL
c:\windows\system32\WS2HELP.DLL
c:\windows\system32\WSOCK32.DLL
c:\windows\system32\WTSAPI32.DLL
c:\windows\system32\WZCDLG.DLL
c:\windows\system32\WZCSAPI.DLL
c:\windows\system32\WZCSVC.DLL
c:\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.2600.2180_x-ww_522f9f82\GDIPLUS.DLL
0
 
Cosine_ConsultantsAuthor Commented:
if I use the Process Explorer I get the following

Process: cis.exe Pid: 2620

Name      Description      Company Name      Version
version.dll      Version Checking and File Installation Libraries      Microsoft Corporation      5.01.2600.2180
uxtheme.dll      Microsoft UxTheme Library      Microsoft Corporation      6.00.2900.2180
usp10.dll      Uniscribe Unicode script processor      Microsoft Corporation      1.420.2600.2180
user32.dll      Windows XP USER API Client DLL      Microsoft Corporation      5.01.2600.2622
unicode.nls                  
sorttbls.nls                  
sortkey.nls                  
shlwapi.dll      Shell Light-weight Utility Library      Microsoft Corporation      6.00.2900.2627
shell32.dll      Windows Shell Common Dll      Microsoft Corporation      6.00.2900.2620
setupapi.dll      Windows Setup API      Microsoft Corporation      5.01.2600.2180
rpcrt4.dll      Remote Procedure Call Runtime      Microsoft Corporation      5.01.2600.2180
R000000000074.clb                  
oleaut32.dll            Microsoft Corporation      5.01.2600.2180
ole32.dll      Microsoft OLE for Windows      Microsoft Corporation      5.01.2600.2595
ntdll.dll      NT Layer DLL      Microsoft Corporation      5.01.2600.2180
msvcrt40.dll      VC 4.x CRT DLL (Forwarded to msvcrt.dll)      Microsoft Corporation      5.01.2600.2180
msvcrt.dll      Windows NT CRT DLL      Microsoft Corporation      7.00.2600.2180
msvcr71.dll      Microsoft® C Runtime Library      Microsoft Corporation      7.10.3052.0004
msjter35.dll      Microsoft Jet Database Engine Error DLL      Microsoft Corporation      3.51.0623.0000
MSJINT35.DLL      Microsoft Jet Database Engine International DLL      Microsoft Corporation      3.51.0623.0000
MSJET35.DLL      Microsoft Jet Engine Library      Microsoft Corporation      3.51.2723.0000
msi.dll      Windows Installer      Microsoft Corporation      3.01.4000.1823
msctfime.ime      Microsoft Text Frame Work Service IME      Microsoft Corporation      5.01.2600.2180
msctf.dll      MSCTF Server DLL      Microsoft Corporation      5.01.2600.2180
mfc42loc.dll      MFC Language Specific Resources      Microsoft Corporation      6.00.8168.0000
mfc42.dll      MFCDLL Shared Library - Retail Version      Microsoft Corporation      6.02.4131.0000
lpk.dll      Language Pack      Microsoft Corporation      5.01.2600.2180
locale.nls                  
kernel32.dll      Windows NT BASE API Client DLL      Microsoft Corporation      5.01.2600.2180
imm32.dll      Windows XP IMM32 API Client DLL      Microsoft Corporation      5.01.2600.2180
idle.dll      idle      Yahoo! Inc.      1.00.0000.0002
gdi32.dll      GDI Client DLL      Microsoft Corporation      5.01.2600.2180
expsrv.dll      Visual Basic for Applications Runtime - Expression Service      Microsoft Corporation      6.00.0072.9589
dao350.dll      Microsoft DAO 3.51 Object Library      Microsoft Corporation      3.51.1608.0000
ctype.nls                  
comres.dll            Microsoft Corporation      2001.12.4414.0258
comdlg32.dll      Common Dialogs DLL      Microsoft Corporation      6.00.2900.2180
comctl32.dll      Common Controls Library      Microsoft Corporation      5.82.2900.2180
comctl32.dll      User Experience Controls Library      Microsoft Corporation      6.00.2900.2180
clbcatq.dll            Microsoft Corporation      2001.12.4414.0258
cis.exe      Core Executable File      CSCG      4.00.0000.0004
c_1252.nls                  
advapi32.dll      Advanced Windows 32 Base API      Microsoft Corporation      5.01.2600.2180




Beside the Dlls  the process is giving me the following

Process: cis.exe Pid: 2620

Type      Name
Desktop      \Default
Directory      \Windows
Directory      \BaseNamedObjects
Directory      \KnownDlls
File      C:\Documents and Settings\Username\Local Settings\Temp\JETD9.tmp
File      C:\MyApplication\test56.cib
File      C:\MyApplication\test56.cdb
File      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9
File      \Device\KsecDD
File      C:\MyApplication
Key      HKU
Key      HKLM\SOFTWARE\Microsoft\COM3
Key      HKLM\SOFTWARE\Microsoft\COM3
Key      HKCR\CLSID
Key      HKCR
Key      HKLM\SOFTWARE\Microsoft\COM3
Key      HKU
Key      HKLM\SOFTWARE\Microsoft\COM3
Key      HKLM\SOFTWARE\Microsoft\COM3
Key      HKCR\CLSID
Key      HKCU\Software\Classes
Key      HKU
Key      HKLM\SYSTEM\ControlSet001\Control\Nls\CodePage
Key      HKLM
Key      HKCU
Key      HKCU\Software\Classes
Key      HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer
Key      HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
Key      HKLM\SYSTEM\ControlSet001\Control\Nls\Locale
Key      HKLM\SYSTEM\ControlSet001\Control\Nls\Language Groups
Key      HKLM\SYSTEM\ControlSet001\Control\Nls\Locale\Alternate Sorts
Key      HKCU\Software\Classes
Key      HKCR
Key      HKLM\SOFTWARE\Microsoft\COM3
Key      HKU
Key      HKCR
KeyedEvent      \KernelObjects\CritSecOutOfMemoryEvent
Mutant      \BaseNamedObjects\MSCTF.Shared.MUTEX.AKH
Mutant      \BaseNamedObjects\CTF.LBES.MutexDefaultS-1-5-21-1229272821-1972579041-839522115-1120
Mutant      \BaseNamedObjects\CTF.Compart.MutexDefaultS-1-5-21-1229272821-1972579041-839522115-1120
Mutant      \BaseNamedObjects\CTF.Asm.MutexDefaultS-1-5-21-1229272821-1972579041-839522115-1120
Mutant      \BaseNamedObjects\CTF.Layouts.MutexDefaultS-1-5-21-1229272821-1972579041-839522115-1120
Mutant      \BaseNamedObjects\CTF.TMD.MutexDefaultS-1-5-21-1229272821-1972579041-839522115-1120
Mutant      \BaseNamedObjects\CTF.TimListCache.FMPDefaultS-1-5-21-1229272821-1972579041-839522115-1120MUTEX.DefaultS-1-5-21-1229272821-1972579041-839522115-1120
Mutant      \BaseNamedObjects\ShimCacheMutex
Section      \BaseNamedObjects\__R_000000000074_SMem__
Section      \BaseNamedObjects\MSCTF.Shared.SFM.AKH
Section      \BaseNamedObjects\CiceroSharedMemDefaultS-1-5-21-1229272821-1972579041-839522115-1120
Section      \BaseNamedObjects\CTF.TimListCache.FMPDefaultS-1-5-21-1229272821-1972579041-839522115-1120SFM.DefaultS-1-5-21-1229272821-1972579041-839522115-1120
Section      \BaseNamedObjects\ShimSharedMemory
Semaphore      \BaseNamedObjects\shell.{A48F1A32-A340-11D1-BC6B-00A0C90312E1}
Semaphore      \BaseNamedObjects\shell.{A48F1A32-A340-11D1-BC6B-00A0C90312E1}
Semaphore      \BaseNamedObjects\shell.{7CB834F0-527B-11D2-9D1F-0000F805CA57}
Semaphore      \BaseNamedObjects\shell.{210A4BA0-3AEA-1069-A2D9-08002B30309D}
Thread      cis.exe(2620): 712
Thread      cis.exe(2620): 3624
Thread      cis.exe(2620): 548
Thread      cis.exe(2620): 3048
WindowStation      \Windows\WindowStations\WinSta0
WindowStation      \Windows\WindowStations\WinSta0
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now