Unable to give convertedpaths for prerequisites - 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!

idammanoj
Posts: 3
Joined: Wed Apr 21, 2010 5:52 pm

Unable to give convertedpaths for prerequisites

Hi,

IN my project uninstalling old java version is my prerequisite . To uninstall java i have to run
C:\WINDOWS\SysWOW64\msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83216020FF} /norestart /qb-!

This runs successfully but that takes relative path for msiexec, whereas I would like to run it in following form
<WindowsVolume>\WINDOWS\SysWOW64\msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83216020FF} /norestart /qb-!

Please let me know if it possible? or if there is any alternate method.

Thanks for your help

Manoj
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Unable to give convertedpaths for prerequisites

Hi Manoj,

I assume you are using a custom action to run this command line? The simplest way is to use our predefined custom action "Launch File or Open URL" and
set its "Command Line" field to:

Code: Select all

msiexec.exe /x {26A24AE4-039D-4CA4-87B4-2F83216020FF} /norestart /qb-!
This will make the custom action automatically run msiexec.exe, you don't need to give it the full OS path.

You should also make a search for the corespondent version of Java and use the result as part of the execution condition, so the custom action is
not executed if this version of Java is not present on the machine.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”