Page 1 of 1

Prerequisites path not setting correcty at runtime.

Posted: Sun Jul 07, 2013 11:18 pm
by jayant
This is the script of prerequisites:

if Variable CRYSTAL13_1 Equals FALSE
Set Variable PROGRESSTEXT to Installing Crystal Reports Runtime Engine for .NET Framework 4
Set Variable CRYSTAL13_1FILES to
Define File Bag : #IADIR#\runtimes\crystal13_1bin\*.*, get runtime location of files into variable CRYSTAL13_1FILES
Set Variable CRYSTAL13_1ERR to
Install/Remove MSI Package $CRYSTAL13_1FILES$\CRRuntime_32bit_13_0_1.msi[ADDLOCAL=ALL] (get result into variable CRYSTAL13_1)
if Variable CRYSTAL13_1 Equals REBOOT
MessageBox: $TITLE$ Setup, Your computer needs to be restarted before $TITLE$ Setup can continue.$NEWLINE$$NEWLINE$Please save your work in all running programs and click OK to restart your computer. Setup will resume once your computer restarts.$NEWLINE$$NEWLINE$If you click CANCEL, setup will exit. You will have to run setup again at a later time to install $TITLE$.
if Variable REBOOTNOW Equals OK
Reboot Computer and Resume Setup
else
Terminate Installation
end
else
if Variable CRYSTAL13_1 Equals ERROR
MessageBox: $TITLE$ Setup, Crystal Reports Runtime Engine for .NET Framework 4 SP1 could not be installed. Please visit the SAP website to manually install this update on your system.$NEWLINE$Error: $CRYSTAL13_1ERR$$NEWLINE$$TITLE$ Setup cannot continue.
Terminate Installation
end
end
end

While debugging the variable CRYSTAL13_1FILES is set somewhere else. While executing the setup on any other PC it gives error "The filename, the directory, or volume label syntax is incorrect" while installing this runtime.
PLEASE help...

Re: Prerequisites path not setting correcty at runtime.

Posted: Mon Jul 08, 2013 9:11 am
by FrancescoT
Dear User,

I just verified what you reported creating a sample project from scratch, with including the "Crystal reports runtime engine for .Net 4".
It works fine.

I really don't know which could be the cause of your issue.
Have you tried with a MessageBox to visualize the value of CRYSTAL13_1FILES variable at runtime?

Regards

Re: Prerequisites path not setting correcty at runtime.

Posted: Mon Jul 08, 2013 11:15 pm
by jayant
FrancescoT wrote:Have you tried with a MessageBox to visualize the value of CRYSTAL13_1FILES variable at runtime?
Yes.
The problem was with long path. So I converted it to short path and it worked.
Thanks

Re: Prerequisites path not setting correcty at runtime.

Posted: Tue Jul 09, 2013 3:28 am
by FrancescoT
Happy you solved!

Regards

Re: Prerequisites path not setting correcty at runtime.

Posted: Mon Jul 22, 2013 12:50 am
by jayant
Previously when I converted the path to short path it worked properly. But now it is showing the same error again. Please help.

Re: Prerequisites path not setting correcty at runtime.

Posted: Mon Jul 22, 2013 11:43 am
by FrancescoT
Dear User,

... if worked previously, it is strange that it doesn't currently.

Have you changed something?

Regards