Author Topic: Bricscad / Inno Demand loading  (Read 1695 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 6935
  • AKA Daniel
Bricscad / Inno Demand loading
« on: May 22, 2009, 01:52:17 AM »
My first time doing this, so I thought I would share. The Inno wizard is very easy to use, just fill in the blanks,
I just added my DrxDocTabs.drx as the file to be installed. Once you have gone through the wizard,
all you need to add your registry keys for demand loading ...under [Registry]. Here is what I added…

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

[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={{2D5EF228-1B2A-48A6-9F9D-C15D2C474203}
AppName=DrxDocTabs
AppVerName=DrxDocTabs v9
AppPublisher=High Coders Anonymous
AppPublisherURL=http://www.TheSwamp.Org/
AppSupportURL=http://www.TheSwamp.Org/
AppUpdatesURL=http://www.TheSwamp.Org/
DefaultDirName={pf}\DrxDocTabs
DefaultGroupName=DrxDocTabs
OutputDir=C:\Documents and Settings\Daniel\Desktop\My Inno
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes


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

[Files]
Source: "C:\Documents and Settings\Daniel\Desktop\My Inno\DRXDocTabs_2.06_8.drx"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files


[Registry]
;make sure this exists
;NOTE this compiler does not like line breaks, I added them for readability
Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications";
             ValueType: string; ValueName: "Applications"; ValueData: "Bricscad";
             Flags: createvalueifdoesntexist
   
Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications\DrxDocTabs";
             ValueType: string; ValueName: "DESCRIPTION"; ValueData: "DrxDocTabs";
             Flags: createvalueifdoesntexist uninsdeletekey
             ;the flag uninsdeletekey will delete this and all sub keys on uninstall
   
Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications\DrxDocTabs";
             ValueType: dword; ValueName: "LOADCTRLS"; ValueData: 13;
             Flags: createvalueifdoesntexist
             
Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications\DrxDocTabs";
             ValueType: string; ValueName: "LOADER"; ValueData: "{app}\DRXDocTabs_2.06_8.drx";
             Flags: createvalueifdoesntexist

;If you need to load commands
;MYGROUP is the command group
Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications\DrxDocTabs\Groups";
             ValueType: string; ValueName: "MYGROUP"; ValueData: "MYGROUP";
             Flags: createvalueifdoesntexist
;Add the Global and local command name
Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications\DrxDocTabs\Commands";
             ValueType: string; ValueName: "GLOBALCMD1"; ValueData: "LOCALCMD1";
             Flags: createvalueifdoesntexist

Root: HKCU;  Subkey: "Software\Bricsys\Bricscad\V9\en_US\Applications\DrxDocTabs\Commands";
             ValueType: string; ValueName: "GLOBALCMD2"; ValueData: "LOCALCMD2";
             Flags: createvalueifdoesntexist



Note this sample doesn’t do any error checking....
« Last Edit: May 22, 2009, 02:02:07 AM by Daniel »