First of all you have to see that you have unchecked Enforce Security Descriptors on deployment-tab before you are supposed to save the package. you should take care of the thing that you are having correct. After that you should add pre-script to OSD which would copy file to application path into VFS.
Code:
Option Explicit
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "C:\app.ini", "Q:\MYAPP123.001\ApplicationName\app.ini", True
you should keep vbscript into virtual application so that users will not be able to edit the same and after that you have to add below mentioned lines into DEPENDENCY section of OSD
Code:
<SCRIPT EVENT="LAUNCH" PROTECT="TRUE" WAIT="TRUE" TIMEOUT="0" TIMING="PRE">
<SCRIPTBODY>Q:\MYAPP123.001\CopyFile.vbs</SCRIPTBODY>
</SCRIPT>
Once you have done the same you are going to have correct file into the virtual environment which you are supposed to use.
Bookmarks