Missing folders after successful installation? - Advanced Installer Community

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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Missing folders after successful installation?

Hello everyone.

We have the problem that at least twice in the past months our installer ran through without error and still at least one folder was missing from the installation.

To further investigate this we enabled logging ("/lear+ ourproduct_install.log") now.

We cannot reproduce this so far.

In one case the user tried a repair and that lead to creation of the folder and its contents.

I would like to know whether this should be possible to happen with Windows Installer at all? (Because I would think it should be designed not to allow for this to happen.)



With best regards

Clemens Anhuth
Last edited by canhuth on Mon Sep 15, 2008 12:42 pm, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Missing folders after successful installation?

Hi Clemens,

I'm not sure why you encountered this behavior. Also, as long as you cannot reproduce it we cannot investigate the problem.
To further investigate this we enabled logging ("/lear+ ourproduct_install.log") now
Please note that a verbose log contains more information. You can create a verbose log by using the /L*V parameters.
I would like to know whether this should be possible to happen with Windows Installer at all?
There are many situations in which a folder is not installed even if its in the package. However, since you cannot reproduce this behavior we cannot find out why it happened for your package.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Missing folders after successful installation?

cosmin wrote:There are many situations in which a folder is not installed even if its in the package.
Hello cosmin,

thank you for your swift reply.

To rephrase my initial question:

Are there cases where a folder of a "simple" project (not utilizing any advanced features like "features" or "components", for example) is not being installed and still the installer exits without an error message?

If this is the case, wouldn't everyone need to add verification code after running the installer to ensure that it did what it was supposed to do in the first place?



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Missing folders after successful installation?

Hi Clemens,
Are there cases where a folder of a "simple" project (not utilizing any advanced features like "features" or "components", for example) is not being installed and still the installer exits without an error message?
I'm not sure if there are many cases for a simple project. However, one of them is explained here:
http://www.advancedinstaller.com/forums ... 052#p19196
If this is the case, wouldn't everyone need to add verification code after running the installer to ensure that it did what it was supposed to do in the first place?
I'm not sure I understand what you mean. Can you please give me more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Missing folders after successful installation?

cosmin wrote:
If this is the case, wouldn't everyone need to add verification code after running the installer to ensure that it did what it was supposed to do in the first place?
I'm not sure I understand what you mean. Can you please give me more details about this?
As I understood it you say "yes, by definition Windows Installer allows to make program installations without any hint of an error and these installations can miss files (=be broken)".

However, the other case that you point to happens on update. In this thread I was referring to a fresh installation. I was not explicitly stating that however, my apologies for that.

So updates not considered, does Windows Installer allow to make (new) installations that miss files/folders?

If this is the case, wouldn't every software vendor shipping Windows Installer based installers have to provide additional checks to be performed after the installer ran through to ensure that the installation isn't broken (because broken installations are inacceptable for most software vendors, I assume)?



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Missing folders after successful installation?

Hi Clemens,
So updates not considered, does Windows Installer allow to make (new) installations that miss files/folders?
Theoretically, a first time installation should install all resources in the package in the correct folders. However, an installation package can be easily customized. Therefore, based on the settings you use in your package it is possible that the package will not install some resources.

So, an installation will install all its resources and create all its folders. But if something is wrong or incorrectly configured, some of them may not be installed. I'm afraid that there is no definite answer because it all depends on the way you configure the package.
If this is the case, wouldn't every software vendor shipping Windows Installer based installers have to provide additional checks to be performed after the installer ran through to ensure that the installation isn't broken
Please note that these checks are done by testing the installation on multiple machines to see how it reacts in different environments (just like an application is tested after it is implemented).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Missing folders after successful installation?

Hello Cosmin,

we may be talking about different things or I may be very unclear, let me rephrase:

(Definition: If the file exists, but under a different name or in a different location in the installation dir, it isn't "missing".)

1) If I create a project in AI without any changes to the default settings, and drag a folder into the "Files and Folders" pages and create the installer, can this installer perform installations with missing files or folders (assuming it performs a new installation into a folder that doesn't exist and never existed before and for which no pending file operations exist and assuming no other application does any file operations in the installation folder)?

2) To extend the first question, if we run a custom action at the end of the installation which tries to rename one folder in the installation folder by way of FileSystemObject.MoveFolder(source, target), can this installation be missing folders and files (assuming it performs a new installation into a folder that doesn't exist and never existed before and for which no pending file operations exist and assuming no other application does any file operations in the installation folder)?

So far it looks as if case 2) is what we had a few times. Next time this occurs we'll have the logs to check, but I'll be at the end of my wisdom if they don't show any errors.



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Missing folders after successful installation?

Hi Clemens,
If I create a project in AI without any changes to the default settings, and drag a folder into the "Files and Folders" pages and create the installer, can this installer perform installations with missing files or folders (assuming it performs a new installation into a folder that doesn't exist and never existed before and for which no pending file operations exist and assuming no other application does any file operations in the installation folder)?
No, this installer will install all files and folders in it.
2) To extend the first question, if we run a custom action at the end of the installation which tries to rename one folder in the installation folder by way of FileSystemObject.MoveFolder(source, target), can this installation be missing folders and files (assuming it performs a new installation into a folder that doesn't exist and never existed before and for which no pending file operations exist and assuming no other application does any file operations in the installation folder)?
From the application point of view files or folders will not be missing because one folder will be renamed, but it will still be there. From the Windows Installer point of view the folder and all its files will be missing (the folder is in the package with its original name).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Missing folders after successful installation?

Hello Cosmin,

thank you for your answer.



With best regards

Clemens Anhuth

Return to “Common Problems”