Publishing - making it easier for the client

Use this forum to post Sable related questions.

Moderator: Administrator

Post Reply
drees
Senior Member
Posts: 73
Joined: Fri Jun 25, 2010 4:02 am

Publishing - making it easier for the client

Post by drees »

When you open open the Sable Runtime it defaults to the VNP file. The user then has to use the dialog to ask it to look for a SPK file. In the interests of making it as easy as possible for the client is there any way to make SPK the default. Also any ideas you have about other methods for making access to a published model as easy as possible would be great. For example, is it possible to change the icon of the model file to reflect the nature of the model i.e. personalize it to the client, and use that as the 'shortcut' to open the model.

Cheers

David
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Publishing - making it easier for the client

Post by Administrator »

You can specify the icon for the project (but not with SPK files, for some reason I cannot extract an icon from the archive, only a physical file).

I'd suggest you create a custom install for your clients. I use Inno (it's free). All you need to do is create a directory in the client machine "My Documents" directory, copy your SPK to there (and the Sable Runtime installer). Before the installer finishes, execute the Sable Runtime installer to install Sable. Then create a shortcut that launches Runtime with the path to the SPK as an argument.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
drees
Senior Member
Posts: 73
Joined: Fri Jun 25, 2010 4:02 am

Re: Publishing - making it easier for the client

Post by drees »

Thanks for that. I'll let you know how it goes.

David
Administrator
Super Administrator
Posts: 4573
Joined: Wed Mar 05, 2003 3:10 am

Re: Publishing - making it easier for the client

Post by Administrator »

I did a tutorial once for someone (but it is specific to that project).

You will need Inno Setup Compiler - http://www.jrsoftware.org/

Download and install Inno.

Create a sub-directory under your Sable project dir called "Install".

Create a new text file called "setup.iss". Select the text below and paste it in.

Code: Select all

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

#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "SableRTU.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{60410F0F-A0DC-480E-A8EE-D3E979D50042}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={userdocs}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

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

[Files]
Source: SableRuntimeSetupU.EXE; DestDir: {userdocs}\{#MyAppName}\Sable; Flags: comparetimestamp
Source: MyProject.spk; DestDir: {userdocs}\{#MyAppName}\; Flags: comparetimestamp

[Icons]
Name: {group}\{#MyAppName}; Filename: {pf32}\Ventana Systems UK\Sable\Runtime Unicode\SableRTU.exe; Parameters: {userdocs}\{#MyAppName}\SableProject.VNP; WorkingDir: {userdocs}\{#MyAppName};

[Run]
Filename: {userdocs}\{#MyAppName}\Sable\SableRuntimeSetupU.EXE
This script is a minimal one. It creates a sub-directory in "My Documents" and copies the SPK and Sable Runtime installer to it. Once all the files are in place, it runs the SableRuntime installer.

Change the info at the top of the file to match what you want and then save the script into the install sub-directory. Compile it using Inno, and it should create a setup.exe file.

Let me know how you get on.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
drees
Senior Member
Posts: 73
Joined: Fri Jun 25, 2010 4:02 am

Re: Publishing - making it easier for the client

Post by drees »

Hi

Just to let you know we've got it all working.

Thanks again for your help

David
Post Reply