简体   繁体   中英

IExpress 2 and bat file path

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?

在选项上,选择“使用包中的长文件名存储文件”以全名存储文件。

This problem can be solved by both:

  • checking " use long file names "
  • saving your batch file with a .cmd extension instead of a .bat (IExpress has an option for using long file names, but it is ignored if you have a .bat file)

Source: http://knowciscostuff.wordpress.com/2012/06/15/iexpress-tool-on-windows-to-create-self-extracting-exe/

解决此特定问题的真正方法是在“包名称和选项”窗口中选中“在包内使用长文件名存储文件”选项。

The problem was the long names of the files. The file's name can't over 8 characters.

I just change the files names and it worked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM