Copy File mystery

Bo Carleö mail at corbisoft.com
Mon Jan 19 17:39:05 EST 2015


Hi Bas

Actually I am not installing in Program files so I do not believe that is the reason.
Installed directly on the disk as I always do.
It is Studio 4 and the server is Win 2008.

Bo






> 19 jan 2015 kl. 23:20 skrev Bastiaan Olij <bastiaan at basenlily.me>:
> 
> Hi Bo,
> 
> If this is running on a modern Windows environment and you've installed
> Omnis in program files doing any form of copying within the program
> files environment will "seem to work" but it won't actually work.
> 
> This is to protect applications from malware and trojans that will often
> try and modify the executables installed within Program Files.
> 
> So depending on what you are copying and where you are copying to, that
> may be your issue especially if you use older style installers that
> place the startup folder within the program files structure and I'm
> assuming that that is where you're update library resides.
> 
> If you are using anything older then Studio 4 your solution would be to
> install outside of program files. If you are using Studio 4 or newer use
> the firstruninstall approach that moves all modifyable files into the
> users home folder automatically and you can freely update your updater
> library there.
> 
> Cheers,
> 
> Bas
> 
> On 20/01/2015 8:42 am, Bo Carleö wrote:
>> I have a multi user situation where I use a startup lib to always
>> delete the main lib and after that copy a new main lib to the
>> local user installation. Has worked perfectly for many years.
>> The update lib resides in a separate folder on the server.
>> 
>> Now they have a new server and all users connect via Terminal Server.
>> Program works as expected but not the lib update.
>> 
>> Before deleting I check the presence of an update lib with FileOps doesfileexist.
>> It does. Then the old lib is deleted - so far all is OK.
>> Then the new lib should be copied to the old location.
>> Do FileOps.$copyfile(Path_lib_new,Path_lib)
>> Also tried:
>> Do FileOps.$copyfile([Path_lib_new],[Path_lib])
>> Copy File(Path_lib_new,Path_lib) - which worked earlier.
>> No way...
>> This does not work. Error -43  File not found… though it clearly is there.
>> 
>> Could this have something to do with TS?
>> Any advice welcome!
>> 
>> Bo Carleo
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> 
>> 
> 
> 
> -- 
> Kindest Regards,
> 
> Bastiaan Olij
> e-mail: bastiaan at basenlily.me
> web: http://www.basenlily.me
> Skype: Mux213
> http://www.linkedin.com/in/bastiaanolij
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list