Hello,

I am trying to make an exe file that when rau, deploys the files joined to it to specific directories list in the code of the package exe.

It deploys all the files, but the problem is that one of the exe files it deploys does not work after (works fine on its own).

Could this be because it was compressed or maybe I have to adjust my code so that exe's work when deployed.

Please have a look:
VB Code:
  1. Sub Main()
  2.     Dim FileNum     As Integer
  3.     Dim DataArray() As Byte
  4.    
  5.     DataArray = LoadResData(101, "CUSTOM")
  6.     FileNum = FreeFile
  7.     Open "C:\MyProgram.exe" For Binary As #FileNum
  8.     Put #FileNum, 101, DataArray()
  9.     Close #FileNum
  10.    
  11.     Erase DataArray
  12. End Sub

Thanks anyone