I don't put nant into program files. I put it into the lib folder of each project I use. This way, I can upgrade the version of nant used by the project without worrying about what everyone has installed or if it will break other projects.
BOb > -----Original Message----- > From: Timotheus Pokorra [mailto:timotheus.poko...@gmail.com] > Sent: Friday, November 11, 2011 7:36 AM > To: nant-users@lists.sourceforge.net > Subject: [NAnt-users] Windows Installer for NAnt > > Hello all, > > thanks for the very useful tool of NAnt! We are heavily using it for our > OpenPetra project. > > But we have had now several problems with permissions for executing nant > on Windows, from the Program Files directory. Also the creation of the > nant.bat was not trivial, and could cause problems with permissions. > > The easy solution was to create a small InnoSetup Installer. > You can download it from our files section at SourceForge: > http://sourceforge.net/projects/openpetraorg/files/openpetraorg/Tools/N > Ant-Setup-0.91.exe/download > > The script file for InnoSetup looks like this: > > [Setup] > AppName=NAnt > AppVerName=NAnt 0.91 > DefaultDirName={pf}\NAnt > DefaultGroupName=NAnt > LicenseFile=nant-0.91\COPYING.txt > OutputBaseFilename=NAnt-Setup-0.91 > [Files] > Source: nant-0.91\*.*; DestDir: {app}; Flags: recursesubdirs createallsubdirs > [Code] procedure CurStepChanged(CurStep: TSetupStep); begin > if CurStep=ssPostInstall then > begin > SaveStringToFile(ExpandConstant('{win}/nant.bat'), > ExpandConstant('@"{app}\bin\NAnt.exe" %*'), False); > end; > end; > > If you have trouble with your old NAnt installation, you should delete the > folder first from the Program Files, before you run the installer! > > see also http://tpokorra.blogspot.com/2011/11/windows-installer-for- > nant.html > > Thanks again, > Timotheus > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users