Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

deploytool execution from a batch file is different from MATLAB command window, how can I fix this?

1 vue (au cours des 30 derniers jours)
I use deploytool to generate a standalone executable of an application. Part of my build process is to call the deploytool from a batch script in Windows, which is a .bat file with the text: deploytool -package projectname.prj
This worked fine for a while, but after sometime it stopped working with this error message:
"Cached offline installer not generated or is invalid. Run the package command from MATLAB to generate the offline installer cache."
I noticed that running the deploytool from within matlab creates a cached offline installer which is not generated when running from the batch file. The tricky thing is that when you finish running it through matlab, the cache is not cleared so the problem will not appear if you run the command from the batch file right after. It would seem that after a period of time the temporary cache is cleared so the revision build fails.
I have tried calling an instance of matlab by using matlab -wait -nosplash -nodisplay -r "deploytool -package stimgen.prj",exit but this does not work because the exit command will terminate matlab before the deploytool has time to finish its processes.
.
My question is; is there a way to run the deploytool from the .bat file and generate the "cached offline installer" so that this error does not happen?

Réponses (0)

Cette question est clôturée.

Tags

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by