Modifiy features after first installation seems not to work correctly - Advanced Installer Community
jtaphorn
Posts: 15
Joined: Tue Feb 21, 2017 4:21 pm

Modifiy features after first installation seems not to work correctly

Hi AI Team,

we are currently hitting an issue with the 'modify features' dialog in the setup wizard .
The first thing is that the view/style of the feature selection dialog is different than at the first installation even though the same dialog is/should be used.
This is not really nice but not our main problem.
The main issue is when the user selects a new feature to add to installation in the modify dialog and he goes on with the setup wizard, the setup is suddenly asking for the corresponding MSI installer package. This is located at ../username/AppData/Roaming.. but this is not acceptable for the user especially he doesn't know where to search for it.

I've attached you three screenshots of this behavior.

Do you have an idea about this?
Attachments
CustomizeDlgAtFirstInstall.png
CustomizeDlgAtFirstInstall.png (29.54 KiB) Viewed 5502 times
CustomizeDlgAtModify.png
CustomizeDlgAtModify.png (32.04 KiB) Viewed 5502 times
AskForMSI.png
AskForMSI.png (40.14 KiB) Viewed 5502 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Modifiy features after first installation seems not to work correctly

Hello,

The first problem you've mentioned is triggered by the fact that you don't always use Enhanced UI (at Uninstall and Maintenance too). To enable this you should go to "Themes" page, "Settings" tab and select "Always" to "Use Enhanced User Interface" field (Depending on your Advanced Installer version this option could have a different name).

Regarding the second question: When a package is launched, Windows Installer caches the MSI (without its resources) in "c:\Windows\Installer". Sometimes, during a repair or modify, the installation needs to access the original resources of the packages. If the resources aren't in the cached location, the setup will prompt the user to select the files from the disk.

This behavior could be avoided if you enable the "Do not delete extracted MSI and CAB files" option from "Builds" page - "Configuration" tab - "Bootstrapper Options" group.


Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jtaphorn
Posts: 15
Joined: Tue Feb 21, 2017 4:21 pm

Re: Modifiy features after first installation seems not to work correctly

Hello,

regarding the first problem with the UI: We already had set the flag to true (screenshot is attached) - Did not found anything else there to set to "always".
It's still the same behavior.

Regarding the second/main problem:
At first I was only looking at the C:\windows\installer directory and was not able to see anything different when setting the "Do not delete extracted MSI and CAB files" to true or false. But then I recognized that we set up a different extract location (appdata\roaming\...) and there I was able to see that resources etc are not deleted after wizard finished. That was my mistake. Currently I am not able to reproduce this behavior again - so hopefully it's fixed by not deleting the extracted folders.

Thanks,
jta
Attachments
Extend_UI_flag.png
Extend_UI_flag.png (21.44 KiB) Viewed 5461 times
jtaphorn
Posts: 15
Joined: Tue Feb 21, 2017 4:21 pm

Re: Modifiy features after first installation seems not to work correctly

jtaphorn wrote: Regarding the second/main problem:
At first I was only looking at the C:\windows\installer directory and was not able to see anything different when setting the "Do not delete extracted MSI and CAB files" to true or false. But then I recognized that we set up a different extract location (appdata\roaming\...) and there I was able to see that resources etc are not deleted after wizard finished. That was my mistake. Currently I am not able to reproduce this behavior again - so hopefully it's fixed by not deleting the extracted folders.
Unfortunately it seems not to work with this change. I saw that only extracted folders will not be deleted but that's all. They are all empty and no file or anything is stored at the extraction location. The "please insert CD-ROM" dialog still appears at the modify dialog.
Any other ideas?

BR,
jta
Last edited by jtaphorn on Wed Aug 09, 2017 9:39 am, edited 1 time in total.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Modifiy features after first installation seems not to work correctly

Hello Jta,

Can you please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate its settings?

Also, can you replicate the behavior on multiple machines? For testing purposes we always recommend to be used virtual machines with clean states so that when something goes wrong you can easily revert to a clean state of the virtual machine.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jtaphorn
Posts: 15
Joined: Tue Feb 21, 2017 4:21 pm

Re: Modifiy features after first installation seems not to work correctly

Hi,

yes of course. I send the main project file to you.
Daniel wrote:Also, can you replicate the behavior on multiple machines? For testing purposes we always recommend to be used virtual machines with clean states so that when something goes wrong you can easily revert to a clean state of the virtual machine.
Yes, we can reproduce it on different machines and we are also using virtual machine images.

Thanks,
jta
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Modifiy features after first installation seems not to work correctly

Hello Jta,

Thank you for your sent project. I've tested its configuration and was able to replicate the behavior.

The first problem (the MSI UI is used instead of the extended user interface), this happens because you have changed into your setup project the value of the "ModifyPath" registry value. This is a registry we used to store the path to the EXE uninstaller used when launched the product in maintenance mode from Control Panel. Therefore it is not advised at all to edit this registry value. Please proceed like this:

1. go to "Table Editor" page and select the "Registry" table
2. select the "ModifyPath" row and from its context menu use the "Revert" option
3. rebuild and test again the setup project

Regarding the second problem (prompt for original MSI during modify stage) this seems to be an Advanced Installer issue generated by the "Minimize Installation Time" options from "Install Parameters" page. A fix will be available in a future version of Advanced Installer, thank you for bringing this to our attention. We will update this thread when the fix will be out. Until then as a workaround you should disable the "Minimize Installation Time" options from "Install Parameters" page, rebuild and test again the project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jtaphorn
Posts: 15
Joined: Tue Feb 21, 2017 4:21 pm

Re: Modifiy features after first installation seems not to work correctly

Hi Daniel,

thanks for your answer. The solution is working fine for us.
Also the workaround with the "minimize installation time" is fine for us, too. The installation time difference between with and without these options doesn't seems to be that great. That's good!

Thanks for your investigations and thanks for updating this post as soon as a new version with included fix exists :)

BR,
jta
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Modifiy features after first installation seems not to work correctly

You're always welcome.

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

Return to “Common Problems”