Page 1 of 1

[offtopic] help on installation of templates

Posted: Tue Mar 15, 2011 6:41 pm
by HJarausch
Hi,
I have prepared some templates under my own user.
Now I'd like to create an installer (InnoSetup) which installs these templates on the target machines of
my students. Since I have no experience with InnoSetup and only very little experience with Windows (I'm a Linux fan),
I'm in need for some help.

Many thanks,
Helmut.

Re: [offtopic] help on installation of templates

Posted: Wed Mar 16, 2011 10:22 am
by eranif
For Windows, you can use this InnoSetup script (edit it to fit your needs):

Code: Select all

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
AppName=CodeLite
AppVerName=CodeLite
AppPublisherURL=http://codelite.sourceforge.net
AppSupportURL=http://codelite.sourceforge.net
AppUpdatesURL=http://codelite.sourceforge.net
DefaultDirName={pf}\CodeLite
DefaultGroupName=CodeLite
OutputDir=output
OutputBaseFilename=codelite
ChangesEnvironment=yes
FlatComponentsList=yes
Compression=lzma/ultra
SolidCompression=true
InternalCompressLevel=ultra

[Languages]
Name: "eng"; MessagesFile: "compiler:Default.isl"

[Components]
Name: "CodeliteTemplates"; Description: "codelite template files"; Types: full compact custom; Flags: fixed

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Files]
Source: "\path\to\tempplate\*"; DestDir: "{pf}\CodeLite\templates\projects"; Flags: ignoreversion; Components: CodeliteTemplates
For Linux, prepare a .deb or rpm file (you will need to google for how its done) - you can assist codelite scripts' make_deb.sh for this purpose
Eran

Re: [offtopic] help on installation of templates

Posted: Wed Mar 16, 2011 10:29 pm
by HJarausch
Many thanks!
Linux is easy - Windows is hard (unless it works out of the box)

Helmut.