I've gotten Inno Setup almost to work (thanks, Bill L.). I create
myapp.ijp in PM, I put my two sourcefiles plus the addons in the
Source tab, I select the appropriate (I presume) libraries on the
Library tab (and note that only one, dll, has an (r)), and I list
project and target files in the Project tab.
I set all three Include checkboxes in the Build Options, and I check
both Delete Comments and Do not show J session manager. Build Now
creates myapp.ijs. I can run that with my regular J session manager,
and it works.
I then process it through Inno Setup. There's lots there, but, in
essence, I include myapp.ico, myapp.ijs, readme.txt, j.exe, j.dll,
tools/regex/jpcre.dll, and addons/data/sqlite/lib/sqlite3.dll, and I
compile the file.
If I create a shortcut with a command
"c:\Program Files\J602\bin\j.exe" -jijx ciDSM.ijs
and run it in {app}/myapp/bin/, it works. (Eventually I want to figure
out how to have Inno Setup create such a shortcut.)
If I try
"c:\Program Files\myapp\bin\j.exe" -jijx ciDSM.ijs
it fails.
I tried the hints on
http://www.jsoftware.com/jwiki/Guides/Standalone%20Applications#Debugging.
c:\myapp\j.exe -jprofile works.
0!:0 <'c:\myapp\bin\myapp.ijs'
returns
|file name error: script_z_
| 0!:0 y[4!:55<'y'
0!:1 <'c:\myapp\bin\myapp.ijs'
lists a bunch of myapp.ijs and then produces
bulkins=: 4 : 0
x=. 'insert into ',x,' values('
; <@(x , ');',~ [:; ','strjoin ":@strquot&.>)"1 y
)
coclass 'pcsv'
script_z_ '~addons/tables/dsv/dsv.ijs'
|file name error: script_z_
| 0!:0 y[4!:55<'y'
The code just before that pcsv is the sqlite addon. This is the first
instance of script_z_ in the file. It's used twice more:
script_z_ '~system/main/files.ijs'
script_z_ '~system/main/strings.ijs'
All three are seemingly loaded by PM. What am I missing?
Thanks,
Bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm