romsempire Posted June 26, 2008 Posted June 26, 2008 Hi all,I have prepared a batch file to install an application.When I do double click on this patch the installation works, and my application after reboot works.Instead, if I install this application inside wpi, no one installation file is found.Seem that wpi don't esecute batch file from location of batch.For examaple.My batch is in %wpipath%/Install/myapp/the name of my batch is silentInstall.cmdSo in wpi I put %wpipath%/Install/myapp/silentInstall.cmdin mysilentInstall there is:start /wait "application.exe" /s /norebootstart /wait regedit /s registryset.regThis don't works.I have tried to change in start /wait "%wpipath%/Install/myapp/application.exe" /s /norebootstart /wait regedit /s %wpipath%/Install/myapp/registryset.regAnd nothing.How can I use wpi with batch files?
snowtox Posted June 27, 2008 Posted June 27, 2008 (edited) Hey romsempiremay be you try not using this slash: "/"instead of it use this one: "\" so that it is in WPI%wpipath%\Install\myapp\silentInstall.cmdand in the batchstart /wait "%wpipath%\Install\myapp\application.exe" /s /norebootstart /wait regedit /s %wpipath%\Install\myapp\registryset.regand don't forgett if you change it in the config.js you need always two of them "\\"because this works fine with me I wonder if it doesn't work with your WPI...snowtox Edited June 27, 2008 by snowtox
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now