|Note regarding InstallShield 6: Unless otherwise stated the tips and tricks on this page have been written for InstallShield 5, and not all of them will work with InstallShield 6. Some may even damage your project files, so remember to make backups first.|
Here are steps I used to successfully debug an InstallShield uninstall DLL from within Microsoft's Visual C++ 5.0. For the sake of this discussion, my uninstall DLL is called UninstCPL.dll.
#ifdef _DEBUG _asm int 3 #endif
-f"<full path to uninst.isu>" -c"<full path to installed UninstCPL.dll>"
Written by Charlie Rundles
See also: DLL Testing Tool to test the UninstInitialize() and UninstUnInitialize() functions of your DLL independent of a setup project.
This tool lets you easily:
dlltester.zip (133.214 Bytes) Provided by Eric Olson
RegDrop is a component registration utility that allows you to simply drag and drop a component on it and RegDrop will register or unregister the component for you. This process is much easier than having to locate the REGSVR32 console application to register components. And more important, RegDrop gives real error messages as opposed to cryptic numeric result codes. This is very helpful in debugging self-registration problems in the files you are installing.
Visit Addison Software to download the free RegDrop utility
InstallShield doesn't have a feature like TRACE in C++. Here is a trace function that you can sprinkle in your script code - it will send debug messages through the OutputDebugString Windows API. Use a tool like DebugView to catch and display these messages.
To use the Trace function, include Trace.h at the top of Setup.rul and Trace.rul at the end of Setup.rul. You need to deine _DEBUG in Build ->Settings-> Compile -> Preprocessor Defines. Also it is suggested that you add code like the following to your script, so that you will not distribute a debug version to clients, as it's a bit slow.
#ifdef _DEBUG SetTitle( "Debug Mode"+@TITLE_CAPTIONBAR, 0, BACKGROUNDCAPTION ); #else SetTitle( @TITLE_CAPTIONBAR, 0, BACKGROUNDCAPTION ); #endif
Trace.zip Written by Satya Gadepalli
File size: 1.208 bytes Last update: 2000-11-27
|News||Discussions||Windows Installer||Related Tools||More Help||InstallScript||About InstallSite||Shop||Site Search|
|Neuigkeiten||Diskussionsgruppen||Windows Installer||MSI FAQ||Artikel||Shop||Suche|
Copyright © by InstallSite Stefan
Krueger. All rights reserved. Legal
By using this site you agree to the license agreement. Webmaster contact