installer - Install4j uninstall directory -


i'm building setup in install4j files unziped in installation directory , files in data directory not uninstall.

for examle: c:\program files\myapp - it's directory set app , in directory install postgresql (unzip zip file) c:\program files\myapp\postgresql c:\mydata\myapp - data directory (f.e. data of postgresql need install not in system directory)

for save path of app create windows registery , put value there.

i tried removing myapp in 2 ways:

1) in 'run script' action path of data register (file datadir = new file(pathtodatadir)) , later try uninstall datadir.delete() , try run script 'rmdir "pathtodatadir'. option not work due of permissions.

2) in way try register path of register in install4j 2 methods (context.installdirectory , context.registeruninstallfile()) , later install4j (in opinion) should install directories. in file /.install4j/files.log find directories, install4j not uninstalled directories.

what problem can there in case?

sorry english =)

you can use "install content of zip file" action extract zip file in such way extracted files removed installer.

alternatively, "delete files , directories" action in uninstaller remove selected files or directories.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -