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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -