c# - Deploy new version of an existing ActiveX control -
i'm writing .net 4.0 based activex control ie7+. have manage interface key-reader device. followed great tutorials , articles "how do" it, , working well.
my problems started when wanted deploy other version of control.
i'm using vs2010 setup deployment project , cabarc .cab. 1.0.0.0 version went well. 1.0.2.0 version working, , doing job well, ie prompting install. again , again.
what did:
1: changed assemblyinfoversion.cs version 1.0.2.0
2: changed .inf file according version 1.0.2.0
3: changed .msi version 1.0.2
and changed object tag in html page #version=1,0,2,0
so far fine. installed! can see under "uninstall programs", version of control 1,0,2 ! great, ie still wants me donwload , install every time when open page.
i saw thread connected excel: how com server excel written in vb.net installed , registered in automation servers list?
and got usefull information should change in registry. did search there, , fould classid under : hklm\software\wow6432node\classes\clsid{guid}
i have here following subkeys: installedversion implemented categories inprocserver32 progid
i happy, because saw, in installedversion part version still 1,0,1,0. changed 1,0,2,0 and... did not worked. serched through registry, everywhere installedversion 1,0,2,0. .dll version 1,0,2,0. installed control's version 1,0,2. under inprocserver32 have 3 1,0,0,0 ; 1,0,1,0; 1,0,2,0 versions. , of course in html code version 1,0,2,0.
(my machine 64 bit win7, ie9)
could in this, missed?
other problem whole scenario: after version increase first install dev machine rebooting without question. have idea kind of settings can make behavior?
update:
the problem solved. i'm kind of blind or bit tired because of this. problem may important future:
first summary issue: after new version deployed (installed on client) ie propting install version.
the problem source in registry. should have rigth version number in installedversion(default) registry key.
i had special case here (and don't know cause yet), had 2 entries (default) under subkey installedversion. firs 1 empty, second 1 contained rigth value. not delete first one, second 1 only. after changed first (default) worked find!
the second problem automatic restart solved too.
this thread helped: msi installer silent or passive mode automatically restart computer without prompt user sometimes
have add /qn /norestart or /promptrestart end of msiexec call, because without flag windows automatic restarts without questioning.
if has similiar issue, here solution in case:
[runsetup] run="""msiexec.exe""" /i """%extract_dir%\keyreaderengineinstaller.msi""" /qn /promptrestart
Comments
Post a Comment