cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reddy611
Level 6

bat file

HI Firends.

while installing the application am excuting one .bat file.
in this .bat file second line is working.it is creating the Folder in the desktop.
if i hardcode the value it is working.But if i didnt hardcode the value and excute the .bat file like this $USER_INSTALL_DIR$ it is not creating folder in the installation directory.


please guide me how to do this one.

THIS is my .bat file.after installing the .bat file only am excuting.
mkdir $USER_INSTALL_DIR$$//$DEF"
mkdir "C:\Documents and Settings\rreddy03\Desktop\\DEF"
copy "$USER_INSTALL_DIR$$\ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"
Labels (1)
0 Kudos
(1) Reply
pv7721
Level 20

Reddy611 wrote:
HI Firends.

while installing the application am excuting one .bat file.
in this .bat file second line is working.it is creating the Folder in the desktop.
if i hardcode the value it is working.But if i didnt hardcode the value and excute the .bat file like this $USER_INSTALL_DIR$ it is not creating folder in the installation directory.


please guide me how to do this one.

THIS is my .bat file.after installing the .bat file only am excuting.
mkdir $USER_INSTALL_DIR$$//$DEF"
mkdir "C:\Documents and Settings\rreddy03\Desktop\\DEF"
copy "$USER_INSTALL_DIR$$\ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"


This should read something like that:


mkdir $USER_INSTALL_DIR$$\$DEF"
copy "$USER_INSTALL_DIR$$\$ra.dll" "$USER_INSTALL_DIR$$\$DEF$\$ra.dll"


There is no such thing as $//$, only $\$ or $/$ is a valid option. And by the way I strongly urge you to read the InstallAnywhere manual. You're doing things in this .bat file that can be natively done in IA (like a folder creation, and copying a .dll into it).
0 Kudos