![]() |
FAQs: Inno setup
CODE SNIPPETS
Add Unlimited ShortCuts via Ini Add unlimited Redists via Ini Common WinAPI Externs for INNO Add Unlimited ShortCuts via Ini How to change appname and other installation settings after compile? How to add unlimited registey values by an ini? How can I protect my Script from Vultures? How to add custom Buttons to Installers Join Many Files to One Using Inno Only SH Folder Operations Updated ISDone Scrpit any questions or requests, ask here Feel Free To add your own code |
How to add unlimited shortcuts from an ini?
Code:
; Script generated by the Inno Setup Script Wizard.Code:
[Exe1] |
How to add unlimited Redists from an ini?
Code:
; Script generated by the Inno Setup Script Wizard.Code:
[Redist1]Section - [RUN] Code is Written by me. |
1 Attachment(s)
ISDOne with All latest compressor ->PZLIB, LZ5, OFR, LZ4, ZSTD etc..
Additonal Functions: function EXEC_UNPACK( const Exec , Option , inFiles, outDir : string; Deldest : boolean): boolean; ->Exec - Executable Name ->Option - Cmd line for the executable <infile> -> input file ( file with full Path name as specified by variable infile) <outfile> -> output file ( infile without extension) ->infile - file to process, masks allowed ->OutDir - output folder -> Deldest - whether to delete destination or not? Note: define ppx2 for multitasking... |
1 Attachment(s)
How to write unlimited archives to an ini?
|
1 Attachment(s)
Someone via PM asked me:
How to Create Buttons in Installers? Actually, there can be two ways: First, Playing with pascal and use panels or listviews to create buttons and use ONMOUSEDOWN event to trigger events For example, See WPI Script of BLUR or Flat Modules(Module\Form.Functions.iss) Second, can be using libraries to create buttons such as botva2 or ISab.dll btnprint.iss (botva2.dll) Code:
;Created by South.Tver 02.2010 |
SHFileOperations
;************************************************* **************; ;****************** SHFileOperation.iss ************************; ;************************************************* **************; ;* Include this file in project. Example: ;* #include "SHFileOperation.iss" ;************************************************* **************; ;************************ 1 ************************************; ;* function CopyDir(const fromDir, toDir: string): Boolean; ;* Example 1 (without <fromDir> trailing backslash): ;* CopyDir('C:\TMP\MyApp', 'C:\TMP\Backup'); ;* Result: C:\TMP\Backup\MyApp\..all <MyApp> subdirs and files ;* Example 2 (with <fromDir> trailing backslash): ;* CopyDir('C:\TMP\MyApp\', 'C:\TMP\Backup'); ;* Result: C:\TMP\Backup\..all <MyApp> subdirs and files ;************************************************* **************; ;************************ 2 ************************************; ;* function MoveDir(const fromDir, toDir: string): Boolean; ;* Example 1 (without <fromDir> trailing backslash): ;* MoveDir('C:\TMP\MyApp', 'C:\TMP\Backup'); ;* Result: C:\TMP\Backup\MyApp\..all <MyApp> subdirs and files ;* Example 2 (with <fromDir> trailing backslash): ;* MoveDir('C:\TMP\MyApp\', 'C:\TMP\Backup'); ;* Result: C:\TMP\Backup\..all <MyApp> subdirs and files ;************************************************* **************; ;************************ 3 ************************************; ;* function DelDir(dir: string; toRecycle: Boolean): Boolean; ;* If <toRecycle> is True, <dir> deleted in Recycle Bin. ;************************************************* **************; ;************************ 4 ************************************; ;* function RenameDir(const fromDir, toDir: string): Boolean; ;************************************************* **************; ;************************************************* **************; ;************************************************* **************; Code:
type |
2 Attachment(s)
Q: How to change appname and other installation settings after compile?
A: Use the attached example. Just open the Setup.dll with notepad and you can change in CustomInstallSettings section. Put your reg files and redists in the support dir. Use the source to create your own scripts |
How to add unlimited registey values by an ini?
1 Attachment(s)
You can use the attached example. Include the iss with your installer script and edit the registry.ini file
|
1 Attachment(s)
How can I protect my Script from Vultures?
Here, uses tools by altef_4. open ZMKr.exe, compress your script.iss{should be of same name} with this and make Data.cab compile ISSPP.iss Now for distribution of your file, just distribute ISSPP.exe with IS_Files( both in ISSPP Folder ) |
Join many Files to One using Inno Only
Code:
const |
Common WinAPI for Inno
PS: This will get updates with the time with changelog Code:
#ifdef UNICODE |
Hi
Please use an example of ppx2. |
Quote:
Actually if i know the pass of data.cab how it is possible to extract the script.iss Listen This script is mine only............ but am really feeling very torpid to make that script again...... pls help me if u can....... I swear the script is mine original :( I want it urgently as am working on setup installer..... I converted its .iss to data.cab the next day my pc crashed and i was only left with data.cab(thanks to me, i made its backup but not of script.iss :( ) So can u help me |
Quote:
Nothing can help you here but to figure it out yourself |
| All times are GMT -7. The time now is 17:21. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com