Our existing clients have our system which will have been installed using Wise installer. I would like, during the initial install of our new AI installer package, to check for the existence of the file called Unwise.exe (the Wise uninstall program) and if it is found then execute it with two parameters; if the current directory is the AppDir (namely, Program Files\Mfr Name\Product Name, then the command line wound be:
unwise.exe /s install.log
but since the current dir could be anything I think I need to do a Custom Action which launches "unwise.exe" as follows:
[APPDIR]unwise.exe /s [APPDIR]install.log
NOTE: Unwise.exe and Install.log file will be found in the same directory.
Trying this out I'm getting an error as follows:
MSI (s) (70:0C) [17:08:20:294]: Note: 1: 1721 2: Uninstall_Previous_Wise_Install 3: 4: C:\Program Files (x86)\Mfr Name\Product Name\Unwise.exe /s C:\Program Files (x86)\Mfr Name\Product Name\Install.log
MSI (s) (70:0C) [17:08:22:147]: Product: Product Name -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: Uninstall_Previous_Wise_Install, location: , command: C:\Program Files (x86)\Mfr Name\Product Name\Unwise.exe /s C:\Program Files (x86)\Mfr Name\Product Name\Install.log
If I do a command line (outside of an AI installation) that includes double-quotes around both these paths then it works, but I can't seem to find the way to make this work within an AI installation.
This cmd line is an example of what does work:
"C:\Program Files (x86)\Mfr Name\Product Name\Unwise.exe" /s "C:\Program Files (x86)\Mfr Name\Product Name\Install.log"
EDIT: I tried every possible combination of including and excluding double-quotes that I could think of, since the path has spaces in it, and none of my tests so far have been succesful.
Can anyone suggest what it is that I might be doing wrong?
Thanks.
FOLLOW US
Get the latest news in Application Packaging