Variables and Values question?

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

Variables and Values question?

Post by arrigob »

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

Re: Variables and Values question?

Post by arrigob »

Could region location be the cause?
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: Variables and Values question?

Post by alibaba »

AFAIK you have not to use leading zero in the version. Try using 7.1.50 and try to log your script by using the Plugin WriteLog (Camelot Plugin).
If it is an localization problem it should at least work for english.
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Variables and Values question?

Post by arrigob »

Thanks for directing me to the plug-in, I am going to take a look at it now.
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Variables and Values question?

Post by arrigob »

All my variables are showing up correctly, but the installation seems to skip executing the commands in the script I provided in my first post. It starts skipping the code when it the version number with the variable wsversion. Any help would be awesome, thanks.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Variables and Values question?

Post by mills »

Are you calling Apply Install?

Code appearing in the pinkish color are Windows Installer commands and won't be run until Apply Install is called...
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.
arrigob
Posts: 11
Joined: Thu Jul 08, 2010 12:42 pm

Re: Variables and Values question?

Post by arrigob »

Apply Install or Apply changes. I could not find apply install.
mills
Posts: 814
Joined: Tue Jul 06, 2010 7:10 pm
Location: Honolulu, HI

Re: Variables and Values question?

Post by mills »

Apply Changes will appear as Apply Install if you select "Install Product" as the "action to perform" from the Apply Changes command.

The pinkish lines of code won't be applied until Apply Install is called.
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