internet explorer - Why is IE deleting an ActiveX installer while it's installing? -


i have activex control delivered cab. have html page object tag cab name , clsid (so nothing else on page yet).

this causes ie ask installing activex control, allow. downloads cab, extracts installer , starts run it.

while msiexec running , trying install control, ie decides delete files in temp directory .msi file is. sometimes, file locked process , deleting fails , installing succeeds, of time deleting succeeds , msiexec logs error msi file isn't there.

i can see of happening in procmon, have no idea why. reproducible in multiple versions of windows , ie. it's not deleting msi -- it's deleting files in temp directory.

the clue have modified date of file date created on build machine. isn't can keep updating though (it's inside of cab on webserver) -- can't build cab every 5 minutes keep modified dates fresh -- so, don't think that's it, wanted mention clue.

why ie deleting files in temp , there way stop doing that?

finally figured out. if have hook in cab start apps, must not return caller until exit. console apps default -- gui apps not.

our installer normal setup.exe gui inside cab -- returns ie right after starts running. ie starts cleaning temp files of cab.

we made console app takes command-line argument system call make , doesn't exit until process started system call exits. stops ie cleaning until setup.exe done.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -