aqua
Posts: 37
Joined: Thu Oct 04, 2012 6:51 pm

Removing file/folder after installation completes

Hi,

I have a main executable jar which forms the main classpath. After i install the package it extracts that jar file along with other files. Now my main concern is I want to delete this jar from installation path or somehow protect it. Kindly let me how to achieve in AI. I already tried making it temporary files so that it gets deleted after installation but its not getting removed.

Thanks
Daniel
Posts: 8281
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Removing file/folder after installation completes

Hello,

I'm afraid I don't fully understand what you want to achieve. Can you give us more details about your scenario (maybe exemplify)?

Also, if you have a Java Product and you want to protect the related JAR file, then you can embed the JAR file in EXE.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aqua
Posts: 37
Joined: Thu Oct 04, 2012 6:51 pm

Re: Removing file/folder after installation completes

Hi,

I saw the related link provided and already tried that i.e. embedding jar, but the jar is still not protected and is visible in the installation path. Also do i need this jar to be included in 'files and folder' or not.

Thanks
aqua
Posts: 37
Joined: Thu Oct 04, 2012 6:51 pm

Re: Removing file/folder after installation completes

Thats ok, this is achieved..

Thanks
Daniel
Posts: 8281
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Removing file/folder after installation completes

You're welcome. I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lat165
Posts: 3
Joined: Wed Oct 03, 2012 1:54 pm

Re: Removing file/folder after installation completes

How did you get this to work?? I am having the exact same problem as you wrote in your original post. What did you do to make it so that the jar is protected?
aqua
Posts: 37
Joined: Thu Oct 04, 2012 6:51 pm

Re: Removing file/folder after installation completes

Its just i didn't include the jar in 'files and folders' section and just gave the path in 'Embedded jar' in 'java products' section. That solved the purpose because having jar in 'files and folders' kept it showing after extraction.

Thanks

Return to “Building Installers”