You're welcome. The custom action prompts you to choose the MSI package only to automatically extract the Product Code from it, but the MSI package will not be used by the custom action during the installation.Thanks for that. looking at the Custom Actions and selecting "Configure MSI with specific ProductCode" requires me to select a file to execute as a custom action. i want to complete the un-installation using a Product Code (i don't have access to the installer msi directly.)
To achieve this, you can use the "Launch file" predefined custom action with the following configuration (as displayed in the image below):Also if I do select a MSi file. if I enter /x into the command line option how do I also add "/qn /L*v %windir%\Temp\%computername%Uninstall_RMS9-10_Log.txt" to the end.
for example the command I would like to run is
MsiExec.exe /X {FED1005D-CBC8-45D5-A288-FFC7BB304121} /qn /L*v %windir%\Temp\%computername%Uninstall_RMS9-10_Log.txt
Yes, if the MSI is deployed under the "System" account it will have administrator rights which will be inherited by the custom actions.finally im assuming that requiring administrator rights would be overlooked if the installation is deployed running as SYSTEM
Yes, this should be the execution time. However, please note that if you have more custom actions set to be executed at that point, the uninstallation of the MSIs will be started at the same time, but Windows Installer does not permit two MSI's to be installed/uninstalled at the same time and your custom action will fail.And also the execution time should be set to "after the system has been successfully Modified (Commit)" for the "Launch File" execution to be completed at the end
To achieve this, you can create a BAT file that uninstalls multiple MSI's, then run it in a "Launch File" custom action that is placed after the "Install Execution Stage -> Finish Execution" action group with the configuration below::how would you suggest running multiple msiexec uninstallers for multiple custom actions?
You can see my response on the Error calling MSI API: 1627 thread.Also when building the package i recieve this error.
Checking builds status... done.
Build required.
[ DefaultBuild ]
Building package (en): C:\Applicationfolder\Applicationname.msi
Copying file(s)... done.
Creating MSI database... error.
Error calling MSI API: 1627 Method: MsiDatabaseImport Table: CreateFolder. Extended Error: 1: 2216 2: C:\Applicationfolder\Applicationname.$.msi 3: CreateFolder.idt 4: 129 .
Build finished because an error was encountered.
FOLLOW US
Get the latest news in Application Packaging