Here's the Inno Setup script that creates my app:

---------------------------------------------------------------------------

[Setup]
AppName=myapp
AppVerName=myapp v.0.4
AppVersion=0.4
AppMutex=InnoSetupExtensionsCompilerAppMutex
AppPublisher=My Company
AppCopyright=Copyright © 2009, 2010 My Company
DefaultGroupName=myapp
OutputBaseFilename=myappsetup
PrivilegesRequired=none
ChangesAssociations=true
DefaultDirName={pf}\myapp
InfoBeforeFile=B:\My\Directory\And
Name\j602-user\projects\myproject\readme.txt

[Tasks]
Name: desktopicon; Description: Create a &desktop icon

[Files]
Source: myapp.ijs; DestDir: {app}; Flags: ignoreversion nocompression
Source: myform.ijs; DestDir: {app}; Flags: ignoreversion nocompression
Source: myscript.ijs; DestDir: {app}; Flags: ignoreversion nocompression
Source: MyIcon.ico; DestDir: {app}\bin; Flags: ignoreversion nocompression
Source: readme.txt; DestDir: {app}; Flags: ignoreversion nocompression

[Icons]
Name: {group}\myapp; Filename: {pf}\j602\bin\j.exe; Parameters: -jijx
myapp.ijs; WorkingDir: {pf}\myapp; IconFilename: {app}\MyIcon.ico;
Comment: My Departmental Reporting
Name: {group}\Uninstall; Filename: {uninstallexe}
Name: {commondesktop}\myapp; Filename: {pf}\j602\bin\j.exe; Parameters:
-jijx myapp.ijs; WorkingDir: {pf}\myapp; IconFilename: {app}\MyIcon.ico;
Comment: My Departmental Reporting

---------------------------------------------------------------------------

I forgot to say: I also created myapp.ijs:

---------------------------------------------------------------------------

load jpath'~user\projects\myproject\myscript.ijs'
load jpath'~user\projects\myproject\myform.ijs'
myapp_run''

---------------------------------------------------------------------------

The shortcut that Inno Setup installs in the Start menu is

"C:\Program Files\j602\bin\j.exe" -jijx myapp.ijs

It worked until I added wd commands and the one grid command, and defining
wd as 11!:0 didn't help.  It still works without the -jijx in the
shortcut.

I'll do some more research, but if this sparks an idea in anyone, I'd be
interested in hearing it.

Thanks,

Bill

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to