Hi,
I want to echo to a file under 'AppDataFolder'.
The file name is apache-installer-status.cmd
During the installation I create that file using the custom action 'LaunchExeWithDirectory'
The 'Working' is set to 'AppDataFolder'.
I tried the follwing on 'Command' field:
1) /C "echo @echo off >[AppDataFolder]apache-installer-status.cmd" - Didn't do anything.
2) /C "echo @echo off >[%AppDataFolder]MobileCloud\apache-installer-status.cmd" - Didn't do anything when 'MobileCloud' is not exists. When 'MobileCloud' was exists on target machine it worked.
3) /C "echo @echo off >[AppDataFolder]MobileCloud\apache-installer-status.cmd" - Didn't do anything.
4) /C "echo @echo off >[%AppDataFolder]apache-installer-status.cmd" - This is was the only command that worked. It created the file apache-installer-status.cmd under C:\Documents and Settings\Administrator\Application Data.
The issue is that I need that the file will be created under:
C:\Documents and Settings\Administrator\Application Data\MobileCloud\
I can't guarantee that the MobileCloud folder is exists on target machine.
Can you please advice?
Can you please explain why it is working using the system environment variable while using the property it doesn't work?
Thanks
FOLLOW US
Get the latest news in Application Packaging