since the path direction different than the previous one??
bec it did not work with different path, when they have the same path not all the application removed .
for that i want to reinstall all application before installing the new one.
i think i found the solution is if i create a search application that search for the product ID when it found it it run script.vbs that uninstall the previous product
but when i run the application an error message appears "there is a problem with this installer package. A script required for this install to complete could note be run contact your support personal or package vendor "
i will attach my script if any body can told where the problem to know that the application run normally without the advance installer.
Code: Select all
Const ProductCode = "{00000000-0000-0000-0000-000000000000}" 'Enter Product Code of MSI to uninstall
Const msiUILevelBasic = 3
'Add UI level options below to options above as needed, they won't work just by themselves
Const msiUILevelHideCancel = 32 '!
Const msiUILevelProgressOnly = 64 '-
Const msiUILevelEndDialog = 128 '+
'Define MSI Installation states as constants for clarity
Const msiInstallStateAbsent = 2 'The product is installed for a different user.
'Create Windows Installer Object
Set Installer = CreateObject("WindowsInstaller.Installer")
Installer.UILevel = msiUILevelBasic + msiUILevelHideCancel
If Installer.ProductState(ProductCode) <> msiInstallStateUnknown Then
Installer.ConfigureProduct ProductCode, 0, msiInstallStateAbsent
End If
Best Regards
IB85lb
FOLLOW US
Get the latest news in Application Packaging