Variables and Values question?
Posted: Wed Jul 21, 2010 8:47 am
I am working on an install and I have it running prefect, there is just one part of the script that is not working. I have posted a copy of the script below.
I call up a value from an ini file, then apply if statements to it, and then either delete a file or copy and rename a file. When I run the script through debug it comes back with correct values for the variables but does not seem to execute correctly. I verify this by adding text to the $WINDIR$\aas2.ini file that I can check to see if the copy takes place and changing the wsversion to a version not greater than 7.01.50 to force it to copy. But when I change the version value in the wsversion, and run the installer it does not copy the file to its new location like I am wanting to.
Any ideas?
-------------------------------------------------------------------------------------------------------------
Get INI $CALLINGPATH$\wsversion.ini, [version] version Value into Variable WSVERSION
if Variable WSVERSION not Greater Than (Version) 7.01.50
Does File Exist $CALLINGPATH$\fpa.ini (get result into variable DOESFILEDIREXIST)
if Variable DOESFILEDIREXIST Equals True
Delete Files $CALLINGPATH$\fpa.ini (when installing)
end
end
Does File Exist $CALLINGPATH$\fpa.ini (get result into variable DOESFILEDIREXIST)
if Variable DOESFILEDIREXIST Equals FALSE
Copy Local Files $WINDIR$\aas2.ini to $CALLINGPATH$\fpa.ini
end
Set Variable DATAPATH to
Get INI $WINDIR$\aas2.ini, [Global] Datapath Value into Variable DATAPATH
Delete Files $CALLINGPATH$\wsversion.ini (when installing)
Copy Local Files $DATAPATH$\wsversion.ini to $CALLINGPATH$\wsversion.ini
Set Variable TARGETDIR to $CALLINGPATH$
-------------------------------------------------------------------------------------------------------
I call up a value from an ini file, then apply if statements to it, and then either delete a file or copy and rename a file. When I run the script through debug it comes back with correct values for the variables but does not seem to execute correctly. I verify this by adding text to the $WINDIR$\aas2.ini file that I can check to see if the copy takes place and changing the wsversion to a version not greater than 7.01.50 to force it to copy. But when I change the version value in the wsversion, and run the installer it does not copy the file to its new location like I am wanting to.
Any ideas?
-------------------------------------------------------------------------------------------------------------
Get INI $CALLINGPATH$\wsversion.ini, [version] version Value into Variable WSVERSION
if Variable WSVERSION not Greater Than (Version) 7.01.50
Does File Exist $CALLINGPATH$\fpa.ini (get result into variable DOESFILEDIREXIST)
if Variable DOESFILEDIREXIST Equals True
Delete Files $CALLINGPATH$\fpa.ini (when installing)
end
end
Does File Exist $CALLINGPATH$\fpa.ini (get result into variable DOESFILEDIREXIST)
if Variable DOESFILEDIREXIST Equals FALSE
Copy Local Files $WINDIR$\aas2.ini to $CALLINGPATH$\fpa.ini
end
Set Variable DATAPATH to
Get INI $WINDIR$\aas2.ini, [Global] Datapath Value into Variable DATAPATH
Delete Files $CALLINGPATH$\wsversion.ini (when installing)
Copy Local Files $DATAPATH$\wsversion.ini to $CALLINGPATH$\wsversion.ini
Set Variable TARGETDIR to $CALLINGPATH$
-------------------------------------------------------------------------------------------------------