#1381
|
|||
|
|||
try it it might delete
Quote:
|
The Following User Says Thank You to DiCaPrIo For This Useful Post: | ||
KaktoR (24-04-2020) |
Sponsored Links |
#1382
|
||||
|
||||
Thanks. Will look into this later
![]() Edit: It works but only for one icon (not for both). Not very smart because I have to create functions for both desktop and group icons ^^ However, I just did it this way until I find a better way Code:
[UninstallDelete] Type: files; Name: {userdesktop}\{#Shortcut1Name}.lnk Type: files; Name: {userstartmenu}\{#Name}\{#Shortcut2Name}.lnk
__________________
Haters gonna hate
Last edited by KaktoR; 24-04-2020 at 14:59. |
#1383
|
||||
|
||||
Quote:
But as the shortcut was created on installation in the code, you can remove this shortcut using the code in the: procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); Code:
if IniKeyNotEmpty('Executable', 'Exe') then begin DeleteFile(ExpandConstant('{commonstartmenu}\' + GetIniString('Executable', 'ExeName', '', ExpandConstant('{tmp}\Settings.ini')) + '.lnk')); end; function InitializeUninstall (): Boolean; Last edited by Cesar82; 24-04-2020 at 16:25. |
#1384
|
||||
|
||||
I did it this way too, but doesn't work.
My old code Code:
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); case of usPostUninstall begin DeleteFile(ExpandConstant('{userdesktop}\' + GetIniString('Executable', 'Shortcut1Name', '', ExpandConstant('{tmp}\Settings.ini')) + '.lnk')); DeleteFile(ExpandConstant('{userstartmenu}\' + GetIniString('Executable', 'Shortcut1Name', '', ExpandConstant('{tmp}\Settings.ini')) + '.lnk')); end; Edit: Ok, that explains alot. Unfortunatelly not an option for me.
__________________
Haters gonna hate
|
#1385
|
||||
|
||||
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) |
#1386
|
||||
|
||||
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
|
#1387
|
||||
|
||||
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) |
#1388
|
||||
|
||||
Thanks, this works fine.
I just don't understand all of this ispp things... Will read about it some more.
__________________
Haters gonna hate
|
#1389
|
||||
|
||||
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. |
#1390
|
|||
|
|||
does the new inno 6.0.5 have Dark theme built-in ?
|
#1391
|
||||
|
||||
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 |
#1392
|
|||
|
|||
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) |
#1393
|
||||
|
||||
Quote:
On testing though, things get a little nasty: ![]() The progress bar is at 100% so the redist downloader process is began. Installing/Uninstalling works without checking redist box so the script still functions. Only with redist selected will cause this. Edit: the module is loaded, behind the buttons that the text for the module is there (the progress bar, eta etc..). Last edited by Masquerade; 02-06-2020 at 07:10. |
#1394
|
|||
|
|||
I think that this module is pretty old and it might not support newer versions of Inno Setup thus the problem may arise from another incompatibility... but I think that something else can be done.
Have you tried translating the error message? I know that if you cannot copy and paste you should rely on OCR reading from the screenshot but I think you might give it a try if it says something relevant Also, does it give the same problem with both PAnsiChar and AnsiString? |
#1395
|
||||
|
||||
Quote:
I would like to analyze this. Another way to make Unicode and Ansi compatible is to just include this before the functions that PChar uses. Code:
#ifdef UNICODE type PChar = PAnsiChar; #endif The FTP, HTTP and HTTPS protocols are supported. |
The Following User Says Thank You to Cesar82 For This Useful Post: | ||
Masquerade (03-06-2020) |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |