msiexpert created the topic: Inno Setup script example
I have been working on an inno script this past week, which now appears to be
working correctly. I thought I would post it to the list server so it will
become part of the nug archives for future reference.
TimberValue is a program written on a Mac, and is currently being distributed
on both the Mac and Windows platforms. It creates two files: 1) a data file
with the extension .tvd and 2) a license file with the extension .tvl
Both of these files are RB database files.
Files with the .tvd extension are named by the user, and have the icon
TmbrDatabase.ico
Files with the .tvl extension are named TmbrLicense.tvl and have the icon
TmbrLicense.ico
Icons were created using the Mask-R-Aid program.
My inno setup data is contained in a folder called βInno Setup Dataβ which I
have placed on the Windows desktop. The path to this folder is C:\Documents and
Settings\TJ Hanson\Desktop\Inno Setup Data. The icons are contained in a folder
called βIconsβ within the βInno Setup Dataβ folder.
One quirk I noticed is that the icons may not appear until you reboot the
Windows platform. I assume Windows wants a reboot before it looks at the new
registry items.
If anyone sees anything wrong, please let me know. I havenβt noticed any
problems. Icons appear as they should; the program launches when a database
icon is double clicked; the program launches when a database icon is dragged on
top of the program icon; and the SampleProject.tvd file brought in by the inno
script is given the correct database icon.
The whole script was too big for posting, so below are the Tasks, Files, Icons
and Registry sections
Thanks to everyone who may have helped with this script. TJ
=============================================================
[Setup]
[Languages]
[Tasks]
Name: βdesktopiconβ; Description: β{cm:CreateDesktopIcon}β; GroupDescription:
β{cm:AdditionalIcons}β; Flags: unchecked
[Files]
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup
Data\TimberValue.exeβ; DestDir: β{app}β; Flags: ignoreversion
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup
Data\TimberValue Libs\*β; DestDir: β{app}\TimberValue Libsβ; Flags:
ignoreversion recursesubdirs createallsubdirs
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup Data\Icons\*β;
DestDir: β{app}\Iconsβ; Flags: ignoreversion recursesubdirs createallsubdirs
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup
Data\andale32.exeβ; DestDir: β{app}β; Flags: ignoreversion
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup
Data\arial32.exeβ; DestDir: β{app}β; Flags: ignoreversion
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup
Data\ReadMe.rtfβ; DestDir: β{app}β; Flags: ignoreversion
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup
Data\SampleProject.tvdβ; DestDir: β{app}β; Flags: ignoreversion
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup Data\SLA.pdfβ;
DestDir: β{app}β; Flags: ignoreversion
Source: βC:\Documents and Settings\TJ Hanson\Desktop\Inno Setup Data\User
Manual.pdfβ; DestDir: β{app}β; Flags: ignoreversion
[Icons]
Name: β{group}\TimberValueβ; Filename: β{app}\TimberValue.exeβ
Name: β{group}\{cm:UninstallProgram,TimberValue}β; Filename: β{uninstallexe}β
Name: β{commondesktop}\TimberValueβ; Filename: β{app}\TimberValue.exeβ; Tasks:
desktopicon
[Registry]
Root: HKCR; Subkey: TimberDatabase\shell\open\command; ValueType: string;
ValueName: ; ValueData: βββ{app}\{{TimberValue.exe}ββ ββ%1β³ββ
Root: HKCR; Subkey: TimberDatabase\DefaultIcon; ValueType: string; ValueName: ;
ValueData: {app}\Icons\TmbrDatabase.ico,0
Root: HKCR; Subkey: TimberDatabase; ValueType: string; ValueName: ; ValueData:
TimberValue Database File; Flags: uninsdeletekey
Root: HKCR; Subkey: .tvd; ValueType: string; ValueName: ; ValueData:
TimberDatabase; Flags: uninsdeletekey
Root: HKCR; Subkey: TimberLicense\shell\open\command; ValueType: string;
ValueName: ; ValueData: βββ{app}\{{TimberValue.exe}ββ ββ%1β³ββ
Root: HKCR; Subkey: TimberLicense\DefaultIcon; ValueType: string; ValueName: ;
ValueData: {app}\Icons\TmbrLicense.ico,0
Root: HKCR; Subkey: TimberLicense; ValueType: string; ValueName: ; ValueData:
TimberValue License File; Flags: uninsdeletekey
Root: HKCR; Subkey: .tvl; ValueType: string; ValueName: ; ValueData:
TimberLicense; Flags: uninsdeletekey
[Run]
Iβm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND