ĵaŭ, 14 Jan 2010, Bill Harris skribis:
> 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
                                    ^^^^  
                          seem non-agreement, thus no icon?

> 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'

These will load scripts in your development folder assuming the
default profile has been loaded,  you need to write your scripts in
such a way they work under both development and deployment.

> 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.

No idea, but may be add trace statement at various places to find
where it lead to failure. eg (untested)

(<'c:/temp/myapp.log') 1!:3~^:DEBUG  CRLF, 'check point xx'

set DEBUG_z_=: 0 for production version.

-- 
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