inno setup - innosetup, uninstall shared service -


i installing , uninstalling service apps via innosetup's code section below.

shellexec('', expandconstant('{app}\') + dexename, '/install /silent', '', sw_hide, ewwaituntilterminated, errorcode);     .... shellexec('', expandconstant('{app}\') + dexename, '/uninstall /silent', '', sw_hide, ewwaituntilterminated, errorcode); 

now have seperate application using same service. both applications' installer installs , uninstalls services.

i need solution uninstaller should not uninstall if other application still exists on computer.

faruk. best regards.

both installers should set entry in registry using [registry] section (http://www.jrsoftware.org/ishelp/index.php?topic=registrysection) setting flag uninsdeletekey.

in both uninstallers can check whether other application still installed doing like

 if not regkeyexists(hkey_local_machine, 'software\faruk\othersoftwarename')  begin     // key exists     shellexec('', expandconstant('{app}\') + dexename, '/uninstall /silent', '', sw_hide, ewwaituntilterminated, errorcode);   end; 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -