Showing information gathered by variable?

Got a problem you cannot solve? Try here.
Post Reply
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Showing information gathered by variable?

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Showing information gathered by variable?

Post 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 :)
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Showing information gathered by variable?

Post by arrigob »

Awesome, that was exactly what I needed. Also, thanks for the info on that last line.
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Showing information gathered by variable?

Post 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
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: Showing information gathered by variable?

Post by MichaelNesmith »

Did you add a variable watch?
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Showing information gathered by variable?

Post 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
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Showing information gathered by variable?

Post 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?
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Showing information gathered by variable?

Post 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.
Andy Mills
InstallAware
Other Help:
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help - Press F1 in the InstallAware IDE.
Post Reply