We need to have the .xml extension associated with our application by the installer created with AdvancedInstaller 3.2 and to have it associated with Internet Explorer by the uninstall process. For the second part we execute a VB script as an uninstall custom action with the parameters:
Function Name: revert
Synchronous execution, ignore return code
Immediate execution
Always execute
The script is:
Code: Select all
function revert()
Set objShell = CreateObject("WScript.Shell")
objShell.RegWrite "HKCR\.xml\", "xmlfile", "REG_SZ"
objShell.RegWrite "HKCR\.xml\Content Type", "text/xml", "REG_SZ"
end function
However after the uninstall process completes successfully the .xml extension is not associated with any application: double-clicking on an .xml file pops up the Windows dialog that asks the user to select the application to open the file. Also the key HKEY_CLASSES_ROOT\.xml does not exist in the Windows Registry (I checked that with regedit). How can we make the uninstall process associate .xml with Internet Explorer ?
The second problem is that running again the same installer successfully does not associate the .xml extension with the application. What can we do to associate .xml correctly also on the second installation ?
Regards,
syncRO support
FOLLOW US
Get the latest news in Application Packaging