inno-setup

How to add clickable links to custom page in Inno Setup using RichEditViewer?

人走茶凉 提交于 2020-04-06 23:22:12
问题 How to add clickable link to RichEditViewer in Inno Setup? I tried this solution How to add clickable links to custom Inno Setup WelcomeLabel? Using this code below: [Code] var Page: TWizardPage; procedure CreateTheWizardPages; var RichViewer1 : TRichEditViewer; begin Page := CreateCustomPage(wpReady, 'Custom', 'Page'); RichViewer1 := TRichEditViewer.Create(Page); RichViewer1.Left := 0; RichViewer1.Top := 30; RichViewer1.width:=400; RichViewer1.WordWrap := True; RichViewer1.BorderStyle :=

Is it possible to check if program is already running before trying to install it? (Inno Setup)

岁酱吖の 提交于 2020-03-21 03:51:44
问题 I'm using Inno Setup to create the installer. When I launch the installer I've created I need to check whether the program I'm trying to install is already running or not and if it is running then I have to show the corresponding message until I close it or exit. Is it possible to do that? 回答1: If it is your application, make it create a mutex. Then you can use AppMutex directive. [Setup] AppMutex=MyProgMutex If you cannot modify the application, you need to code the check for running

Is it possible to check if program is already running before trying to install it? (Inno Setup)

岁酱吖の 提交于 2020-03-21 03:45:05
问题 I'm using Inno Setup to create the installer. When I launch the installer I've created I need to check whether the program I'm trying to install is already running or not and if it is running then I have to show the corresponding message until I close it or exit. Is it possible to do that? 回答1: If it is your application, make it create a mutex. Then you can use AppMutex directive. [Setup] AppMutex=MyProgMutex If you cannot modify the application, you need to code the check for running

Inno Setup - Delete old/obsolete files on update

微笑、不失礼 提交于 2020-03-20 08:00:54
问题 So, I realize that this question has been asked before. In fact I read through a good 10 of them before writing this, but none of them have a applicable solution and I'm hoping that nowadays someone has found something. The problem: My program is build with a script, creating all final files in a single folder. Those files are included in inno like this: [Files] Source: "build\exe.win-amd64-3.6\*"; Excludes: "*.key, *.log"; DestDir: "{app}"; \ Flags: ignoreversion recursesubdirs

Inno Setup - Delete old/obsolete files on update

为君一笑 提交于 2020-03-20 07:58:24
问题 So, I realize that this question has been asked before. In fact I read through a good 10 of them before writing this, but none of them have a applicable solution and I'm hoping that nowadays someone has found something. The problem: My program is build with a script, creating all final files in a single folder. Those files are included in inno like this: [Files] Source: "build\exe.win-amd64-3.6\*"; Excludes: "*.key, *.log"; DestDir: "{app}"; \ Flags: ignoreversion recursesubdirs

Conditionally add registry key based on checkbox answer

喜欢而已 提交于 2020-03-20 06:36:31
问题 I'm using Inno Setup for my Windows .NET app. I'm asking the user if they want to start the app with Windows with the following code: [Tasks] Name: "TaskEntry"; Description: "Start with Windows?"; GroupDescription: "Startup"; [code] function NextButtonClick(CurPageID: Integer): Boolean; begin Result := True; if CurPageID = wpSelectTasks then begin if WizardForm.TasksList.Checked[3] then MsgBox('Startup has been checked.', mbInformation, MB_OK) else MsgBox('Startup has not been checked.',

Delete Task Scheduler task at Uninstall?

笑着哭i 提交于 2020-03-20 05:35:31
问题 My installed app creates a Task Scheduler task at run-time. This Task Scheduler task runs one of my installed apps at Windows log on. So I need to delete this Task Scheduler task at uninstall. Is the Inno Setup-Uninstaller able to do this? OS: Win 7/8/10 x64 回答1: Run schtasks /Delete from [UninstallRun] section: [UninstallRun] Filename: "schtasks"; Parameters: "/Delete /TN ""My Task"" /F"; Flags: runhidden This is similar to creating a task with Inno Setup. 来源: https://stackoverflow.com

Delete Task Scheduler task at Uninstall?

梦想的初衷 提交于 2020-03-20 05:35:20
问题 My installed app creates a Task Scheduler task at run-time. This Task Scheduler task runs one of my installed apps at Windows log on. So I need to delete this Task Scheduler task at uninstall. Is the Inno Setup-Uninstaller able to do this? OS: Win 7/8/10 x64 回答1: Run schtasks /Delete from [UninstallRun] section: [UninstallRun] Filename: "schtasks"; Parameters: "/Delete /TN ""My Task"" /F"; Flags: runhidden This is similar to creating a task with Inno Setup. 来源: https://stackoverflow.com

Delete Task Scheduler task at Uninstall?

烈酒焚心 提交于 2020-03-20 05:34:25
问题 My installed app creates a Task Scheduler task at run-time. This Task Scheduler task runs one of my installed apps at Windows log on. So I need to delete this Task Scheduler task at uninstall. Is the Inno Setup-Uninstaller able to do this? OS: Win 7/8/10 x64 回答1: Run schtasks /Delete from [UninstallRun] section: [UninstallRun] Filename: "schtasks"; Parameters: "/Delete /TN ""My Task"" /F"; Flags: runhidden This is similar to creating a task with Inno Setup. 来源: https://stackoverflow.com

Inno Setup: Close installer wizard if file exists in the program's folder

左心房为你撑大大i 提交于 2020-03-15 07:35:59
问题 I am trying to create an installer that is a Demo installer that if it detects the file close.txt in the programs folder then it closes the wizard or aborts install. I am running a scheduled task that automatically uninstalls the app after two days. On initial install the close.txt file gets installed in the programs folder then after auto uninstall the close.txt file is left in the programs folder. I would like for when you re run the installer it checks for this file and if it is found to