We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Christophe
Posts: 9
Joined: Wed May 06, 2015 11:48 am

Temporary files not copied

Hi,

We've just found today that temporary files are not copied in the temp folder. In our installer we copy temporary files in a folder called [|ProductName]. We used that trick since the temporary files were deleted when doing an upgrade.
We have changed a bit our installation process and now we either do a side-by-side or an upgrade depending on feature selection. I'm wondering if that may have an impact.
What exactly happens is that, the folder [|ProductName] is created but during the installation (which is quite lengthy) I do not see the temporary files being copied onto it. I used a log with the v option and I didn't see any trace of those files either.
My worry is that this problem happens when installing on a clean system without any other version of our application installed. This doesn't make any sense.
Any hints of where to look at would be more than welcomed since we are supposed to release in a couple of days and that is blocker.

Cheers,
Christophe
Christophe
Posts: 9
Joined: Wed May 06, 2015 11:48 am

Re: Temporary files not copied

Update:
The problem is only reproduced with release installer build. When building the beta installer the installation works as expected.
I suspect this has to do with [|ProductName]. Our product name contains [|ProductVersion] and [|TYPE]. I wonder if [|TYPE] is the source of our issue.

Here's what happens in the temporary directory for the beta version:
A folder called "Product 1.0.0 Beta 7" is created and our 2 temps files are copied onto it
At the end of the installation the folder is removed

Here's what happens in the temporary directory for the release version:
A folder called "Product 1.0.0" is created but stays empty
At the end of the installation the folder is not removed

It seems to me that there is a path issue. A bit like if the folder was created but then the installer couldn't find it either to copy the files in or to remove it at the end. :?
Christophe
Posts: 9
Joined: Wed May 06, 2015 11:48 am

Re: Temporary files not copied

Update:

My suspicion has been confirmed.
When looking at the log I see that the the temp folder is actually called "Product 1.0.0 " (with 2 trailing spaces).
It seems that Windows removes automatically the trailing spaces (you learn stuff every day) and I guess it confuses the installer.
Now the weird part is that we use the same naming convention in our main folder in Program Files. But it seems, looking at the log, that the trailing spaces are removed whithin the installer in that particular case.

I changed the name of the folder by adding a trailing "_" and it did the job but it didn't look so great.
I have eventually changed the name of the folder to [|ProductCode] which works too but has more style. 8-)
I guess we'll just need to keep in mind to change the product code between versions including alphas and betas to make sure we always have a unique folder name when upgrading.
Anyway, problem solved.

Return to “Building Installers”