mar, 22 Dec 2009, Bill Harris skribis:
> bill lam <[email protected]> writes:
> 
> > I guess this ended up with distributing nearly the entire j system
> > without help files.  I don't use app.exe/app.zip from J and don't know
> > how to to improve it.  If you are interested I can show a sample
> > installation based on innosetup that I used.
> 
> Actually, I think I saw the help there -- it was only my application
> that was missing. :-)
> 
> If you don't mind sharing, I'd be interested.  I'm not (yet) familiar
> with innosetup; is it free?

Innosetup is free, googling for it should show it in the first hit.
Download and install the quick installation.
Attached is a simple script. Put it into your project folder and
change file names and also replacing /pathto/j.exe with the absolute
path of your j.exe  untested but should get your started.

---- save as myapp.iss -----
[Setup]
AppName=myapp
AppVerName=myapp
AppVersion=1.00
AppMutex=InnoSetupExtensionsCompilerAppMutex
AppPublisher=SOME COMPANY
AppCopyright=Copyright (c) 2009 SOME COMPANY
DefaultDirName={pf}\myapp
DefaultGroupName=myapp
OutputBaseFilename=myappsetup
Password=abc
PrivilegesRequired=admin

[Types]
Name: full; Description: "Program and database"

[Components]
Name: main; Description: "application files"; Types: full; Flags: fixed

[Tasks]
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: 
"Additional icons:"; Components: main

[Dirs]
Name: {app}\bin
Name: {app}\tools
Name: {app}\tools\regex

[Files]
;main
Source: "myapp.ijs"; DestDir: {app}\bin; DestName: "profile.ijs"; Flags: 
ignoreversion nocompression; Components: main
Source: "myapp.ico"; DestDir: {app}\bin; Flags: ignoreversion; Components: main
Source: "readme.txt"; DestDir: {app}; Flags: ignoreversion; Components: main
Source: "/pathto/j.exe"; DestDir: {app}\bin; Flags: ignoreversion; Components: 
main
Source: "/pathto/j.dll"; DestDir: {app}\bin; Flags: ignoreversion; Components: 
main
Source: "/pathto/jprce.dll"; DestDir: {app}\tools\regexp; Flags: ignoreversion; 
Components: main

[Icons]
Name: {group}\myapp; Filename: "{app}\bin\j.exe"; WorkingDir: {app}; 
IconFilename: {app}\bin\myapp.ico; Components: main
Name: "{group}\Uninstall"; Filename: {uninstallexe}
Name: {commondesktop}\myapp; Filename: "{app}\bin\j.exe"; WorkingDir: {app}; 
IconFilename: {app}\bin\myapp.ico; Components: main

[Run]
Filename: {win}\notepad.exe; Parameters: """{app}\readme.txt"""; Description: 
"View the readme"; Components: main; Flags: postinstall skipifsilent


-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to