Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Debugging CA type 6


5 replies to this topic

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 05 October 2004 - 15:42

Hello!

How I can call development environment from custom action VBScript code?

Article below explain a propblem with STOP statement.

http://support.micro...kb;en-us;252895

Neither fixed JITDebug key in registry, or not I can't call debugger with STOP statement.
Sincerely your,
Anton Spitsyn
http://www.installsite.ru

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 October 2004 - 17:52

Have you tried "Debugging Custom Actions" at http://www.installsi...s/en/msi/ca.htm

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 06 October 2004 - 09:41

Second sentence of article "Debugging Custom Actions", provided with WMI SDK state, that the techniques described in this section only for DLL CA.
It is not possible to use dynamic debugging with custom actions based on Executable Files or Scripts (like Custom Action type 6).

How is it actually?

"Debugging Custom Actions" from www.installsite.org explain additionally MsiBreak environment variable and Debugging Support in IPWI 2.x.

I suppose both of additional methods mean attach to process with Visual Studio C++.

Therefore, Script Custom Actions (like type 6) impossible to debug at runtime?

Sincerely your,
Anton Spitsyn
http://www.installsite.ru

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 October 2004 - 17:37

I believe this is one of the disadvantages of VBScript custom actions - you can't really debug them. Use MsgBox and logging instead

Zweitze

Zweitze
  • Full Members
  • 522 posts

Posted 08 October 2004 - 11:25

Try using the Microsoft Script Debugger, and show a messagebox in the CA. MSD is the same debugger you use to debug ASPs.

Note that whether MSD can debug Windows Installer scripts depends on the way Windows Installer runs scripts. (I have no experience with this, just know how to extend software with Active Scripting...)

AntonS

AntonS
  • Full Members
  • 94 posts

Posted 11 October 2004 - 06:44

But Microsoft Script Debugger can't be attached to MSIEXEC process?
Thereby I can debug with MSD script, used in CA only, separately from installation process.

Sincerely your,
Anton Spitsyn
http://www.installsite.ru