Product tries to reinstall when double-click data file - Advanced Installer Community
GlenT
Posts: 118
Joined: Mon Jul 16, 2012 8:44 pm

Product tries to reinstall when double-click data file

This problem was reported to us recently by a client. Coincidentally, one of our own Win7 computers has developed the same problem (a new machine, Win7 x64 Pro). Our software is installed successfully, and the product runs correctly when the program shortcut is used. But when any of the associated file types (.dra) is double-clicked, Windows installer opens and requests the original distribution media to reinstall, which it will do if the media is available. It will then open the data file.

It will do this every time a data file is double-clicked. The file association appears to be correct. I have no idea why it is doing this. The same installer appears to be working fine in dozens of other successful installations.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Product tries to reinstall when double-click data file

Hello,

I'm not sure why you encountered this behavior. Can you please try to build your project using our latest version of Advanced Installer ( Vs.10.3 ) and see if the behavior persist? Can you reproduce this behavior on multiple clean machines?

If you can determine a test case pattern when this error constantly occurs, please let us know. For testing purposes, you can also try on other clean machines.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GlenT
Posts: 118
Joined: Mon Jul 16, 2012 8:44 pm

Re: Product tries to reinstall when double-click data file

Currently using AI 10.3. I uninstalled from our test machine that was exhibiting this issue and reinstalled from media generated from AI 10.3 and the problem stopped. I believe that the test copy that was failing had been generated from AI 10.2. Did you fix something, or is this just an intermittent problem that reinstalling may fix?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Product tries to reinstall when double-click data file

Hello,

This may happen if an auto repair it's triggered when the related file (with your installed extension) is launched. This happens if a key resource (of one of the components contained by the feature which installs your file extension) is missing on target machine when the related file is launched.

You can take a look on Registering a file extension thread article and see if this is your case and on Why does Windows Installer ask for the original package during a Repair FAQ's article.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GlenT
Posts: 118
Joined: Mon Jul 16, 2012 8:44 pm

Re: Product tries to reinstall when double-click data file

That's one of the puzzling aspects of this. We create a shortcut to CSPlus.exe on the desktop and in the Start > All Programs menu, and these ran fine. The file extension was associated with CSPlus.exe and that triggered the installer action. It didn't really make any sense.

I guess I could turn off the repair option and the Advertised option on shortcuts. It is not really all that critical that these are available to the end user.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Product tries to reinstall when double-click data file

Hello,

Unfortunately this is the default behavior of the Windows Installer.

As a workaround, you can use the “Place extension in a separate feature” option from the “File Associations” page. Then you can go in the “Organization” page and you should drag the new created “File Type Associations” feature in a stand alone feature with no parent.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
RajaKrishna
Posts: 1
Joined: Fri Oct 16, 2015 5:41 pm

Re: Product tries to reinstall when double-click data file

Any solution for this problem.
I am also facing same problem. The product is trying to re-install while double clicking on the file.
Windows log throws error msg: 1004:The resource 'HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.INI\myprod\' does not exist.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Product tries to reinstall when double-click data file

Hello and welcome to our forums,

To avoid this behavior, as a workaround, you can try to use the "Place extension in a separate feature" option my colleague Dan mentioned above and, then from "Organization" page move the extension feature under a new empty feature.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”