In my setup script I copy the installation from where it is executed to a folder using 'Copy Local Files'.
This always used to work but always fails now. How can I find out why it fails?
The installation file is about 110mb big. Could this be a problem?
I'm currently using InstallAware X13/12.18.2020
Thomas
Copy Local Files fails
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Copy Local Files fails
You should provide some more details...othrewise, it's quite difficult to assist you.
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Copy Local Files fails
What details do you want to know?
Native_Engine = True
Thomas
Native_Engine = True
Thomas
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Copy Local Files fails
You said that ''Copy Local Files' used to work fine, but suddenly this stopped to work.
But...
- is the same identical build of your setup package (which worked fine untill now) that stopped to work?
- is this a new version (a new build) of your setup package?
- is the problem limited to some specific target machines?
- When is the ''Copy Local Files' invoked during the setup runtime?
- Which kind of files are you copying?
- Where are these stored and where are these should be moved/copied to?
But...
- is the same identical build of your setup package (which worked fine untill now) that stopped to work?
- is this a new version (a new build) of your setup package?
- is the problem limited to some specific target machines?
- When is the ''Copy Local Files' invoked during the setup runtime?
- Which kind of files are you copying?
- Where are these stored and where are these should be moved/copied to?
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Copy Local Files fails
1. We made a new build of our setup package using Installaware X13. We moved to X13 for this new version of our software. Before we used Installaware 18 where the CopyLocalFiles always worked.
2. the problem occurs on all systems I have tested.
3. CopyLocalFiles is invoked pretty much at the end of the setup script. After that we only write one registry entry.
4. I am copying the installation itself (setupxxx.exe)
5. the setupxxx.exe is either stored in a folder under %tmp% or can also be stored on a network folder. I want to copy it to either a local folder or a network folder. No combination works for me.
6. the size of setupxxx.exe is about 110MB.
7. When writing a batch file in the setup script to copy the setupxxx.exe and executing it from the setup script it works fine with all combinations of source/target folder.
Hope this helps to figure out what's happening.
Thomas
2. the problem occurs on all systems I have tested.
3. CopyLocalFiles is invoked pretty much at the end of the setup script. After that we only write one registry entry.
4. I am copying the installation itself (setupxxx.exe)
5. the setupxxx.exe is either stored in a folder under %tmp% or can also be stored on a network folder. I want to copy it to either a local folder or a network folder. No combination works for me.
6. the size of setupxxx.exe is about 110MB.
7. When writing a batch file in the setup script to copy the setupxxx.exe and executing it from the setup script it works fine with all combinations of source/target folder.
Hope this helps to figure out what's happening.
Thomas
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Copy Local Files fails
Can you provide a very [b"]VERY"[/b] minimal project that replicates the issue?
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Copy Local Files fails
I have put together a small sample installation where copy local files fails.
There is a target variable set in line 8 and the copying stuff is from line 259 - 283.
in the meantime I have circumvented the problem by deleting the file in the targetfolder first.
Thomas
There is a target variable set in line 8 and the copying stuff is from line 259 - 283.
in the meantime I have circumvented the problem by deleting the file in the targetfolder first.
Thomas
- Attachments
-
- TestCopy.zip
- Sample script
- (1.29 MiB) Downloaded 182 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Copy Local Files fails
I finally had a chance to properly test the NATIVE_OVERWRITE matter.
The behaviour of "Install Files" and "Copy/Move Local Files", it's exactly identical and it works as expected.
The overwrite occurs (by default) when the setup is about to overwrite a file with a newer copy (or newer version).
While no overwrite occurs when the installed/copied file is an older copy of target file. ...and this is the correct expected behaviour. Unless you decide to force such behaviour with the use of the "NATIVE_OVERWRITE_OLDER" pre-defined variable (which is generally not recommended).
The behaviour of "Install Files" and "Copy/Move Local Files", it's exactly identical and it works as expected.
The overwrite occurs (by default) when the setup is about to overwrite a file with a newer copy (or newer version).
While no overwrite occurs when the installed/copied file is an older copy of target file. ...and this is the correct expected behaviour. Unless you decide to force such behaviour with the use of the "NATIVE_OVERWRITE_OLDER" pre-defined variable (which is generally not recommended).
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: Copy Local Files fails
I didn't realise that the setup also has a version information. I can now see why the file did not get overwritten.
Was this behaviour different in version X9 (Build 12.3.2018)? Because I never had a problem there.
Thomas
Was this behaviour different in version X9 (Build 12.3.2018)? Because I never had a problem there.
Thomas
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Copy Local Files fails
This behaviour was not itroduced recently, and it was the same in X9.
I can only suppose that probably you also used the "NATIVE_OVERWRITE_OLDER".
I can only suppose that probably you also used the "NATIVE_OVERWRITE_OLDER".
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 23 guests