I have created NSIS script for my java project.I called the file "setup.nsi". My RCP application contains one product file for one type of users, and i called it "genericUserProduct.product", and when launching the build everything works fine. In build.xml used by Jenkins, this is the part i use to compile my nsi file :
<target name="nsisDPD" description="compile nsis DPD">
<taskdef name="nsis" classname="com.danielreese.nsisant.Task" classpath="${ant.home}/lib/ant.jar;nsisant-${version}.jar" />
<nsis script="Setup.nsi" verbosity="3">
<define name="name" value="nsisant" />
<define name="version" value="${version}" />
</nsis>
</target>
Now i modified my product plugin by adding a second product file, now i have 2 files for 2 types of users :
- AdministratorProduct.product
- SimpleUserProduct.product
I've created 2 NSIS scripts :
- administratorSetup.nsi
- simpleUserSetup.nsi
my question is how to configure build.xml to compile the two nsi files, each according to its related product file. Thank you for your replies.
No comments:
Post a Comment