Page 1 of 1

Showing information gathered by variable?

Posted: Thu Jul 08, 2010 12:48 pm
by arrigob
I am new but have been taking much time to become accustomed. One big question though, is there a way to run a variable command to see what information it produces. For example:


Set Variable CallingPath to ""
Get INI $Windir$\johndoe.ini, [Global] CallingPath Value into Variable CallingPath
Set Variable CallingPath to $CallingPath$


So, with (Get INI $Windir$\johndoe.ini, [Global] CallingPath Value into Variable CallingPath) this in mind, is there a way to see what this command produces? It would really help us ensure we are coding what we need correctly. Any help would be great and thanks for everyones time to read this!

Brandon

Re: Showing information gathered by variable?

Posted: Thu Jul 08, 2010 4:55 pm
by MichaelNesmith
You really don't need that last line there. The previous statement will already have updated the variable for you. I am not sure what you are asking, but you can always figure out what value the variable holds using the debugger and/or displaying the age old MessageBox :)

Re: Showing information gathered by variable?

Posted: Fri Jul 09, 2010 8:31 am
by arrigob
Awesome, that was exactly what I needed. Also, thanks for the info on that last line.

Re: Showing information gathered by variable?

Posted: Fri Jul 09, 2010 11:54 am
by arrigob
I now have another question regarding your answer. I see how messagebox works, but am still working on debug mode.

I have my script going through debug and it doesn't find any errors but it doesn't show me the value for the variable, what might I be missing? Does it write a log file? Just wondering where I find the variable values when using debug mode? Thanks again,

Brandon

Re: Showing information gathered by variable?

Posted: Fri Jul 09, 2010 2:00 pm
by MichaelNesmith
Did you add a variable watch?

Re: Showing information gathered by variable?

Posted: Mon Jul 12, 2010 7:16 am
by arrigob
Thanks Michael, no I did not. Where would I find it, I have been looking for it for about 30 minutes this morning.

Do you happen to know of any books about your software that are available for purchase? Thanks

Brandon

Re: Showing information gathered by variable?

Posted: Mon Jul 12, 2010 7:19 am
by arrigob
Found the watch that was next to debug, yea I feel bad now, lol.

Any tutorials or books your could recommend would be wonderful?

Re: Showing information gathered by variable?

Posted: Mon Jul 12, 2010 6:33 pm
by mills
Hi Brandon,

The best we have at the moment can be found in our White Papers:
http://www.installaware.com/publication ... papers.htm

And product guides:
http://www.installaware.com/publication ... guides.htm

The forum here may be able to answer many of your questions as well.

Also, pressing F1 anytime while using InstallAware will bring up the context-sensitive help window.