|
|
|
#1
|
||||
|
||||
|
Code:
[UninstallDelete]
#define i 0
#sub RemoveShortcut
#emit "Type: Files; Name: ""{userdesktop}" + Trim(ReadIni(SourcePath + "\Settings.ini", "Executable" + Str(i), "ExeName", "")) + ".lnk"";"
#emit "Type: Files; Name: ""{userprograms}" + Trim(ReadIni(SourcePath + "\Settings.ini", "Settings", "Name", "")) + "" + Trim(ReadIni(SourcePath + "\Settings.ini", "Executable" + Str(i), "ExeName", "")) + ".lnk"";"
#endsub
#for {i = 1; Trim(ReadIni(SourcePath + "\Settings.ini", "Executable" + Str(i), "ExeName", "")) != ""; i++} RemoveShortcut
Using ISPP it is not possible to change the name of the shortcuts by changing any external ini after compiling the script |
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
KaktoR (27-04-2020) | ||
| Sponsored Links |
|
#2
|
||||
|
||||
|
Thanks Cesar.
But there seems to be a problem with this ispp code. I have this Code:
[Executable1] ShortcutName=Application ExePath=bin\Application.exe ExeParam=-Testparameter The shortcut on desktop and startmenu is always C:\bin\application.exe. I would like it read from INI: DefaultInstallDir={sd}\Games\{#Name}
__________________
Haters gonna hate
|
|
#3
|
||||
|
||||
|
Quote:
@KaktoR, I changed the attachment. If you don't want to use tasks for the desktop shortcut, simply remove the [Tasks] section and also + "Tasks: desktopicon;" the shortcut line. If you do not want to use a URL, simply do not include the lines referring to the URL shortcut. Last edited by Cesar82; 28-04-2020 at 03:23. |
| The Following User Says Thank You to Cesar82 For This Useful Post: | ||
KaktoR (28-04-2020) | ||
|
#4
|
||||
|
||||
|
Thanks, this works fine.
I just don't understand all of this ispp things... Will read about it some more.
__________________
Haters gonna hate
|
|
#5
|
||||
|
||||
|
Quote:
In the example in the above file you are saving a preprocessed script. This file is used to visualize how the preprocessed code will look. If using ISPP it is not possible to use an external Settings.ini with settings for shortcuts. Using ISPP the settings.ini settings are "copied" to script.iss when compiling and cannot be changed afterwards. |
|
#6
|
|||
|
|||
|
does the new inno 6.0.5 have Dark theme built-in ?
|
|
#7
|
|||
|
|||
|
Unknown Type: PChar
Hello all, I have been adding the module ITDownload to my installer script, so redist files can be downloaded instead of me having to bundle them into the installer.
I currently have everything integrated, here is an example: Code:
procedure InstallRedists;
begin
itd_init;
#ifdef directx
itd_addfile('https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe',expandconstant('{app}\_Redist\dxwebsetup.exe'));
#endif
itd_downloadafter(wpInstalling);
#ifdef directx
Exec2(ExpandConstant('{app}\_Redist\dxwebsetup.exe'),'',true);
#endif
end;
Code:
#define directx I integrated into the script the iss file and module: Code:
#include "Resources\Modules\itd\it_download.iss" ![]() Does anyone know what this error could mean? The error lies in the iss script for the ITDownlaod module and not in my installer script. I am using Inno Setup Unicode 6.0.3 |
|
#8
|
|||
|
|||
|
Seems like the variable type PChar is not anymore compatible with Inno Setup 6.
https://jrsoftware.org/ishelp/index.php?topic=unicode Quoting: Quote:
Quote:
|
| The Following User Says Thank You to pincoball For This Useful Post: | ||
Masquerade (02-06-2020) | ||
|
#9
|
||||
|
||||
|
Hey guys.
Can someone help me with a problem. I was wondering if you have a way to convert hexadecimal Cyrillic characters (string) to a string using only inno setup functions or just the windows API without including additional libraries. Summing up: I would like to convert: C := Chr($05E2); I attached a file with a function that uses this, but I can't get it to work without including an additional library (I don't want to use Libs) If some of the more knowledgeable users can help me, thank you in advance. Please look at the attached code. |
|
#10
|
||||
|
||||
|
Quote:
Chr accepts byte value and returns ASCII value, $0532 is a Word value You must use #$???? For UTF-8 format, example C := #$05E2 Last edited by Razor12911; 21-06-2020 at 03:28. |
|
#11
|
||||
|
||||
|
Quote:
They are Word values. I know that chr only supports Byte and these type of characters are word type. But as in the script example, I need to convert a hexadecimal string read from the inno setup language file and convert it to a string (text). Code:
S1 := '<0420><0443><0441><0441><043A><0438><0439>'; I want to do this using only API or in the script itself if there is im way to do this without external DLL. Please take a look at the script. |
|
#12
|
||||
|
||||
|
Quote:
BTW if you are on discord pl add me (discord id: buntionly4u#4466) Code:
function InitializeSetup(): Boolean; var S1, S2: String; begin S1 := #$0420+#$0443+#$0441+#$0441+#$043A+#$0438+#$0439; MsgBox(S1, mbInformation, MB_OK); end; Last edited by bunti_o4u; 21-06-2020 at 11:43. |
|
#13
|
||||
|
||||
|
Quote:
I get the string using the ISPP by calling the ReadIni function. Check the Russian.isl language language of Inno Setup and try to read the key LanguageName= using GetIniString and try to transform it into text as in your message. Download the ChrW script that you will understand. |
|
#14
|
||||
|
||||
|
Hey guys&girls
![]() I'm looking for a char (preferably) or icon (max 14x14px) to display free/need space, which can be understand in any language (or at least most). Anyone have ideas? I already had looked through windows charmap but can't find anything usefull.
__________________
Haters gonna hate
Last edited by KaktoR; 22-06-2020 at 05:32. |
|
#15
|
||||
|
||||
|
If we want to run any task during installation we can use below command which run the task or other program in a separate window:
Code:
function Exec(const Filename, Params, WorkingDir: String; const ShowCmd: Integer; const Wait: TExecWait; var ResultCode: Integer): Boolean; If yes then pl tell how to do it.. Thanks in advance.. |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |