Indigo Rose Software
  #1  
Old 09-21-2004
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Lightbulb Script: Enabling Debug Mode

Script: Enabling Debug Mode
Last Revision: September 21, 2004 (001)

Information
This script can be used to enable a debug mode in your setups that is configurable from the command line. This can be useful if you think you may need to do some advanced debugging of your setup on your or a customer's system.

To use this function in your Setup Factory 7.0 projects, simply copy and paste it into your Global Functions. You can get there by selecting Resources > Global Functions from the main menu.

To enable it at runtime, run your setup and pass it the command line argument "/DEBUG". For example:

C:\Output\Setup.exe /DEBUG


Code:
bDebugMode = false;
local nNumArgs = Table.Count(_CommandLineArgs);
if(nNumArgs > 0)then
	for i,strArg in _CommandLineArgs do
		if(strArg == "/DEBUG")then
			bDebugMode = true;
		end
	end
end

if(bDebugMode)then
	Debug.SetTraceMode(true);
	Debug.ShowWindow(true);
end
Script Name: Enabling Debug Mode
Type: Setup Factory 7.0 Script
Created By: Brett Kapilik

Comments? Please post them here.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help guide on Debug. TJ_Tigger AutoPlay Media Studio 5.0 0 12-03-2003 12:22 PM
Overwriting Silent Mode Bishal Setup Factory 6.0 2 10-14-2003 07:02 PM
Running in Full Screen (Kiosk) Mode Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 11:51 AM
Mix Mode CD on 2.0 AVGuru1 AutoPlay Menu Studio 3.0 3 12-23-2000 01:49 PM


All times are GMT -6. The time now is 08:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software