IExpress 2 and bat file path

António picture António · Feb 2, 2012 · Viewed 8k times · Source

I have to install on several machines 3 .exe that needed to be installed with correct order. To do that I created a .bat file to install then.

Start /wait %CD%\x.exe /q
Start /wait %CD%\y.exe /q
Start /wait %CD%\z.exe /q

If I copy the folder and install on the target machines it works. But I want to create a self extracting exe that have the .bat and the 3 .exe.

I'm trying with IExpress 2 but, when i run the .exe created by IExpress i always have the error "windows cannot find the ...file path". Why is %CD% not working? Do I need to change the path to the 3 .exe?

Answer

dstroupe picture dstroupe · Jul 25, 2014

On the options, select "Store files using Long File Name inside Package" to store the files in full names.