den
Posts: 67
Joined: Mon Feb 14, 2011 1:20 pm

Enhanced UI in uninstall problem

Hello,

I use option 'Always (install, uninstall and maintenance)' for Enhanced User Interface in 'User Interface -> Themes -> Settings'. Everything works fine at install and uninstall from 'Programs and Features' console (in WIndows 7).
My question is: how do I make a shortcut that will start uninstall in Enhanced UI mode? If I add default shortcut (which use command line like "msiexec /x [ProductCode]"), uninstall is not launched in Enhanced UI mode. But it definitely possible, because if I launch uninstall from 'Programs and Features' console, it starts in Enhanced UI mode.

Best regards,
Daniel.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Enhanced UI in uninstall problem

Hello Daniel,

In order to achieve what you want you can proceed like this:
- Go to "Files and Folders" view and select a folder where you want to create the uninstall shortcut.
- From context menu choose "New Shortcut To" -> "Uninstall..." option.
- In the "New Shortcut" dialog set the following fields like this:
  • Arguments: /x [ProductCode]
    Shortcut Target: [AI_UNINSTALLER]
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
den
Posts: 67
Joined: Mon Feb 14, 2011 1:20 pm

Re: Enhanced UI in uninstall problem

Hello, Daniel,

Thank you for your advice, created shortcut works as expected.
But there is one issue related to this approach. As I described in topic here - http://www.advancedinstaller.com/forums ... =2&t=21477, I've recently began to create multilanguage builds of our headliner product with enterprise Advanced Installer 9.4 and encounter some minor issues.
When I launch uninstall by my new shortcut, UI is displayed in default English language regardless of language used at installation, but I expect UI to be displayed in installation language. I think this issue is the same as I described in linked topic or related to it.

Best regards,
Daniel.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Enhanced UI in uninstall problem

Hello Daniel,

In order to achieve what you want you should use the same product code for all your language included in the installation package. So, from "Product Details" -> "Product IDs" tab set the same product code for all languages used in your project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
den
Posts: 67
Joined: Mon Feb 14, 2011 1:20 pm

Re: Enhanced UI in uninstall problem

Hello, Daniel,

Thanks for your advice, it works, but there is another problem.
I have automated installer build script, it updates product version in .aip file according to version of main .exe file using command line syntax like this:
[Path to AdvancedInstaller.exe file] /edit "[Path to .aip file]" /SetVersion [Version read from main .exe]
Everything is working fine, but after that product codes get regenerated for each language.
I think I should use /SetProductCode command line command to set all product codes to the same value in that script.
I'll let you know if that works.

Best regards,
Daniel.
den
Posts: 67
Joined: Mon Feb 14, 2011 1:20 pm

Re: Enhanced UI in uninstall problem

Hello, Daniel,

I've finally completely managed this issue! Thank you for help!

Best regards,
Daniel.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Enhanced UI in uninstall problem

You're welcome. Glad to help.

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

Return to “Common Problems”