Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

Files missing on install

My installer is missing files sometimes when I install. Uninstalling/reinstalling seems to restore the files; however this problem is disturbing to me. If I can't rely on the files always being installed properly the first time, it's going to create an awful tech support headache for me.
Thanks,
Jebrew
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jebrew,
My installer is missing files sometimes when I install.
When you get this behavior? on upgrade? This may happen on upgrade if the version of a file is not changed (increased). The file is removed on uninstall and Windows Installer thinks that the file was not modified (version not changed) and it's not copied back.

To avoid this behavior you can specify a version (greater that the old one) in the "Edit File->Version" tab from file properties.

Let me know if the problem persist.

Regards,
Gigi
_____________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

Got it, yeah, that's the problem, there are a good number of files with which this might happen. How do I specify the 'companion' setting for the file (I'm assuming that it makes it install if the companion installs). I would rather not have to increment the file version on the VC redistributables.

Thanks,
Jebrew
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jebrew,

The companion setting should work if you are sure that the companion parent file version is changed (increased) with each upgrade.

Or you can use "Overwrite with this" option. Note that this option does not change the real version of the file. This indicates the version from "File" table.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

I have a file that is guaranteed to upgrade version info with each build, however the option to use a companion file is grayed out. How do I use this option?

Thanks,
Jebrew
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Jebrew,

The companion file option is not available for the files that are key path in a component because the key path file versioning logic would be determined by the companion parent file:
http://www.advancedinstaller.com/user-g ... ialog.html

Use "Go To Component" context menu option to see if the file is key member for its component. You can make other file key member, use "Make Key Member" context menu option in "Organization" page.

Also you can use "Overwrite with this" option and type [|ProductVersion]. With this option the version of the file in "File" table will be replaced (at build) with the version of the package.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
srm2710
Posts: 13
Joined: Thu Feb 09, 2006 6:01 pm

suggestion on file versioning

this illustrates how painful trying to control an installation has become under msi.

if you were to add the option to set a default companion file for ALL other files in the install it would save us a lot of tedium.

what ever happened to an program update just beind a subset install of the full program install? it worked fine - what is the advantage of msi for application distributers? zero.
Jebrew
Posts: 53
Joined: Thu Jan 18, 2007 8:53 pm

As far as I can tell the only advantages to msi are that it's easier to push out standardized updates, creates a great market for third party installation makers and provides a possibility of diy installs that have the same look and feel of everyone else's install. Oh well, at least AI is better than install shield (IMO).
Thanks for the help gigi, I'll try the overwriting with the product version thing.

Thanks,
Jebrew

Return to “Common Problems”