1 of 1 people found this helpful
So are you saying that in Package builder when using the "file" command will not overwrite the files? Do you have overwrite=yes on the file command line?
Thanks for the response Zman.
Yes, that is what I thought at first. I just can't overwrite, so I RC'd into a machine that had been updated and deleted these four files. Pushed again, still wrote the old files.
Makes no sense to me.
If I push to a machine with no previous patch in the sdmcache, it works.
So Here Is My package:
0001 FILE: "$PROGFILESDIR$\Dir\SubDir\Download.000", overwrite=yes, From="\\Server\Share\Packages\ThisApp\Download.exe"
0002 FILE: "$PROGFILESDIR$\Dir\SubDir\Downlo~1.000", overwrite=yes, From="\\Server\Share\Packages\ThisApp\DownloadOne.exe"
0003 FILE: "$PROGFILESDIR$\Dir\SubDir\Downlo~2.000", overwrite=yes, From="\\Server\Share\Packages\ThisApp\DownloadTwo.exe"
0004 FILE: "$PROGFILESDIR$\Dir\SubDir\Downlo~3.000", overwrite=yes, From="\\Server\Share\Packages\ThisApp\DownloadThree.exe"
I have no other settings. All it does is replace 4 files.
My last reply was incorrect.
If I push to a machine with no previous patch in the sdmcache, it works. still pushes the OLD file. Now I am really confused.
In the CFG the line "From="\\Server\Share\Packages\ThisApp\Download.exe"" points to the updated file. I can UNC to it and check the version - it is correct.
Can I decompile the package to see the file contents?
Ty - Thanks for the info. I will have to get a copy of that downloading.
Zman - Thanks for making me re-examine what I thought was true. Even though I completely deleted the old CFG file and moved the updated file to a new UNC, something in builder was hanging on to the old version. I simply did a rebuild, instead of a build - pushed the package - got the new file.
Thanks to all.
PB has some issues with UNC paths. At least in my shop I can not compile on a UNC and grabbing files from a UNC path is somewhat sketchy. I do everything locally, then after the build copy the exe to the unc.
Yes you should do a rebuild all on situtations such as these. The Acresso version of Installshield Lite is a tool you should download and get to know. It will not replace the scripting functionality in PB, but it is good for packaging. Scripting stuff stick with Autoitscript, batch, vbscript.