Jump to content

Wpi with batch files


Recommended Posts

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.cmd

So in wpi I put %wpipath%/Install/myapp/silentInstall.cmd

in mysilentInstall there is:

start /wait "application.exe" /s /noreboot

start /wait regedit /s registryset.reg

This don't works.

I have tried to change in

start /wait "%wpipath%/Install/myapp/application.exe" /s /noreboot

start /wait regedit /s %wpipath%/Install/myapp/registryset.reg

And nothing.

How can I use wpi with batch files?

Link to comment
Share on other sites


Hey romsempire

may be you try not using this slash: "/"

instead of it use this one: "\"

so that it is in WPI

%wpipath%\Install\myapp\silentInstall.cmd

and in the batch

start /wait "%wpipath%\Install\myapp\application.exe" /s /noreboot
start /wait regedit /s %wpipath%\Install\myapp\registryset.reg

and 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 by snowtox
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...